test(e2e): unmanage the TAP anchors in the remaining kernel scenarios

Same guard the ethernet-switch scenario already carries: NetworkManager
can release an NM-managed TAP from its bridge shortly after
(re-)enslavement (docs/bugs/networkmanager-tap-release.md). Applied to
the Dynamips, QEMU, IOU, IOL-runner and switch-cascade scenarios after
their nodes have booted (no-op where nmcli/NetworkManager is absent).
This keeps those tests deterministic on un-declared hosts.
This commit is contained in:
YueGuobin committed 2026-10-06 00:21:11 +08:00
1 parent 28e9b82a5f
commit 15fbef93fb
5 files changed
+26

No files matched your search

+6
View File
@@ -127,6 +127,12 @@ def test_qemu_kernel_datapath():
c1 = _boot(server, pid, n1_id)
c2 = _boot(server, pid, n2_id)
# NetworkManager can release an NM-managed TAP from its bridge after
# (re-)enslavement (docs/bugs/networkmanager-tap-release.md); take the
# anchors out of its reach for the rest of the run (the restart below
# re-attaches them under fresh devices).
harness.unmanage_from_networkmanager(a1, a2, harness.qemu_anchor_name(n1_id, 1))
# Kernel objects: one persistent TAP per adapter (both adapters of
# router 1, the addressed one of router 2), and the per-link bridge
# has exactly the two addressed ports.