Use switch ID to generate the switch bgp_as number in combination with a new bgp prefix #4108
Closed
1 task done
Labels
type: enhancement
New feature or request
Enhancement summary
Since we give our switches bgp_as numbers when defining them as nodes, it would be nice to automatically utilize the switch ID to generate a fitting bgp number, similar to what is done with IP addresses and loopback pools.
Ideally you could define a bgp prefix, either for as.dot (which we use) or decimal notation and then simply add the value of the switch ID onto it.
Which component of AVD is impacted
eos_designs
Use case example
As stated, making use of the ID to simplify bgp_as number assignment for nodes.
Describe the solution you would like
There would be one new key "bgp_as_prefix" that is defined once for all switches and then a routine that adds the switch ID to the prefix.
Today, the bgp_as number is defined for each node individually
id: 11
bgp_as: "12345.00011"
For this feature request I imagine it simplified
bgp_as_prefix: "12345.00"
id: 11
resulting in the same bgp_as number of "12345.00011" being configured.
Describe alternatives you have considered
No response
Additional context
No response
Contributing Guide
The text was updated successfully, but these errors were encountered: