Page MenuHomeVyOS Platform

as-override isn't applied to frr
Closed, ResolvedPublicBUG


it doesn't appear that setting as-override in vyos applies it to running frr config

here's the config i dropped into my test vyos vm

vyos@pe1# show protocols bgp | commands 
set address-family ipv4-unicast redistribute connected
set local-as '64512'
set neighbor address-family ipv4-unicast
set neighbor remote-as 'internal'
set neighbor update-source 'lo'
set neighbor address-family ipv4-unicast as-override
set neighbor remote-as 'external'
set parameters log-neighbor-changes

and here's what comes up in vtysh:

router bgp 64512
 bgp log-neighbor-changes
 no bgp ebgp-requires-policy
 no bgp network import-check
 neighbor remote-as internal
 neighbor update-source lo
 neighbor remote-as external
 address-family ipv4 unicast
  redistribute connected

if i manually enter as-override into frr, the config/topology i'm testing with works as expected


Difficulty level
Easy (less than an hour)
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible

Event Timeline

Thunderstorm updated the task description. (Show Details)

looks like this was missing in the bgp template
manually adding to /usr/share/vyos/templates/frr/bgp.frr.tmpl:

{%       if afi_config.as_override is defined %}
  neighbor {{ neighbor }} as-override
{%       endif %}

appears to apply it to frr

Thunderstorm changed Difficulty level from Unknown (require assessment) to Easy (less than an hour).
Thunderstorm changed Is it a breaking change? from Unspecified (possibly destroys the router) to Perfectly compatible.