Commit ff226d0
authored
Prevent configuring IP interface on a port which is a member of VLAN (sonic-net#1374)
**- What I did**
Fixed bug sonic-net#6426
Added a validation in config/main.py to prevent configuring IP interface on a port which is a member of VLAN
**- How I did it**
Change config/main.py
**- How to verify it**
Add interface as member in vlan
Try to configure IP address on same interface
**- Previous command output (if the output of a command-line utility has changed)**
Success in the above scenario.
**- New command output (if the output of a command-line utility has changed)**
prevent configuration:
"Interface Ethernet0 is a member of vlan
Aborting!"1 parent f1522b9 commit ff226d0
1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2645 | 2645 | | |
2646 | 2646 | | |
2647 | 2647 | | |
| 2648 | + | |
| 2649 | + | |
| 2650 | + | |
| 2651 | + | |
| 2652 | + | |
| 2653 | + | |
| 2654 | + | |
2648 | 2655 | | |
2649 | 2656 | | |
2650 | 2657 | | |
| |||
0 commit comments