set interfaces ethernet eth1 vif 10 address 10.0.2.1/24 set vpp settings interface eth1 driver dpdk set vpp nat cgnat interface inside eth1 set vpp nat cgnat interface outside eth1.10 set vpp nat cgnat rule 10 inside-prefix 100.99.0.0/24 set vpp nat cgnat rule 10 outside-prefix 206.0.15.248/29 commit
Everithing is correct in vppctl:
vyos@vyos# sudo vppctl show det44 interfaces DET44 interfaces: eth1 in eth1.10 out
Now we remove VLAN interface:
del interfaces ethernet eth1 vif
We see unexpected DELETED interface in vppctl and None in op-mode:
vyos@vyos# sudo vppctl show det44 interfaces DET44 interfaces: eth1 in DELETED (3) out [edit] @vyos# run show vpp nat cgnat interfaces CGNAT interfaces: eth1 in None out [edit]
Possible solution: we need to add dependency for interfaces ethernet if subinterface is used in VPP CGNAT (or other VPP plugin)