remove veth pair links :raises subprocess.CalledProcessError if operation fails
(self)
| 442 | subprocess.check_call(['ip', 'link', 'add', self.ifaces[0], 'type', 'veth', 'peer', 'name', self.ifaces[1]]) # noqa: E501 |
| 443 | |
| 444 | def destroy(self): |
| 445 | # type: () -> None |
| 446 | """ |
| 447 | remove veth pair links |
| 448 | :raises subprocess.CalledProcessError if operation fails |
| 449 | """ |
| 450 | subprocess.check_call(['ip', 'link', 'del', self.ifaces[0]]) |
| 451 | |
| 452 | def up(self): |
| 453 | # type: () -> None |