X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2Ftest_gre.py;h=7032940cfdb914160ad49681d874c1493d3e635c;hb=c5c6a3342f3cbaaac647d52fd960b6f5b0fcd4e0;hp=5cdc0637a1a58c5212b33228d5c343fdabce8484;hpb=8716e6bf43b7043790980c6ef0bd21d42b34a2a1;p=vpp.git diff --git a/test/test_gre.py b/test/test_gre.py index 5cdc0637a1a..7032940cfdb 100644 --- a/test/test_gre.py +++ b/test/test_gre.py @@ -673,6 +673,25 @@ class TestGRE(VppTestCase): rx = self.pg0.get_capture(len(tx)) self.verify_decapped_4o4(self.pg0, rx, tx) + # + # Send tunneled packets that match the created tunnel and + # but arrive on an interface that is not in the tunnel's + # encap VRF, these are dropped + # + self.vapi.cli("clear trace") + tx = self.create_tunnel_stream_4o4(self.pg2, + "2.2.2.2", + self.pg1.local_ip4, + self.pg0.local_ip4, + self.pg0.remote_ip4) + self.pg1.add_stream(tx) + + self.pg_enable_capture(self.pg_interfaces) + self.pg_start() + + self.pg0.assert_nothing_captured( + remark="GRE decap packets in wrong VRF") + # # test case cleanup #