summaryrefslogtreecommitdiffstats
path: root/routing/routing-impl/src/test
diff options
context:
space:
mode:
authorJan Srnicek <jsrnicek@cisco.com>2017-02-22 07:54:52 +0100
committerJan Srnicek <jsrnicek@cisco.com>2017-02-22 07:38:54 +0000
commit67a9ab2f45b439f1272a2befc065571d8e90cb8b (patch)
treed1dea39970cf56540d3173e3b497bd09c766c1c1 /routing/routing-impl/src/test
parent10adb19d1ae404220424f1d53b7f42c5d8bc56e7 (diff)
HC2VPP-74 - mpls vs ipv4 route
Added mpls invalid label to not resolve route as mpls Change-Id: I43f82b8074512ab8e9a28ff02ef80bf52213c3c4 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
Diffstat (limited to 'routing/routing-impl/src/test')
-rw-r--r--routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/helpers/RoutingRequestTestHelper.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/helpers/RoutingRequestTestHelper.java b/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/helpers/RoutingRequestTestHelper.java
index 2194dfba7..7c3ddee2e 100644
--- a/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/helpers/RoutingRequestTestHelper.java
+++ b/routing/routing-impl/src/test/java/io/fd/hc2vpp/routing/helpers/RoutingRequestTestHelper.java
@@ -25,6 +25,7 @@ import static org.mockito.Mockito.when;
import io.fd.hc2vpp.common.test.util.FutureProducer;
import io.fd.hc2vpp.common.translate.util.ByteDataTranslator;
import io.fd.hc2vpp.routing.trait.RouteMapper;
+import io.fd.hc2vpp.routing.write.trait.RouteRequestProducer;
import io.fd.honeycomb.translate.util.RWUtils;
import io.fd.vpp.jvpp.core.dto.IpAddDelRoute;
import io.fd.vpp.jvpp.core.dto.IpAddDelRouteReply;
@@ -113,6 +114,7 @@ public interface RoutingRequestTestHelper extends ByteDataTranslator, FutureProd
request.isLocal = toByte(isLocal);
request.isUnreach = toByte(isUnreach);
request.isProhibit = toByte(isProhibit);
+ request.nextHopViaLabel = RouteRequestProducer.MPLS_LABEL_INVALID;
return request;
}