Page MenuHomeVyOS Platform

Deleting VRRP-VIP and adding the same address to physical interface in one commit fails
Resolved (N/A)PublicBUG

Description

If I want to move away from vrrp to just regular physical addresses in one commit, the commit succeeds, but the physical address not configured on physical int.

to reproduce:
have 172.16.1.1/27 configured on eth1.72.
then apply these commands:

delete interface ethernet eth1 vif 72 address 172.16.1.1/27
set high-availability vrrp group INFRA10 interface 'eth1.72'
set high-availability vrrp group INFRA10 virtual-address '172.16.1.1/27'
set high-availability vrrp group INFRA10 vrid '12'
commit

All good, 172.16.1.1 is deleted from physical, and added to vrrp vip.

However, going back to physical interfaces fails if I do this in one commit.

delete high-availability vrrp group INFRA10
set interface ethernet eth1 vif 72 address 172.16.1.1/27
commit

The 172.16.1.1 address appears in vyos configuration file, but it is not configured on physical interface.
Workaround is to delete interface address - commit - and readd address.

But I also noticed, if I add RFC3768 compability, it does work to go back to a address on physical int.
set high-availability vrrp group INFRA10 rfc3768-compatibility

I tested this behaviour in 1.2.3 and 1.2.7, they appear the same.

Details

Difficulty level
Unknown (require assessment)
Version
1.2.7
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)

Event Timeline

I tested in 1.2.7 ver and the issue did not reproduce:

vyos@R1# del high-availability vrrp group 20
[edit]
vyos@R1# set int eth eth0 vif 72 add 172.25.0.247/16
[edit]
vyos@R1# compare
[edit high-availability vrrp]
-group 20 {
-    advertise-interval 1
-    authentication {
-        password vyos
-        type plaintext-password
-    }
-    interface eth0
-    priority 200
-    virtual-address 172.25.0.247/16
-    vrid 10
-}
[edit interfaces ethernet eth0]
+vif 72 {
+    address 172.25.0.247/16
+}
[edit]
vyos@R1# commit
[ high-availability vrrp ]
Stopping the VRRP process

vyos@R1# run sh ver
Version:          VyOS 1.2.7

vyos@R1# run sh int
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface        IP Address                        S/L  Description
---------        ----------                        ---  -----------
eth0             172.25.4.1/16                     u/u  vrrp1
eth0.72          172.25.0.247/16                    u/u