You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[DPB]: Shut down interface before dynamic port breakout (sonic-net#1303)
Changes:
-- Shutdown the interfaces after config validation while Dy Port Breakout.
-- Validate del ports before calling breakOutPorts API.
Signed-off-by: Praveen Chaudhary [email protected]Fixessonic-net#6646, sonic-net#6631,
Signed-off-by: Praveen Chaudhary [email protected]
# validate all del_ports before calling breakOutPort
3186
+
forintfindel_intf_dict.keys():
3187
+
ifnotinterface_name_is_valid(config_db, intf):
3188
+
click.secho("[ERROR] Interface name {} is invalid".format(intf))
3189
+
raiseclick.Abort()
3190
+
3216
3191
click.secho("\nFinal list of ports to be deleted : \n {} \nFinal list of ports to be added : \n {}".format(json.dumps(del_intf_dict, indent=4), json.dumps(add_intf_dict, indent=4), fg='green', blink=True))
3217
3192
ifnotadd_intf_dict:
3218
3193
click.secho("[ERROR] add_intf_dict is None or empty! No interfaces are there to be added", fg='red')
0 commit comments