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 Aug 10, 2022
1 parent 175ed3e commit 8e171c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions config/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1173,6 +1173,7 @@ def config(ctx):
# Load asic_type for further use
#
global asic_type
return

try:
version_info = device_info.get_sonic_version_info()
Expand Down
2 changes: 1 addition & 1 deletion tests/config_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1605,7 +1605,7 @@ def setup_class(cls):

def test_config_platform(self, ctx, get_cmd_module, setup_single_cisco_asic):
expected_output = "cisco"
config.main.config(ctx)
config.config(ctx)
runner = CliRunner()
result = runner.invoke(config.config.commands["platform"], ['--help'])

Expand Down

0 comments on commit 8e171c7

Please sign in to comment.