mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-24 14:54:33 +02:00
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:
5 files changed
+26
No files matched your search
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user