Skip to content

Commit 798194b

Browse files
committed
test: update bridge vlan separation test
- Verify that broadcast packets are also properly moved accross the bridge, i.e. the broadcast packets sent from vlan interface VLAN10 do not reach VLAN20 Fixes #773
1 parent 3d189d8 commit 798194b

File tree

3 files changed

+22
-5
lines changed

3 files changed

+22
-5
lines changed

test/case/ietf_interfaces/bridge_vlan_separation/Readme.adoc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ Test that two VLANs are correctly separated in the bridge
1414
,------------------------------------------------------------------------------,
1515
| host:mgmt0 host:data10 host:data11 host:data20 host:data21 host:mgmt1 |
1616
| [10.0.0.1] [10.0.0.2] [10.0.0.3] [10.0.0.4] |
17-
| (ns10) (ns11) (s20) (ns21) |
17+
| (ns10) (ns11) (ns20) (ns21) |
1818
| |
19-
| [ HOST ] |
19+
| [ HOST ] |
2020
'------------------------------------------------------------------------------'
2121
2222
....
@@ -39,6 +39,7 @@ endif::topdoc[]
3939
. Verify ping 10.0.0.3 from host:data10
4040
. Verify ping 10.0.0.4 from host:data11
4141
. Verify ping not possible host:data10->10.0.0.4, host:data11->10.0.0.3, host:data10->10.0.0.2, host:data11->10.0.0.1
42+
. Verify MAC broadcast isolation within VLANs
4243

4344

4445
<<<

test/case/ietf_interfaces/bridge_vlan_separation/test.py

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
,------------------------------------------------------------------------------,
1717
| host:mgmt0 host:data10 host:data11 host:data20 host:data21 host:mgmt1 |
1818
| [10.0.0.1] [10.0.0.2] [10.0.0.3] [10.0.0.4] |
19-
| (ns10) (ns11) (s20) (ns21) |
19+
| (ns10) (ns11) (ns20) (ns21) |
2020
| |
21-
| [ HOST ] |
21+
| [ HOST ] |
2222
'------------------------------------------------------------------------------'
2323
2424
....
@@ -168,5 +168,21 @@
168168
lambda: ns11.must_not_reach("10.0.0.3"),
169169
lambda: ns10.must_not_reach("10.0.0.2"),
170170
lambda: ns11.must_not_reach("10.0.0.1"))
171+
172+
with test.step("Verify MAC broadcast isolation within VLANs"):
173+
# Clear ARP entries/queued packets
174+
ns10.runsh("ip neigh flush all")
175+
ns11.runsh("ip neigh flush all")
176+
ns20.runsh("ip neigh flush all")
177+
ns21.runsh("ip neigh flush all")
178+
179+
lambda: ns10.runsh("ping -b -c 5 -i 0.5 10.0.0.255"),
180+
181+
lambda: ns20.must_receive("broadcast or arp"),
182+
183+
infamy.parallel(
184+
lambda: ns11.must_not_receive("broadcast or arp"),
185+
lambda: ns21.must_not_receive("broadcast or arp")
186+
)
171187

172188
test.succeed()

test/spec/Readme.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
:topdoc:
22

33
= Test specification
4-
Infix v24.10.1-23-g8fc0ab9b-dirty
4+
v24.10.2-2-g032a51b9-dirty
55
:title-page:
66
:toc:
77
:toclevels: 2

0 commit comments

Comments
 (0)