Skip to content

Commit 9f276b2

Browse files
authored
[config][loopback] Fix Bug that cannot add loopback interface by CLI (sonic-net#1276)
**- What I did** Fix that it cannot add loopback interface by CLI, like the following: ``` root@as7816-64x:~# config loopback add Loopback1 Usage: config [OPTIONS] COMMAND [ARGS]... Try "config --help" for help. Error: No such command "L". ``` **- How I did it** Remove `@config.group()` before the function `is_loopback_name_valid(loopback_name)`, which will be called by add/del command Signed-off-by: MuLin <[email protected]>
1 parent a5b78cf commit 9f276b2

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

config/main.py

-1
Original file line numberDiff line numberDiff line change
@@ -3188,7 +3188,6 @@ def naming_mode_alias():
31883188
"""Set CLI interface naming mode to ALIAS (Vendor port alias)"""
31893189
set_interface_naming_mode('alias')
31903190

3191-
@config.group()
31923191
def is_loopback_name_valid(loopback_name):
31933192
"""Loopback name validation
31943193
"""

0 commit comments

Comments
 (0)