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 8, 2022
1 parent e32c64e commit 2867c06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion config/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1205,7 +1205,6 @@ def config(ctx):
print("Caught an exception: " + str(e))
raise click.Abort()

exit("ut exit")
if asic_type == 'cisco-8000':
from sonic_platform.cli.cisco import cisco
platform.add_command(cisco)
Expand Down
3 changes: 2 additions & 1 deletion tests/config_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1638,7 +1638,8 @@ def test_config_platform(self, ctx, get_cmd_module, setup_single_cisco_asic):
db = Db()
runner = CliRunner()
obj = {'config_db': db.cfgdb}
#config.config(ctx)
ctx = None
config.config(ctx)
result = runner.invoke(config.config.commands["platform"], ['--help'])

print(result.exit_code)
Expand Down

0 comments on commit 2867c06

Please sign in to comment.