diff options
author | Christian Breunig <christian@breunig.cc> | 2023-08-12 08:58:17 +0200 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2023-08-12 09:01:48 +0200 |
commit | 011697508b1ffe88d3d6a6ffd2d29e328737371a (patch) | |
tree | 046500622193f9536d661e5ae4c08ca6cf077e2f /interface-definitions/dns-dynamic.xml.in | |
parent | 073961a5c833ca820a197c3635138b14e2b16cd7 (diff) | |
download | vyos-1x-011697508b1ffe88d3d6a6ffd2d29e328737371a.tar.gz vyos-1x-011697508b1ffe88d3d6a6ffd2d29e328737371a.zip |
T5467: removing ospf(v3) or isis interface in VRF context did not clear FRR config
To reproduce:
set vrf name red table 2000
set vrf name red protocols ospf interface eth1 area 0
set vrf name red protocols ospf parameters router-id 1.1.1.1
set interfaces ethernet eth1 vrf red
commit
FRR now has an interface config
vyos@vyos# vtysh -c "show run" no-header | sed -n "/^interface eth1/,/!/p"
interface eth1
ip ospf area 0
ip ospf dead-interval 40
exit
Now delete the interface from the OSPF(v3) or ISIS process
delete vrf name red protocols ospf interface
commit
It's still there
vyos@vyos# vtysh -c "show run" no-header | sed -n "/^interface eth1/,/!/p"
interface eth1
ip ospf area 0
ip ospf dead-interval 40
exit
!
Issue was caused in the FRR vtysh representation of an interface. It used to
have a "vrf <name>" marker in earlier versions but FRR 8.5 and later no longer
have the marker. So "interface eth1 vrf red" became "interface eth1" in vtysh,
but our regex expected the "vrf" identifier when modifying FRR config.
Diffstat (limited to 'interface-definitions/dns-dynamic.xml.in')
0 files changed, 0 insertions, 0 deletions