summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2017-05-26 03:48:53 -0700
committerDamjan Marion <dmarion.lists@gmail.com>2017-05-26 18:15:31 +0000
commit6af1c04f925f0d74fc02789cf8227706ed6a8c2a (patch)
tree4661458544f73e55df5141f361a8244b8066f69e /test
parentdcd6d6254a2b204a4283c889d1feac8f59a62639 (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 77cec429f5a..e3d013af4d6 100644
--- a/test/test_mpls.py
+++ b/test/test_mpls.py
@@ -771,6 +771,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()