summaryrefslogtreecommitdiffstats
path: root/test/vpp_ipip_tun_interface.py
diff options
context:
space:
mode:
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):