From: Giles Heron Date: Tue, 24 May 2016 12:03:52 +0000 (+0100) Subject: removed precondition checks for v4/v6 next-hops for v4/v6 routes X-Git-Tag: release/boron~115 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=6f1e008a1274bc1020e1135d3514c401b452b0a4;p=bgpcep.git removed precondition checks for v4/v6 next-hops for v4/v6 routes Change-Id: Iddc5d26b3cff48582fb3d0d11c7fe1e0e0888b27 Signed-off-by: Giles Heron (cherry picked from commit 95768ea4354c69ff7ad5a7888cfc6d64de43ec32) --- diff --git a/bgp/parser-impl/src/main/java/org/opendaylight/protocol/bgp/parser/impl/BGPActivator.java b/bgp/parser-impl/src/main/java/org/opendaylight/protocol/bgp/parser/impl/BGPActivator.java index 5b30152669..d25d56a407 100755 --- a/bgp/parser-impl/src/main/java/org/opendaylight/protocol/bgp/parser/impl/BGPActivator.java +++ b/bgp/parser-impl/src/main/java/org/opendaylight/protocol/bgp/parser/impl/BGPActivator.java @@ -134,11 +134,11 @@ public final class BGPActivator extends AbstractBGPExtensionProviderActivator { final Ipv4NextHopParserSerializer ipv4NextHopParser = new Ipv4NextHopParserSerializer(); regs.add(context.registerNlriParser(Ipv4AddressFamily.class, UnicastSubsequentAddressFamily.class, - new Ipv4NlriParser(), ipv4NextHopParser, Ipv4NextHopCase.class)); + new Ipv4NlriParser(), ipv4NextHopParser, Ipv4NextHopCase.class, Ipv6NextHopCase.class)); final Ipv6NextHopParserSerializer ipv6NextHopParser = new Ipv6NextHopParserSerializer(); regs.add(context.registerNlriParser(Ipv6AddressFamily.class, UnicastSubsequentAddressFamily.class, new - Ipv6NlriParser(), ipv6NextHopParser, Ipv6NextHopCase.class)); + Ipv6NlriParser(), ipv6NextHopParser, Ipv4NextHopCase.class, Ipv6NextHopCase.class)); this.registerExtendedCommunities(regs, context); this.registerCapabilityParsers(regs, context);