f-42: l3vni: route par défaut du netns, export de la passerelle en type 5 #42

Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
GnomeZworc 2026-10-29 20:09:08 +01:00
commit 10c388ce65
Signed by: nicolas.boufideline
GPG key ID: 4406BBBF8845D632
12 changed files with 171 additions and 5 deletions

View file

@ -25,8 +25,10 @@ func routingTeardown(v VRF, running string) []step {
if hasPrefix(lines, "route-map "+v.routeMap()+" ") {
steps = append(steps, step{"no route-map " + v.routeMap()})
}
if hasPrefix(lines, "ip prefix-list "+v.prefixList()+" ") {
steps = append(steps, step{"no ip prefix-list " + v.prefixList()})
for _, list := range []string{v.prefixList(), v.defaultPrefixList(), v.transitPrefixList()} {
if hasPrefix(lines, "ip prefix-list "+list+" ") {
steps = append(steps, step{"no ip prefix-list " + list})
}
}
return steps
}