+
+ def query_vpp_config(self):
+ dump = self._test.vapi.mpls_tunnel_dump()
+ for t in dump:
+ if self.sw_if_index == t.mt_sw_if_index and \
+ self.tunnel_index == t.mt_tunnel_index:
+ return True
+ return False
+
+ def __str__(self):
+ return self.object_id()
+
+ def object_id(self):
+ return ("mpls-tunnel%d-%d" % (self.tunnel_index,
+ self.sw_if_index))