Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
28
def
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
33
def
gray(text):
Callers
2
qemu.py
File · 0.85
setup_networking
Function · 0.85
Calls
1
exists
Method · 0.45
Tested by
no test coverage detected