Page MenuHomeVyOS Platform

bgp - as notation support
Open, NormalPublicFEATURE REQUEST

Description

Summary

Add support bgp as notation

Use case

AS-notation support

By default, the ASN value output follows how the BGP ASN instance is expressed in the configuration. Three as-notation outputs are available:

plain output: both AS4B and AS2B use a single number. ` router bgp 65536`.

dot output: AS4B values are using two numbers separated by a period. router bgp 1.1 means that the AS number is 65536.

dot+ output: AS2B and AS4B values are using two numbers separated by a period. router bgp 0.5 means that the AS number is 5.

Additional information
this feature allow to use different notation , here is a example in frr:

router bgp 65538 as-notation dot
 no bgp ebgp-requires-policy
 no bgp default ipv4-unicast
 no bgp network import-check
 neighbor upstream peer-group
 neighbor upstream remote-as 207160
 neighbor upstream update-source 172.17.0.3
 neighbor 185.65.243.1 peer-group upstream
 !
 address-family ipv4 unicast
  network 185.65.243.126/31
  neighbor upstream activate
  neighbor upstream soft-reconfiguration inbound
 exit-address-family
exit

it should show the following ouput :

vyos# show bgp summary

IPv4 Unicast Summary:
BGP router identifier 0.0.0.0, local AS number 65538 VRF default vrf-id 0
BGP table version 1
RIB entries 1, using 128 bytes of memory
Peers 1, using 24 KiB of memory
Peer groups 1, using 64 bytes of memory

Neighbor        V         AS            MsgRcvd   MsgSent   TblVer  InQ OutQ  Up/Down State/PfxRcd   PfxSnt Desc
185.65.243.1    4 3.10552       0         0        0    0    0    never       Active        0 N/A

Total number of neighbors 1
vyos#

frr documentation: https://docs.frrouting.org/en/latest/bgp.html#as-notation-support

frr command:

vyos(config)# router bgp 65538 as-notation
  dot    use 'AA.BB' format for AS 4 byte values
  dot+   use 'AA.BB' format for all AS values
  plain  use plain format for all AS values

vyos possible cli :
set protocols bgp parameters as-notation X

Details

Version
-
Is it a breaking change?
Perfectly compatible
Issue type
Feature (new functionality)