Commit 44952c3
Shu0T1an ChenG
[vlanmgrd]: Create a dummy interface and put into the Bridge
In order to maintain the interface Bridge to be UP all the time,
the dummy interface is needed to be the member of the Bridge.
Refactored test_vlan.py so that each test is independent from
each other and intermediate state will be cleaned up afterwards.
Add test_MultipleVlan test to cover scenarios with VLAN and
VLAN members change. Before the change of the vlanmgrd, this
test would fail when all the VLAN members were removed out of
the master. Interface Bridge would show NO-CARRIER and new
VLAN cannot be created afterwards.
After adding the dummy interface, this test will pass.
Signed-off-by: Shu0T1an ChenG <shuche@microsoft.com>1 parent 4f5436f commit 44952c3
1 file changed
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
43 | 46 | | |
44 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
45 | 51 | | |
46 | 52 | | |
47 | 53 | | |
| |||
0 commit comments