mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-20 05:05:14 +02:00
test(e2e): assert the §E.2 idle-silence window in every kernel scenario
The L2-anchor spec's behavioral guarantee — an idle link stays silent for 5 s once the enslavement burst settles — only ran in the Dynamips and Docker suites. It now also runs in QEMU, IOU, the IOL container, the switch fast path and the switch cascade, which covers every host-device creation path: * tap create (Dynamips/QEMU/IOU anchors), docker create_veth (Docker host ends; the cascade's race-loser end is hardened after create by the server), bridge add_nio_tap (the IOL container anchor, the fifth creator), and the brctl switch bridges, whose multicast snooping is off precisely so the bridge role can reach silence; * each scenario silences its guests first (IOS interfaces shut through the console; Docker guests' links down) and re-verifies the ping after; * the cascade measures 8 devices at once (four absorbed router anchors, both cascade ends, both switch bridges). IOL 158 s, cascade 293 s, ESW fast path 378 s, QEMU 428 s, IOU 308 s — all green.
This commit is contained in:
11 files changed
+166
-16
No files matched your search
@@ -152,12 +152,14 @@ The cascade has its own in-repo e2e
|
||||
(`tests/e2e/test_ethernet_switch_cascade.py`): two switches joined by the
|
||||
link-owned veth pair, two c7200 routers per switch, real ICMP crossing both
|
||||
bridges — the pair is born UP with exactly one end per bridge, a dot1q
|
||||
trunk cascade carries two VLANs at once, the symmetric access/trunk mode
|
||||
flip on the cascade ends isolates and revives a VLAN in place, a `delay`
|
||||
filter lands as netem on both ends (one per direction, RTT ≈ 2×delay),
|
||||
suspend admin-downs both ends, and a link delete/re-create retires the whole
|
||||
pair and mints a new one under the new link id — with zero host residue
|
||||
after the project goes.
|
||||
trunk cascade carries two VLANs at once, the §E.2 idle-silence window with
|
||||
all four router interfaces shut (the absorbed anchors, both cascade ends
|
||||
and both switch bridges), the symmetric access/trunk mode flip on the
|
||||
cascade ends isolates and revives a VLAN in place, a `delay` filter lands
|
||||
as netem on both ends (one per direction, RTT ≈ 2×delay), suspend
|
||||
admin-downs both ends, and a link delete/re-create retires the whole pair
|
||||
and mints a new one under the new link id — with zero host residue after
|
||||
the project goes.
|
||||
|
||||
The host-side checks throughout are the kernel's own view: bridge
|
||||
membership under `/sys/class/net/<bridge>/brif/`, the `master` link
|
||||
|
||||
Reference in new issue
Block a user