Page MenuHomeVyOS Platform

Bgp neighbor interface ordering for remote-as
Closed, ResolvedPublicBUG

Description

That part of a configuration

set protocols bgp 64501 neighbor eth1 capability extended-nexthop
set protocols bgp 64501 neighbor eth1 interface remote-as '64501'

Translate to FRR

!
router bgp 64501
 neighbor eth1 capability extended-nexthop
 neighbor eth1 interface remote-as 64501
!

Needs to change template, which will check/write first "remote-as" and then other options.

r-roll01# conf t
r-roll01(config)# router bgp 64501
r-roll01(config-router)#  neighbor eth1 capability extended-nexthop
% Specify remote-as or peer-group commands first
r-roll01(config-router)#

Part of debug from commit

frr-reload output:  73 ['router bgp 64501\n no bgp ebgp-requires-policy\n',
frr-reload output:  74  'router bgp 64501\n no bgp network import-check\n',
frr-reload output:  75  'router bgp 64501\n neighbor eth1 capability extended-nexthop\n',
frr-reload output:  76  'router bgp 64501\n neighbor eth1 interface remote-as 64501\n']
frr-reload output:  77 % Specify remote-as or peer-group commands first
frr-reload output:  78 line 8: Failure to communicate[13] to bgpd, line:  neighbor eth1 capability extended-nexthop
frr-reload output:  79 
frr-reload output:  80 2021-02-27 10:24:20,924 WARNING: frr-reload.py failed due to

Details

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

Event Timeline

Viacheslav renamed this task from Bgp neighbor interface ordering to Bgp neighbor interface ordering for remote-as.Feb 27 2021, 10:25 AM
Viacheslav created this task.

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

Config ordering (remote-as before other options)

commit_configuration: new_config   8 !
commit_configuration: new_config   9 router bgp 64501
commit_configuration: new_config  10  no bgp ebgp-requires-policy
commit_configuration: new_config  11  no bgp network import-check
commit_configuration: new_config  12  !
commit_configuration: new_config  13  !
commit_configuration: new_config  14  !
commit_configuration: new_config  15  neighbor eth1 interface remote-as 64501
commit_configuration: new_config  16  neighbor eth1 capability extended-nexthop
commit_configuration: new_config  17  !
commit_configuration: new_config  18

PR https://github.com/vyos/vyos-1x/pull/753
Additional checks for "neighbor interface" configuration.

if config.interface is defined