Files
infix/test/case/interfaces/bridge_vlan_separation
Joachim Wiberg 1bbd80d8c7 test: drop leading ietf/infix prefix from directories
Let's drop the leading IETF or Infix prefixes from tests.  Initially the
idea was to mimnic the YANG models, but it's difficult to navigate and
does not provide any real benefit to developers or end-users.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
2025-11-20 20:23:23 +01:00
..

=== Bridge VLAN separation

ifdef::topdoc[:imagesdir: {topdoc}../../test/case/interfaces/bridge_vlan_separation]

==== Description

Test that two VLANs are correctly separated in the bridge

....
    ,-----------------------------------,   ,----------------------------------,
    |                         dut1:link |   | dut2:link                        |
    |                      br0  --------|---|---------  br0                    |
    |                     / \           |   |          / \                     |
    |dut1:mgmt  dut1:data1   dut1:data2 |   | dut2:data1  dut2:data2 dut2:mgmt |
    '-----------------------------------'   '----------------------------------'
        |             |        |                  |            |         |
        |             |        |                  |            |         |
 ,------------------------------------------------------------------------------,
 |  host:mgmt0 host:data10 host:data11    host:data20  host:data21  host:mgmt1  |
 |             [10.0.0.1]   [10.0.0.2]     [10.0.0.3]     [10.0.0.4]            |
 |               (ns10)       (ns11)         (ns20)         (ns21)              |
 |                                                                              |
 |                                  [ HOST ]                                    |
 '------------------------------------------------------------------------------'

....

==== Topology

image::topology.svg[Bridge VLAN separation topology, align=center, scaledwidth=75%]

==== Sequence

. Set up topology and attach to target DUT
. Configure DUTs
. Verify ping 10.0.0.3 from host:data10
. Verify ping 10.0.0.4 from host:data11
. 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
. Verify MAC broadcast isolation within VLANs
. Send ping to 10.0.0.255 from host:data10
. Verify broadcast is received on host:data20
. Verify broadcast is NOT received on host:data11 and host:data21