Replies: 4 comments
-
The set of supported BGP features are already set per platform. So my proposal is to allow 4B ASN in the generic datamodel and implement a BGP 4b support boolean per platform. We need to analyse the used ASN and if it's a 4B and the new boolean is not Example feature gate in a device: netlab/netsim/devices/sros.yml Line 34 in 9cadf7c Example check in the module logic that we could replicate: |
Beta Was this translation helpful? Give feedback.
-
In principle: yeah, let's do it. However:
We would probably have to:
|
Beta Was this translation helpful? Give feedback.
-
Looks like even IOSv supports 4-byte ASN for RD/RT (at least it doesn't complain). I'll relax the ASN validation check, and we ever run into problems we'll either add a documentation warning saying "check what your devices can do" or implement feature checks. |
Beta Was this translation helpful? Give feedback.
-
BGP ASN is typechecked to be a 2Byte value at the moment:
https://github.com/ipspace/netlab/blob/9cadf7cda2e2033b98b16c328655d90d61d100d5/netsim/data/types.py#L519C33-L519C33
Given the supported platforms for this module, is the a realistic limit? Can we simple relax the type check or do we need additional controls per platform we're serving, to indicate whether the 4B asn will work before finding out the hard way?
Beta Was this translation helpful? Give feedback.
All reactions