Use read 4 bytes in TE Metric case 09/90809/3
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 29 Jun 2020 14:25:11 +0000 (16:25 +0200)
committerRobert Varga <nite@hq.sk>
Fri, 17 Jul 2020 10:02:28 +0000 (10:02 +0000)
commitb686c59ff8b52fda5f8413be75089bf61187bce9
tree122a85c9dfce90427d28ae5a4ccd5a996ee424bc
parent379e922fb843112f713b65a2833a314d147f3bf0
Use read 4 bytes in TE Metric case

https://tools.ietf.org/html/rfc7752#section-3.3.2.3 requires the
field to have 4 bytes. Do not allow smaller values by using exacting
ByteBufUtils.readUint32().

Change-Id: I2e3604d4717b77a66b037ed35369c1d195ad2c94
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
bgp/extensions/linkstate/src/main/java/org/opendaylight/protocol/bgp/linkstate/impl/attribute/LinkAttributesParser.java