Page MenuHomeVyOS Platform

IP address for vif is not removed from the system when deleted in configuration
Closed, ResolvedPublicBUG

Description

When you delete an IP address from a vif ethernet interface it gets removed from the configuration but not from the tcp/ip stack.

Steps to reproduce:

  • Boot a live image of VyOS 1.3 EPA3
  • Enter configuration mode: configure
  • create a vif with an ip adress under the default interface eth0: set interface ethernet eth0 vif 3000 address 192.168.1.100/24
  • commit the config change: commit
  • display current interfaces:
vyos@vyos# run show interfaces
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface        IP Address                        S/L  Description
---------        ----------                        ---  -----------
eth0.3000        192.168.1.100/24                  u/u
lo               127.0.0.1/8                       u/u
  • Remove address from interface: delete interface ethernet eth0 vif 3000 address
  • commit the config change: commit
  • display current interfaces:
vyos@vyos# run show interfaces
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface        IP Address                        S/L  Description
---------        ----------                        ---  -----------
eth0.3000        192.168.1.100/24                  u/u
lo               127.0.0.1/8                       u/u

You have to manually remove the address via sudo ip addr del 192.168.1.100/24 dev eth0.3000

Details

Difficulty level
Easy (less than an hour)
Version
VyOS 1.3.0-epa3
Why the issue appeared?
Implementation mistake
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)

Event Timeline

Viacheslav changed the task status from Open to Confirmed.Dec 9 2021, 3:11 PM
c-po triaged this task as High priority.Dec 9 2021, 8:54 PM
c-po changed Difficulty level from Unknown (require assessment) to Easy (less than an hour).
c-po changed Why the issue appeared? from Will be filled on close to Implementation mistake.
c-po changed Is it a breaking change? from Unspecified (possibly destroys the router) to Perfectly compatible.
c-po moved this task from Need Triage to Finished on the VyOS 1.3 Equuleus (1.3.0) board.
c-po moved this task from Need Triage to Finished on the VyOS 1.4 Sagitta board.