Page MenuHomeVyOS Platform

Vlan is not removed from the system
Closed, ResolvedPublicBUG

Description

For reproducing the bug, create vif and delete it.

set interfaces ethernet eth1 vif 50 address 10.20.30.1/24
commit

delete interfaces ethernet eth1 vif 50
commit

Vif Interface still live in the system and op-mode

vyos@r-roll:~$ show interfaces 
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface        IP Address                        S/L  Description
---------        ----------                        ---  -----------
eth0             192.168.122.11/24                 u/u  
eth1             -                                 u/u  
eth1.50          10.20.30.1/24                     u/u
vyos@r-roll:~$ sudo ip link show | grep 1.50
5: eth1.50@eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000

sudo ip route show | grep 10.20
10.20.30.0/24 dev eth1.50 proto kernel scope link src 10.20.30.1

Details

Difficulty level
Unknown (require assessment)
Version
VyOS 1.3-rolling-202006230700
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Event Timeline

The problem also probably exists with vif_s .. it needs to be investigated.

Viacheslav changed the task status from Open to Needs testing.Jun 24 2020, 6:48 PM

vif interfaces are removed normally.

vif-s (double tag) with problems

set interfaces ethernet eth1 vif-s 222 vif-c 2345
commit
vyos@r-roll:~$ show int
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface        IP Address                        S/L  Description
---------        ----------                        ---  -----------
eth0             192.168.122.11/24                 u/u  
eth1             10.0.1.1/24                       u/u  
eth1.222         -                                 u/u  
eth1.222.2345    -                                 u/u
delete interfaces ethernet eth1 vif-s
commit

Vif-s interfaces

vyos@r-roll:~$ show int
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface        IP Address                        S/L  Description
---------        ----------                        ---  -----------
eth0             192.168.122.11/24                 u/u  
eth1             10.0.1.1/24                       u/u  
eth1.222         -                                 u/u  
eth1.222.2345    -                                 u/u

Fixed, VyOS 1.3-rolling-202008040823

set interfaces ethernet eth1 vif-s 222 vif-c 2345
commit
vyos@r4-roll# run show interfaces 
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface        IP Address                        S/L  Description
---------        ----------                        ---  -----------
eth0             192.168.122.14/24                 u/u  
eth1             -                                 u/u  
eth1.222         -                                 u/u  
eth1.222.2345    -                                 u/u
delete interfaces ethernet eth1 vif-s
commit
vyos@r4-roll# run show int
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface        IP Address                        S/L  Description
---------        ----------                        ---  -----------
eth0             192.168.122.14/24                 u/u  
eth1             -                                 u/u  
lo               127.0.0.1/8                       u/u  
                 ::1/128
erkin set Issue type to Bug (incorrect behavior).Aug 29 2021, 2:10 PM
erkin removed a subscriber: Active contributors.