diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 7a76f1cbf..7cfd033e8 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -5,7 +5,9 @@ Version explained: Version 4.2.17 * Feature: add flags ECE, CW and NS to TCP, (not sure if any flowspec implementation uses them) #1053 - reported by: enag11 + reported by: enag11 + * Fix: bug with IGP Metric #1056 + patch by: hkml2000 Version 4.2.16 * Fix: bacckport of fix for #1051 tcp-flag operators != and &!= return syntax error diff --git a/lib/exabgp/bgp/message/update/attribute/bgpls/link/igpmetric.py b/lib/exabgp/bgp/message/update/attribute/bgpls/link/igpmetric.py index e6320f7f2..f11668f9d 100644 --- a/lib/exabgp/bgp/message/update/attribute/bgpls/link/igpmetric.py +++ b/lib/exabgp/bgp/message/update/attribute/bgpls/link/igpmetric.py @@ -59,4 +59,4 @@ def unpack(cls, data, length): raise Notify(3, 5, "Incorrect IGP Metric Size") def json(self, compact=None): - return '"igp-metric": %d' % int(self.igpmetric[0]) + return '"igp-metric": %d' % int(self.igpmetric)