diff options
| author | Philippe Guibert <philippe.guibert@6wind.com> | 2022-11-15 16:42:40 +0100 |
|---|---|---|
| committer | Philippe Guibert <philippe.guibert@6wind.com> | 2023-02-10 10:19:06 +0100 |
| commit | 9eb11997104e3ba5e436220f758f7881c0c0556d (patch) | |
| tree | 5b23e2116716f4fa7368312c3f8582f2de010bc6 /lib/command.h | |
| parent | 0e7864be7b3be61e3f8f397145acc2de017871e3 (diff) | |
bgpd: store the bgp as identifier in the configured as-notation
This is a preliminary work to handle various ways to configure
a BGP Autonomous System. When creating a BGP instance, the
user may want to define the AS number as a dotted value,
instead of using an integer value.
To handle both cases, an as_pretty char attribute will store
the as number as it has been given to the vtysh command:
router bgp <as number>
Whenever the as integer of the BGP instance was dumped,
the as_pretty original format is used.
The json output reuses the integer value to keep backward
compatibility with old displays.
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'lib/command.h')
0 files changed, 0 insertions, 0 deletions
