summaryrefslogtreecommitdiffstats
path: root/routing/routing-impl/src/main
diff options
context:
space:
mode:
authorMichal Cmarada <michal.cmarada@pantheon.tech>2018-05-09 12:20:22 +0200
committerMichal Cmarada <michal.cmarada@pantheon.tech>2018-05-09 12:24:04 +0200
commit6bfb3a997ad5f0993808db92b484f3d0d5dac452 (patch)
treef12d7a5355f8606729dcfd8a271b18ec04e26f59 /routing/routing-impl/src/main
parent6b51cbd98cfc45f90fd4b61ae9ea28c23999288f (diff)
HC2VPP-316 - Fix isTableLookup check
Fixing condition, because VPP-995 is not relevant anymore. Change-Id: Ie444817c265f6a3e01b7694e60fd0ce76ec15bc5 Signed-off-by: Michal Cmarada <michal.cmarada@pantheon.tech>
Diffstat (limited to 'routing/routing-impl/src/main')
-rw-r--r--routing/routing-impl/src/main/java/io/fd/hc2vpp/routing/trait/RouteMapper.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/routing/routing-impl/src/main/java/io/fd/hc2vpp/routing/trait/RouteMapper.java b/routing/routing-impl/src/main/java/io/fd/hc2vpp/routing/trait/RouteMapper.java
index 68f245b26..8da15c1bd 100644
--- a/routing/routing-impl/src/main/java/io/fd/hc2vpp/routing/trait/RouteMapper.java
+++ b/routing/routing-impl/src/main/java/io/fd/hc2vpp/routing/trait/RouteMapper.java
@@ -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) {