removed precondition checks for v4/v6 next-hops for v4/v6 routes 39/39339/3
authorGiles Heron <giheron@cisco.com>
Tue, 24 May 2016 12:03:52 +0000 (13:03 +0100)
committerMilos Fabian <milfabia@cisco.com>
Thu, 9 Jun 2016 13:40:56 +0000 (13:40 +0000)
Change-Id: Iddc5d26b3cff48582fb3d0d11c7fe1e0e0888b27
Signed-off-by: Giles Heron <giheron@cisco.com>
bgp/parser-impl/src/main/java/org/opendaylight/protocol/bgp/parser/impl/BGPActivator.java

index 7b66b89b5d039403e5d0593cacade78bde1344ed..ba6f795925b60777558668560502ede42c8c44b9 100755 (executable)
@@ -114,11 +114,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);