summaryrefslogtreecommitdiffstats
path: root/test/vpp_ipip_tun_interface.py
diff options
context:
space:
mode:
authorNeale Ranns <neale@graphiant.com>2021-06-07 09:34:07 +0000
committerOle Tr�an <otroan@employees.org>2021-06-14 13:13:13 +0000
commit89d939e52c999edec66194c60bc5afb2397a2842 (patch)
tree00e8ec98863ead022c30e8619b45a7585fc7a5de /test/vpp_ipip_tun_interface.py
parent6197cb730e1571ca69859489c0ae7ea90a5c5fd4 (diff)
linux-cp: Add tests for tun devices
Type: test Signed-off-by: Neale Ranns <neale@graphiant.com> Change-Id: Iec69d8624b15766ed65e7d09777819d2242dee17
Diffstat (limited to 'test/vpp_ipip_tun_interface.py')
-rw-r--r--test/vpp_ipip_tun_interface.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/vpp_ipip_tun_interface.py b/test/vpp_ipip_tun_interface.py
index 67cc1b5f1d8..6517458d3d6 100644
--- a/test/vpp_ipip_tun_interface.py
+++ b/test/vpp_ipip_tun_interface.py
@@ -34,6 +34,9 @@ class VppIpIpTunInterface(VppTunnelInterface):
'mode': self.mode,
})
self.set_sw_if_index(r.sw_if_index)
+ r = self.test.vapi.ipip_tunnel_dump(
+ sw_if_index=self.sw_if_index)
+ self.instance = r[0].tunnel.instance
self.test.registry.register(self, self.test.logger)
return self
@@ -51,7 +54,7 @@ class VppIpIpTunInterface(VppTunnelInterface):
return self.object_id()
def object_id(self):
- return "ipip-%d" % self._sw_if_index
+ return "ipip%d" % self.instance
@property
def remote_ip(self):