MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / net_iperf3

Function net_iperf3

network_diagnostics.py:2028–2033  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2026 }
2027
2028
2029def do_dhcp_snoop_setup(iface_a, iface_b, action='create'):
2030 """Guarded bridge setup: enslave two wired NICs into rgsnoop0 so the box is
2031 inline. Refuses the default-route / wireless / management interface so it
2032 can't cut its own link. Detection-only bridge (no IP on it)."""
2033 if action == 'destroy':
2034 with _dhcp_snoop_lock:
2035 for m in _bridge_members(_DHCP_SNOOP_BRIDGE):
2036 _run(['ip', 'link', 'set', m, 'nomaster'], timeout=5)

Callers

nothing calls this directly

Calls 3

_logFunction · 0.85
do_iperf3_clientFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected