diff options
Diffstat (limited to 'packet')
-rw-r--r-- | packet/bgp/bgp.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packet/bgp/bgp.go b/packet/bgp/bgp.go index 2ed6adcf..a8a58833 100644 --- a/packet/bgp/bgp.go +++ b/packet/bgp/bgp.go @@ -2479,7 +2479,7 @@ func (er *EVPNEthernetSegmentRoute) String() string { // For the purpose of BGP route key processing, only the Ethernet // Segment ID, IP Address Length, and Originating Router's IP Address // fields are considered to be part of the prefix in the NLRI. - return fmt.Sprintf("[type:esi][rd:%s][esi:%d][ip:%s]", er.RD, er.ESI, er.IPAddress) + return fmt.Sprintf("[type:esi][rd:%s][esi:%s][ip:%s]", er.RD, er.ESI.String(), er.IPAddress) } func (er *EVPNEthernetSegmentRoute) MarshalJSON() ([]byte, error) { |