()
| 2026 | } |
| 2027 | |
| 2028 | |
| 2029 | def 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) |
nothing calls this directly
no test coverage detected