MCPcopy Create free account
hub / github.com/archlinux/archinstall / get_master

Function get_master

test_tooling/qemu/qemu.py:28–30  ·  view source on GitHub ↗
(interface)

Source from the content-addressed store, hash-verified

26
27
28def get_master(interface):
29 master_path = pathlib.Path(f'/sys/class/net/{interface}/master')
30 return master_path.readlink().name if master_path.exists() else None
31
32
33def gray(text):

Callers 2

qemu.pyFile · 0.85
setup_networkingFunction · 0.85

Calls 1

existsMethod · 0.45

Tested by

no test coverage detected