Impossible to delete protocols under VRF.
To reproduce:
set interfaces dummy dum0 address '100.64.0.254/32' set interfaces dummy dum0 vrf 'ospf' set interfaces ethernet eth1 address '10.0.0.254/24' set interfaces ethernet eth1 vrf 'ospf' set vrf name ospf protocols ospf interface dum0 area '0' set vrf name ospf protocols ospf interface eth1 area '0' set vrf name ospf protocols ospf parameters router-id '100.64.0.254' set vrf name ospf table '101' commit delete vrf name ospf protocols commit
commit:
vyos@r14# delete vrf name ospf protocols
[edit]
vyos@r14# commit
[ vrf name ospf protocols ospf ]
Traceback (most recent call last):
File "/usr/libexec/vyos/services/vyos-configd", line 143, in run_script
c = script.get_config(config)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/libexec/vyos//conf_mode/protocols_ospf.py", line 41, in get_config
return get_frrender_dict(conf, argv)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/vyos/frrender.py", line 530, in get_frrender_dict
vrf['name'][vrf_name]['protocols'].update({'ospf' : {'deleted' : ''}})
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
KeyError: 'protocols'
delete [ vrf name ospf protocols ospf ] failed
[[vrf]] failed
Commit failed
[edit]
vyos@r14#