]> git.proxmox.com Git - mirror_frr.git/commit
bgpd: modify bgp as number output
authorPhilippe Guibert <philippe.guibert@6wind.com>
Fri, 18 Nov 2022 12:49:53 +0000 (13:49 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Fri, 10 Feb 2023 09:27:23 +0000 (10:27 +0100)
commite84c7c12f224f27ae430f2929a9fd121b133c2b3
tree4957646b5b93635e3b9cab8281f591cda750a89d
parent17571c4ae7fa294e031b3e614a4fa62f834d0b3d
bgpd: modify bgp as number output

A json AS number API is created in order to output a
given AS number. In order to keep backward compatibility,
if the as-notation uses a number, then the json is encoded
as an integer, otherwise the encoding will be a string.

For what is not relevant to running-configuration, the
as-notation mode is the one used for the BGP instance.

Also, the vty completion gets the configured 'as_pretty'
string value, when an user wants to get the available
BGP instances.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
bgpd/bgp_evpn_vty.c
bgpd/bgp_route.c
bgpd/bgp_vty.c
bgpd/bgpd.c
lib/asn.c
lib/asn.h