removed precondition checks for v4/v6 next-hops for v4/v6 routes 09/40109/4
authorGiles Heron <giheron@cisco.com>
Tue, 24 May 2016 12:03:52 +0000 (13:03 +0100)
committerMilos Fabian <milfabia@cisco.com>
Thu, 16 Jun 2016 17:18:42 +0000 (17:18 +0000)
Change-Id: Iddc5d26b3cff48582fb3d0d11c7fe1e0e0888b27
Signed-off-by: Giles Heron <giheron@cisco.com>
(cherry picked from commit 95768ea4354c69ff7ad5a7888cfc6d64de43ec32)

bgp/parser-impl/src/main/java/org/opendaylight/protocol/bgp/parser/impl/BGPActivator.java

index 5b30152669bbc388577bf8ad961557d42cff89a1..d25d56a4077388f8e54eb8159ecb509f003491ec 100755 (executable)
@@ -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);