summaryrefslogtreecommitdiffstats
path: root/test/test_gre.py
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2018-11-29 08:24:38 +0000
committerOle Trøan <otroan@employees.org>2018-11-29 09:40:19 +0000
commit743ee3e12531ec3c6ba2e2add694dde3361b0e03 (patch)
tree890b3cc67e5537142fb2dfc9d06ab1c518715671 /test/test_gre.py
parent609e1210c6339376dd6cdd0f79195b436d5614d2 (diff)
GRE: fix VRF unit-tests
Change-Id: Ic6d011065bf062a84fdccdb1726ed3e5ed99cfbc Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'test/test_gre.py')
-rw-r--r--test/test_gre.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/test/test_gre.py b/test/test_gre.py
index df3d2b4d296..cd898061fa2 100644
--- a/test/test_gre.py
+++ b/test/test_gre.py
@@ -768,17 +768,20 @@ class TestGRE(VppTestCase):
self.verify_decapped_4o4(self.pg0, rx, tx)
#
- # Send tunneled packets that match the created tunnel and
+ # Send tunneled packets that match the created tunnel
# but arrive on an interface that is not in the tunnel's
- # encap VRF, these are dropped
+ # encap VRF, these are dropped.
+ # IP enable the interface so they aren't dropped due to
+ # IP not being enabled.
#
+ self.pg2.config_ip4()
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.pg2.add_stream(tx)
self.pg_enable_capture(self.pg_interfaces)
self.pg_start()
@@ -786,6 +789,8 @@ class TestGRE(VppTestCase):
self.pg0.assert_nothing_captured(
remark="GRE decap packets in wrong VRF")
+ self.pg2.unconfig_ip4()
+
#
# test case cleanup
#