Skip to content

Commit

Permalink
Added cisco config platform commands
Browse files Browse the repository at this point in the history
Signed-off-by: Yucai Gu <yucgu@cisco.com>
  • Loading branch information
yucgu committed Sep 12, 2022
1 parent 02244bd commit 69bce77
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions config/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -5989,10 +5989,6 @@ def size(db, size):
@config.group(cls=clicommon.AbbreviationGroup)
def platform():
"""Platform-related configuration tasks"""
if asic_type == 'cisco-8000':
from sonic_platform.cli.cisco import cisco
platform.add_command(cisco)


# 'firmware' subgroup ("config platform firmware ...")
@platform.group(cls=clicommon.AbbreviationGroup)
Expand Down
2 changes: 1 addition & 1 deletion tests/config_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1635,7 +1635,7 @@ def setup_class(cls):
def test_config_platform(self, ctx, get_cmd_module, setup_single_cisco_asic):
#expected_output = "Enabling TX"
expected_output = "interface"
(config, show) = get_cmd_module
#(config, show) = get_cmd_module
db = Db()
runner = CliRunner()
obj = {'config_db': db.cfgdb}
Expand Down

0 comments on commit 69bce77

Please sign in to comment.