-
Notifications
You must be signed in to change notification settings - Fork 661
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[teamshow]: Fixed teamshow output not displaying the custom portchann… #436
base: master
Are you sure you want to change the base?
Conversation
In addition that, confirmed custom portchannels are operational with broadcom. |
In the display first 11 characters displayed under 'Team dev' and remaining characters displayed under 'No.'. |
I fixed this code, as SONiC is allowed custom port channels in the hardware and it's operational, so not restricting the user. |
I agree that you fix is allowing to display the user entered custom port channels, instead of fixed name 'PortChannel' + team_id. In your review the team_id value is taken from team_id[11:]. What happens when users enters the port channel name enters less than 11 characters. |
(No)it displayed nothing, empty. Hope (No)it doesn't have significance in show commands. Referring team show header below(No) |
If (No) doesn't have significance in show commands, then request you to remove from display. In that case there is no restriction for Port Channel Name display. |
Right now more than one place is using "PortChannel" + No as the logic for all the port channel interfaces. This is similar to the "Vlan" + No as the VLAN interfaces. I would not recommend to use random names for port channel interfaces since it would introduce more issues. (e.g. if the port channel interface's name is shorter than 11 characters, your pull request would not work). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right now the prefix of port channel interfaces is fixed as "PortChannel".
Hi All, -Madhu |
…annel' and Suffix 'xxxx' (sonic-net#276) Signed-off-by: madhu Pal <madhupa@aviznetworks.com>
Shuotian, Thanks, |
…els #276
commit 4e80674 (HEAD -> teamshow, origin/teamshow)
Author: madhu Pal madhupa@aviznetworks.com
Date: Fri Jan 18 04:45:06 2019 +0000
- What I did
Fixed teamshow output with custom port channels.
- How I did it
Added a validation to allow portchannels with prefix 'PortChannel' and suffix 'xxxx'.
- How to verify it
root@sonic:/home/admin# config portchannel add helloPortChannel
Usage: config portchannel add [OPTIONS] <portchannel_name>
Error: helloPortChannel is invalid!, name should be prefix 'PortChannel' and suffix 'xxxx'
root@sonic:/home/admin# config portchannel add PortChannel009
root@sonic:/home/admin# config portchannel add PortCha
Usage: config portchannel add [OPTIONS] <portchannel_name>
Error: PortCha is invalid!, name should be prefix 'PortChannel' and suffix 'xxxx'