open-traffic-generator / snappi

Open Traffic Generator SDK in Python and Go
MIT License
70 stars 7 forks source link

snappi 0.13.4: log for bgp ASN number overflowed #217

Closed tyrinwu closed 8 months ago

tyrinwu commented 9 months ago

07-01,23:22:20,Config,GetVersion returning OTG version as 0.13.4 , app version as 1.00.0.348

For ASN 4294967000, one would get AS -296 in the log of a ixia-c-protocol-engine container.

07-01,23:27:44,Config,          BgpIpv4Interface: name otg1.eth[0].ipv4[0], no. of peers 1
07-01,23:27:44,Config,                  BGP Peer : Name otg1.bgp4.peer[0] DUT IP XXXX AS -296 type eBGP

Config used:

                  "as_type":  "ebgp",
                  "as_number":  "4294967000",
                  "as_number_width":  "four",

Related issue: https://github.com/open-traffic-generator/snappi/issues/195

apratimmukherjee commented 8 months ago

Indeed it is a logging issue wherein logging was not fixed after OTG datatype for ASno was fixed to uint32 from int to handle large 32 bit AS Nos . ( for https://github.com/open-traffic-generator/snappi/issues/195 ) It is printing the value as int instead of unsigned int.

apratimmukherjee commented 8 months ago

Fixed in v0.1.0-222