VPP loopback interface.
| 3 | |
| 4 | |
| 5 | class VppLoInterface(VppInterface, VppObject): |
| 6 | """VPP loopback interface.""" |
| 7 | |
| 8 | def __init__(self, test): |
| 9 | """Create VPP loopback interface""" |
| 10 | super(VppLoInterface, self).__init__(test) |
| 11 | self.add_vpp_config() |
| 12 | |
| 13 | def add_vpp_config(self): |
| 14 | r = self.test.vapi.create_loopback() |
| 15 | self.set_sw_if_index(r.sw_if_index) |
| 16 | |
| 17 | def remove_vpp_config(self): |
| 18 | self.test.vapi.delete_loopback(self.sw_if_index) |
| 19 | |
| 20 | def object_id(self): |
| 21 | return "loopback-%d" % self._sw_if_index |
no outgoing calls