Skip to content

Commit

Permalink
Merge pull request #60 from open-traffic-generator/datatype-refactor
Browse files Browse the repository at this point in the history
Fix max BGP ASN to 4294967295
  • Loading branch information
bortok authored Sep 20, 2023
2 parents da196f1 + c99ab59 commit 8fc7c31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/bgp.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import (

const (
BGP_ASN_MIN = uint32(0) // Minimum value for ASN
BGP_ASN_MAX = uint32(2147483647) // Maximin value for ASN (4-byte), should be uint32(4294967294) but gosnappi uses signed int32 and that leads to negative values
BGP_ASN_MAX = uint32(4294967295) // Maximin value for ASN (4-byte)
BGP_ASN_DEFAULT = uint32(65534) // Default ASN value
)

Expand Down

0 comments on commit 8fc7c31

Please sign in to comment.