Page MenuHomeVyOS Platform

Keepalived: Allow using the 'dev' statement on excluded-addresses
Closed, ResolvedPublicFEATURE REQUEST

Description

On a virtual address you can use the dev statement to make sure an ip address ends up on a sepecific interface.

It would be nice to also be able to do this with the excluded-address statement. For instance:

set high-availability vrrp group v12 address 1.1.1.1/24 interface eth0
set high-availability vrrp group v12 excluded-address 1.1.2.1/32 interface dum0

Details

Difficulty level
Unknown (require assessment)
Version
-
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible
Issue type
Improvement (missing useful functionality)

Event Timeline

Viacheslav changed the task status from Open to In progress.Jan 20 2024, 2:01 PM
Viacheslav triaged this task as Low priority.
Viacheslav added a subscriber: Viacheslav.

@roedie Can you create a PR if you are working on it?

@Viacheslav Yes I will create a PR somewhere coming weeks.

PR https://github.com/vyos/vyos-1x/pull/3200

set high-availability vrrp group GRP-01 address 100.64.0.5
set high-availability vrrp group GRP-01 address 192.0.2.5
set high-availability vrrp group GRP-01 excluded-address 100.64.0.5
set high-availability vrrp group GRP-01 excluded-address 192.0.2.201
set high-availability vrrp group GRP-01 excluded-address 192.0.2.202 interface 'dum2'
set high-availability vrrp group GRP-01 excluded-address 192.0.2.203 interface 'dum3'
set high-availability vrrp group GRP-01 excluded-address 192.0.2.222/24
set high-availability vrrp group GRP-01 interface 'eth1'
set high-availability vrrp group GRP-01 vrid '123'

Check:

vyos@r4# show interfaces dummy 
 dummy dum2 {
 }
 dummy dum3 {
 }
[edit]
vyos@r4# run show interfaces dummy 
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface        IP Address                        S/L  Description
---------        ----------                        ---  -----------
dum2             192.0.2.202/32                    u/u  
dum3             192.0.2.203/32                    u/u  
[edit]
vyos@r4#
Viacheslav moved this task from Need Triage to Finished on the VyOS 1.5 Circinus board.
Viacheslav moved this task from Need Triage to Finished on the VyOS 1.4 Sagitta board.