Commit fails on static rule removal:
vyos@vyos# run sh conf comm|grep vpp
set vpp nat44 address-pool translation interface 'eth4'
set vpp nat44 interface inside 'eth7'
set vpp nat44 interface outside 'eth4'
set vpp nat44 static rule 100 external address '192.0.0.2'
set vpp nat44 static rule 100 local address '192.168.102.1'
set vpp settings interface eth4 driver 'dpdk'
set vpp settings interface eth7 driver 'dpdk'
[edit]
vyos@vyos# del vpp nat44 static rule 100
[edit]
vyos@vyos# commit
[ vpp nat44 ]
Traceback (most recent call last):
File "/usr/libexec/vyos/services/vyos-configd", line 146, in run_script
script.verify(c)
File "/usr/libexec/vyos/conf_mode/vpp_nat.py", line 243, in verify
for rule, rule_config in config['static']['rule'].items():
~~~~~~~~~~~~~~~~^^^^^^^^
KeyError: 'rule'
[[vpp nat44]] failed
Commit failedIf use 'del vpp nat44 static' commit works:
vyos@vyos# del vpp nat44 static
[edit]
vyos@vyos# comp
[vpp nat44]
- static {
- rule 100 {
- external {
- address "192.0.0.2"
- }
- local {
- address "192.168.102.1"
- }
- }
- }
vyos@vyos# commit
[edit]
vyos@vyos#