summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2017-05-26 03:48:53 -0700
committerNeale Ranns <nranns@cisco.com>2017-05-30 01:39:33 -0700
commit0a796ae9932c8b827329ffe1ba10433c49c2c2e4 (patch)
tree764c786130cc8eec4b38cd75bb16687b8092db84 /test
parente3b7ad7adebf25af1651a217da8534ada89c369b (diff)
MPLS lookup DPO does not pop the label (nor does it handle replicate)
Change-Id: I7de6b96631d1645d0eadd38525860d84d78e316d Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'test')
-rw-r--r--test/test_mpls.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/test_mpls.py b/test/test_mpls.py
index fc832644a10..40ffcdc6342 100644
--- a/test/test_mpls.py
+++ b/test/test_mpls.py
@@ -735,6 +735,26 @@ class TestMPLS(VppTestCase):
rx = self.pg1.get_capture(packet_count)
self.verify_capture_ip4(self.pg1, rx, tx, ping_resp=1)
+ #
+ # Double pop
+ #
+ route_36_neos = VppMplsRoute(self, 36, 0,
+ [VppRoutePath("0.0.0.0",
+ 0xffffffff)])
+ route_36_neos.add_vpp_config()
+
+ self.vapi.cli("clear trace")
+ tx = self.create_stream_labelled_ip4(self.pg0, [36, 35],
+ ping=1, ip_itf=self.pg1)
+ self.pg0.add_stream(tx)
+
+ self.pg_enable_capture(self.pg_interfaces)
+ self.pg_start()
+
+ rx = self.pg1.get_capture(len(tx))
+ self.verify_capture_ip4(self.pg1, rx, tx, ping_resp=1)
+
+ route_36_neos.remove_vpp_config()
route_35_eos.remove_vpp_config()
route_34_eos.remove_vpp_config()