Skip to content

Commit

Permalink
apply:
Browse files Browse the repository at this point in the history
Fix yang model checking failed for MGMT_PORT #2601
[storm_control] CLI show error when trying to show the configuration with the specified interface #2729
  • Loading branch information
bryan1978 authored and PJHsieh committed Jul 9, 2024
1 parent 6905870 commit 3fc3273
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions config/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4556,6 +4556,7 @@ def add(ctx, interface_name, ip_addr, gw):
config_db.set_entry("MGMT_INTERFACE", (interface_name, str(ip_address)), {"NULL": "NULL"})
else:
config_db.set_entry("MGMT_INTERFACE", (interface_name, str(ip_address)), {"gwaddr": gw})
config_db.set_entry("MGMT_PORT", interface_name, {"admin_status": "up", "alias": interface_name})

return

Expand Down

0 comments on commit 3fc3273

Please sign in to comment.