HC2VPP-316 - Fix isTableLookup check 96/12496/1
authorMichal Cmarada <[email protected]>
Wed, 9 May 2018 10:20:22 +0000 (12:20 +0200)
committerMichal Cmarada <[email protected]>
Wed, 9 May 2018 10:24:04 +0000 (12:24 +0200)
Fixing condition, because VPP-995 is not relevant anymore.

Change-Id: Ie444817c265f6a3e01b7694e60fd0ce76ec15bc5
Signed-off-by: Michal Cmarada <[email protected]>
routing/routing-impl/src/main/java/io/fd/hc2vpp/routing/trait/RouteMapper.java

index 68f245b..8da15c1 100644 (file)
@@ -79,8 +79,7 @@ public interface RouteMapper extends AddressTranslator, ByteDataTranslator {
     }
 
     default boolean isTableLookup(@Nonnull final FibPath path) {
-        // TODO - remove isDrop condition https://jira.fd.io/browse/VPP-995
-        return path.isDrop == 1 && isArrayZeroed(path.nextHop);
+        return !isSpecialHop(path) && isArrayZeroed(path.nextHop);
     }
 
     default SpecialNextHopGrouping.SpecialNextHop specialHopType(final FibPath singlePath) {