From 0a796ae9932c8b827329ffe1ba10433c49c2c2e4 Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Fri, 26 May 2017 03:48:53 -0700 Subject: MPLS lookup DPO does not pop the label (nor does it handle replicate) Change-Id: I7de6b96631d1645d0eadd38525860d84d78e316d Signed-off-by: Neale Ranns --- test/test_mpls.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'test') 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() -- cgit 1.2.3-korg