Closed edudppaz closed 1 month ago
Can you enable debugging and paste content of GET response ?
Be aware that this is a bug in the XR YANG/gNMI implementation as the value is returned as a JSON number (without quotes) and therefore correctly interpreted as a floating point number. I would recommend to open a case with Cisco to get this fixed. For now we have implemented a workaround on the provider side to always interpret the AS number as a string.
Workaround implemented in 0.5.2 release.
When using a dot notation for the ASN for bgp neighbors, and the ASN has trailing zeros , for example:
65500.100
the value gets properly pushed to the devices, but gets stored in the state as65500.1
, so on each plan, terraform brings a change to the value:It seems like the value is being saved as floating point or int on the state, it should be saved as a string to allow trailing zeros.