Improve RouteDistinguisherUtil 32/105632/2
authorRobert Varga <robert.varga@pantheon.tech>
Sun, 23 Apr 2023 21:23:06 +0000 (23:23 +0200)
committerRobert Varga <nite@hq.sk>
Sun, 23 Apr 2023 22:23:26 +0000 (22:23 +0000)
commit9a33d43e3516ad73e0ec74df82034f9fe23a5c28
treebc05b73e184132b9acd25a0d5479bb8dc7357ebc
parentd182218a711030b8ca441281d7da1316f76de5bd
Improve RouteDistinguisherUtil

Do not muck with NormalizedNodes.findNode(), as we have the same
functionlity directly available.

Eliminate RDType -- it is a noble idea, but all we really need is just
valid constants. This improves both paths, as the arguments are now
known compile-time constants.

Finally improve nullness annotations, eliminating the need for a
requireNonNull() in flowspec.

Change-Id: I176db96b783649de166797ee84bf919e68a57196
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
bgp/concepts/src/main/java/org/opendaylight/bgp/concepts/RouteDistinguisherUtil.java
bgp/extensions/flowspec/src/main/java/org/opendaylight/protocol/bgp/flowspec/l3vpn/AbstractFlowspecL3vpnNlriParser.java