MCPcopy Index your code
hub / github.com/secdev/scapy / destroy

Method destroy

scapy/arch/linux/__init__.py:444–450  ·  view source on GitHub ↗

remove veth pair links :raises subprocess.CalledProcessError if operation fails

(self)

Source from the content-addressed store, hash-verified

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

Callers 4

__exit__Method · 0.95
deleteMethod · 0.45
dismissMethod · 0.45
closeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected