Page MenuHomeVyOS Platform

VPP address not assigned to partly deleted vpp config vxlan
Open, NormalPublicBUG

Description

To reproduce delete and set the same configuration several times (affected VXLAN and probably other interfaces):

set interfaces ethernet eth1 address 192.0.2.1/30
set vpp settings interface eth1 driver 'dpdk'
set vpp interfaces vxlan vxlan2 remote '192.0.2.25'
set vpp interfaces vxlan vxlan2 source-address '192.0.2.1'
set vpp interfaces vxlan vxlan2 kernel-interface 'vpptap2'
set vpp interfaces vxlan vxlan2 vni 2
set vpp kernel-interfaces vpptap2 address '10.0.0.0/31'
commit && ip a show dev vpptap2


delete vpp
commit && ip link show


set interfaces ethernet eth1 address 192.0.2.1/30
set vpp settings interface eth1 driver 'dpdk'
set vpp interfaces vxlan vxlan2 remote '192.0.2.25'
set vpp interfaces vxlan vxlan2 source-address '192.0.2.1'
set vpp interfaces vxlan vxlan2 kernel-interface 'vpptap2'
set vpp interfaces vxlan vxlan2 vni 2
set vpp kernel-interfaces vpptap2 address '10.0.0.0/31'
commit && ip a show dev vpptap2


delete vpp
commit && ip link show


set interfaces ethernet eth1 address 192.0.2.1/30
set vpp settings interface eth1 driver 'dpdk'
set vpp interfaces vxlan vxlan2 remote '192.0.2.25'
set vpp interfaces vxlan vxlan2 source-address '192.0.2.1'
set vpp interfaces vxlan vxlan2 kernel-interface 'vpptap2'
set vpp interfaces vxlan vxlan2 vni 2
set vpp kernel-interfaces vpptap2 address '10.0.0.0/31'
commit && ip a show dev vpptap2

Cannot delete the full vpp config

vyos@r16# delete vpp
[edit]
vyos@r16# commit && ip link show
[ vpp kernel-interfaces vpptap2 ]
Interface vpptap2 must be created before using in configuration
delete [ vpp kernel-interfaces vpptap2 ] failed
delete [ vpp ] failed
Commit failed
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
    link/ether 52:54:00:42:62:d6 brd ff:ff:ff:ff:ff:ff
    altname enp1s0
4: pim6reg@NONE: <NOARP,UP,LOWER_UP> mtu 1452 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/pimreg 
8: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
    link/ether 52:54:00:6f:de:e8 brd ff:ff:ff:ff:ff:ff
[edit]
vyos@r16#

On the second or third set commit address is not assigned to the kernel-interface

vyos@r16# set interfaces ethernet eth1 address 192.0.2.1/30

  Configuration path: [interfaces ethernet eth1 address 192.0.2.1/30] already exists

[edit]
vyos@r16# set vpp settings interface eth1 driver 'dpdk'
[edit]
vyos@r16# set vpp interfaces vxlan vxlan2 remote '192.0.2.25'
[edit]
vyos@r16# set vpp interfaces vxlan vxlan2 source-address '192.0.2.1'
[edit]
vyos@r16# set vpp interfaces vxlan vxlan2 kernel-interface 'vpptap2'
[edit]
vyos@r16# set vpp interfaces vxlan vxlan2 vni 2
[edit]
vyos@r16# set vpp kernel-interfaces vpptap2 address '10.0.0.0/31'
[edit]
vyos@r16# commit && ip a show dev vpptap2
10: vpptap2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc mq state UNKNOWN group default qlen 1000
    link/ether 02:fe:fe:31:d1:43 brd ff:ff:ff:ff:ff:ff
[edit]
vyos@r16#

Details

Version
VyOS 1.5-rolling-202502020007
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)
Story points
5

Related Objects

Event Timeline

Viacheslav triaged this task as Normal priority.