Skip to content

Commit

Permalink
[config][loopback] Fix Bug that cannot add loopback interface by CLI (#…
Browse files Browse the repository at this point in the history
…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 <mulin_huang@edge-core.com>
  • Loading branch information
MuLinForest authored Dec 1, 2020
1 parent a5b78cf commit 9f276b2
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion config/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3188,7 +3188,6 @@ def naming_mode_alias():
"""Set CLI interface naming mode to ALIAS (Vendor port alias)"""
set_interface_naming_mode('alias')

@config.group()
def is_loopback_name_valid(loopback_name):
"""Loopback name validation
"""
Expand Down

0 comments on commit 9f276b2

Please sign in to comment.