Page MenuHomeVyOS Platform

Allow route-map 'set src' to reference both IPv4 and IPv6
Closed, ResolvedPublicENHANCEMENT

Description

Hi,

Current template does not allow setting an IPv6 address as the preferred source address in a route-map rule. FRRouting natively supports this so it was trivial to change the restriction of the existing item in VyOS. Opening the request so that it can be tied to a proposed patch.

Regards
David Herselman

Details

Version
1.2+
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Unspecified (please specify)

Event Timeline

bbs2web triaged this task as Normal priority.

I've attached a simple patch to allow 'set src' to be either IPv4 or IPv6 addresses.

If I remember this change was accepted in to VyOS 1.3. There is confirmation of a configuration where we set IPv4 and IPv6 preferred source in the following thread:
https://phabricator.vyos.net/T1528

https://vyos.dev/T5085 did the changes for OSPF, but we need this for BGP too

c-po changed the task status from Open to In progress.May 18 2024, 10:49 AM
c-po claimed this task.
c-po set Issue type to Unspecified (please specify).

Feature available in 1.3.6 1.4.0-epa3 and 1.5

VyOS CLI

set policy route-map foo rule 10 action 'permit'
set policy route-map foo rule 10 set src '2001:db8::1'

Generates FRR CLI

route-map foo permit 10
 set src 2001:db8::1
exit