Page MenuHomeVyOS Platform

BGP - migrate from tagNode to node (remove ASN from tagNode)
Closed, ResolvedPublicFEATURE REQUEST

Description

Every time when set configuration bgp, you need set AS-NUMBER

set protocols bgp xxx
set protocols bgp xxx neighbor 10.10.1.2
set protocols bgp xxx addresss-family

It would be nice to add function like ' local-AS', which is set first time (one time) and value of this function is as-number for default.
It will be convenient for configurations.

set protocols bgp local-as xxx
set protocols bgp neighbor 10.10.1.2
set protocols bgp address-family
set protocols bgp neighbor 100.10.4.44 local-as 11111

If local-as used for neighbor, this have more priority and rewrite default value.

Details

Difficulty level
Normal (likely a few hours)
Version
-
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Config syntax change (migratable)

Event Timeline

syncer triaged this task as Normal priority.
syncer edited projects, added VyOS 1.3 Equuleus; removed VyOS 1.2 Crux.

As the AS number is a bgp specific attribute i don't think it's wise to move it out of the bgp hierarchy .

i would propose this syntaxes:

set protocols bgp local-as xxx
set protocols bgp neighbor 10.10.1.2
set protocols bgp address-family.......

also if this PR is accepted, it makes most sense to change this at the same time the bgp code is converted to the python framework to not have to change all the old bits and pieces lying around

What about upcoming VRF when we possibly have multiple bgp processes?

As for my understanding frr only supports a single bgp instance running at a time. But i've not verified thid completly.

@runar at the current time this is true only one BGP instance is supported. But when we incorporate VRF one day which is definately on the roadmap this could change.

We are a little confused.
As far as I know, Bgp instance on all router's platforms always one.
And it use socket with 179 tcp port.
VRF is working on same bgp instance, but support multiple autonomous system at once.

It is true what @Viacheslav say, there is only possible to run one instance of bgp om a given router.. when using vrf's the bgp running inside the vrf is a subset of the main instance. to confirm, start vtysh and try to create multiple processes.. it will likly fail :)

Okay, thanks for the info.

Still IMHO we have much bigger topics then this beautification :) I would keep it as it is b/c this is like most software behaves that I use (IOS, IOS-XR, VyOS, FRR)

-1

c-po changed the task status from Open to In progress.Mar 29 2021, 4:30 PM
c-po claimed this task.
c-po changed Difficulty level from Unknown (require assessment) to Normal (likely a few hours).
c-po changed Is it a breaking change? from Unspecified (possibly destroys the router) to Config syntax change (migratable).
c-po added a subscriber: dmbaturin.
c-po lowered the priority of this task from Normal to Wishlist.
c-po edited projects, added VyOS 1.4 Sagitta; removed VyOS 1.3 Equuleus.
c-po renamed this task from Bgp set local-AS number one time to BGP - migrate from tagNode to node (remove ASN from tagNode).Apr 10 2021, 10:31 AM