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
The Dynamic Port Breakout CLI print python error Failed to break out Port. Error: 'str' object has no attribute 'decode', but the actual result of execution DPB command was successful
Steps to reproduce the issue:
Run the command config interface breakout <interface> <breakout_mode>
Describe the results you received:
root@arc-switch1038:/usr/local/yang-models# config interface breakout Ethernet4 2x100G[50G,40G,25G,10G,1G] -v -y
Running Breakout Mode : 1x200G[100G,50G,40G,25G,10G,1G]
Target Breakout Mode : 2x100G[50G,40G,25G,10G,1G]
Ports to be deleted :
{
"Ethernet4": "200000"
}
Ports to be added :
{
"Ethernet4": "100000",
"Ethernet6": "100000"
}
After running Logic to limit the impact
Final list of ports to be deleted :
{
"Ethernet4": "200000"
}
Final list of ports to be added :
{
"Ethernet4": "100000",
"Ethernet6": "100000"
}
Loaded below Yang Models
['sonic-acl', 'sonic-breakout_cfg', 'sonic-device_metadata', 'sonic-device_neighbor', 'sonic-extension', 'sonic-flex_counter', 'sonic-interface', 'sonic-loopback-interface', 'sonic-port', 'sonic-portchannel', 'sonic-types', 'sonic-versions', 'sonic-vlan']
Note: Below table(s) have no YANG models:
BGP_NEIGHBOR, FEATURE, CRM, TELEMETRY,
Below Config can not be verified, It may cause harm to the system
{}
Do you wish to Continue? [y/N]: y
Failed to break out Port. Error: 'str' object has no attribute 'decode'
Describe the results you expected:
root@arc-switch1038:/usr/local/yang-models# config interface breakout Ethernet0 2x100G[50G,40G,25G,10G,1G] -v -y
Running Breakout Mode : 1x200G[100G,50G,40G,25G,10G,1G]
Target Breakout Mode : 2x100G[50G,40G,25G,10G,1G]
Ports to be deleted :
{
"Ethernet0": "200000"
}
Ports to be added :
{
"Ethernet0": "100000",
"Ethernet2": "100000"
}
After running Logic to limit the impact
Final list of ports to be deleted :
{
"Ethernet0": "200000"
}
Final list of ports to be added :
{
"Ethernet0": "100000",
"Ethernet2": "100000"
}
Loaded below Yang Models
['sonic-acl', 'sonic-breakout_cfg', 'sonic-device_metadata', 'sonic-device_neighbor', 'sonic-extension', 'sonic-interface', 'sonic-loopback-interface', 'sonic-port', 'sonic-portchannel', 'sonic-types', 'sonic-versions', 'sonic-vlan']
Note: Below table(s) have no YANG models:
BGP_NEIGHBOR, FEATURE, TELEMETRY,
Do you wish to Continue? [y/N]: y
Breakout process got successfully completed.
Please note loaded setting will be lost after system reboot. To preserve setting, run `config save`.
Additional information you deem important (e.g. issue happens only occasionally):
Looks like the root cause of the issue is the redundant ".decode" of "interface_name" variable inside function "breakout" in sonic-utilities/config/main.py.
It seems the issue should have been fixed with the next PR: sonic-net/sonic-utilities#1223
Could you check the issue occurrence on a newer build?
Looks like the root cause of the issue is the redundant ".decode" of "interface_name" variable inside function "breakout" in sonic-utilities/config/main.py.
It seems the issue should have been fixed with the next PR: Azure/sonic-utilities#1223
Could you check the issue occurrence on a newer build?
Yes, the issue is not reproducible on the latest master image.
Description
The Dynamic Port Breakout CLI print python error
Failed to break out Port. Error: 'str' object has no attribute 'decode'
, but the actual result of execution DPB command was successfulSteps to reproduce the issue:
Run the command
config interface breakout <interface> <breakout_mode>
Describe the results you received:
Describe the results you expected:
Additional information you deem important (e.g. issue happens only occasionally):
The list of PR's that are needed for the Dynamic Port Breakout feature
Mandatory PR for every platform -
Extended regex patter for speeds
for SN2010
for SN2100
for SN2410
for SN2700
for SN3420
for SN3700
for SN3700C
for SN3800
for SN4410
for SN4600C
for SN4700
The text was updated successfully, but these errors were encountered: