Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

show subinterfaces status #642

Merged
merged 20 commits into from
Nov 5, 2019
Merged

Conversation

wendani
Copy link
Contributor

@wendani wendani commented Sep 12, 2019

- What I did
Implement HLD sonic-net/SONiC#420

- How I did it

- How to verify it
On mlnx dut

$ intfutil status subport
  Sub port interface    Speed    MTU    Vlan    Admin                 Type
--------------------  -------  -----  ------  -------  -------------------
       Ethernet64.10     100G   9100      10       up  dot1q-encapsulation
$ intfutil status Ethernet64.10
  Sub port interface    Speed    MTU    Vlan    Admin                 Type
--------------------  -------  -----  ------  -------  -------------------
       Ethernet64.10     100G   9100      10       up  dot1q-encapsulation
$ show subinterfaces --help
Usage: show subinterfaces [OPTIONS] COMMAND [ARGS]...

  Show details of the sub port interfaces

Options:
  -?, -h, --help  Show this message and exit.

Commands:
  status  Show sub port interface status information
$ show subinterfaces status
  Sub port interface    Speed    MTU    Vlan    Admin                 Type
--------------------  -------  -----  ------  -------  -------------------
       Ethernet64.10     100G   9100      10       up  dot1q-encapsulation
$ show subinterfaces status Ethernet64.10
  Sub port interface    Speed    MTU    Vlan    Admin                 Type
--------------------  -------  -----  ------  -------  -------------------
       Ethernet64.10     100G   9100      10       up  dot1q-encapsulation
$ show subinterfaces status etp17.10
  Sub port interface    Speed    MTU    Vlan    Admin                 Type
--------------------  -------  -----  ------  -------  -------------------
       Ethernet64.10     100G   9100      10       up  dot1q-encapsulation

Unit test cases:

'show interfaces status' / 'intfutil status'
'show interfaces status --verbose'
'show subinterfaces status' / 'intfutil status subport'
'show subinterfaces status --verbose'
show status of single sub port interface
show '--verbose' status of single sub port interface
show status of single sub port interface in alias naming mode
show '--verbose' status of single sub port interface in alias naming mode

- Previous command output (if the output of a command-line utility has changed)

- New command output (if the output of a command-line utility has changed)

$ show interfaces status etp17.10     
  Sub port interface    Speed    MTU    Vlan    Admin                 Type
--------------------  -------  -----  ------  -------  -------------------
       Ethernet64.10     100G   9100      10       up  dot1q-encapsulation
$ show interfaces status Ethernet64.10
  Sub port interface    Speed    MTU    Vlan    Admin                 Type
--------------------  -------  -----  ------  -------  -------------------
       Ethernet64.10     100G   9100      10       up  dot1q-encapsulation

-->

Signed-off-by: Wenda Ni <wenni@microsoft.com>
Signed-off-by: Wenda Ni <wenni@microsoft.com>
Signed-off-by: Wenda Ni <wenni@microsoft.com>
…erfaces

Signed-off-by: Wenda Ni <wenni@microsoft.com>
Signed-off-by: Wenda Ni <wenni@microsoft.com>
Signed-off-by: Wenda Ni <wenni@microsoft.com>
@wendani wendani requested review from jleveque and lguohan September 12, 2019 04:53
Signed-off-by: Wenda Ni <wenni@microsoft.com>
@wendani
Copy link
Contributor Author

wendani commented Sep 18, 2019

retest this please

Copy link
Contributor

@qiluo-msft qiluo-msft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As comments

Signed-off-by: Wenda Ni <wenni@microsoft.com>
Signed-off-by: Wenda Ni <wenni@microsoft.com>
@wendani wendani requested a review from qiluo-msft September 26, 2019 00:49
@wendani
Copy link
Contributor Author

wendani commented Sep 27, 2019

retest this please

@lguohan
Copy link
Contributor

lguohan commented Oct 16, 2019

keep show interface status the same, only show sub interface in show subinterface status.

Signed-off-by: Wenda Ni <wenni@microsoft.com>
@wendani
Copy link
Contributor Author

wendani commented Oct 16, 2019

Done #642 (comment)

@wendani
Copy link
Contributor Author

wendani commented Oct 17, 2019

retest this please

2 similar comments
@wendani
Copy link
Contributor Author

wendani commented Oct 17, 2019

retest this please

@wendani
Copy link
Contributor Author

wendani commented Oct 17, 2019

retest this please

@lguohan
Copy link
Contributor

lguohan commented Oct 18, 2019

would like you add unit test for your newly added commands, example below.

https://github.com/Azure/sonic-utilities/tree/master/sonic-utilities-tests

@wendani wendani force-pushed the sub_intf_show_master branch from e6f4555 to b2eadfa Compare November 2, 2019 23:03
@wendani wendani force-pushed the sub_intf_show_master branch 3 times, most recently from 215e5ec to 45f41d1 Compare November 4, 2019 00:36
Signed-off-by: Wenda Ni <wenni@microsoft.com>
@wendani wendani force-pushed the sub_intf_show_master branch from 45f41d1 to f0faf8f Compare November 4, 2019 00:39
Signed-off-by: Wenda Ni <wenni@microsoft.com>
@wendani wendani force-pushed the sub_intf_show_master branch 4 times, most recently from 205446f to 8480ae3 Compare November 4, 2019 01:25
…ort'

Signed-off-by: Wenda Ni <wenni@microsoft.com>
Signed-off-by: Wenda Ni <wenni@microsoft.com>
@wendani wendani force-pushed the sub_intf_show_master branch from 8480ae3 to bc946e0 Compare November 4, 2019 01:31
Signed-off-by: Wenda Ni <wenni@microsoft.com>
Signed-off-by: Wenda Ni <wenni@microsoft.com>
…ing mode

Signed-off-by: Wenda Ni <wenni@microsoft.com>
@wendani wendani force-pushed the sub_intf_show_master branch from 9aa8728 to a861a41 Compare November 4, 2019 02:48
… naming mode

Signed-off-by: Wenda Ni <wenni@microsoft.com>
@wendani wendani force-pushed the sub_intf_show_master branch from a861a41 to 94f0936 Compare November 4, 2019 02:52
@wendani
Copy link
Contributor Author

wendani commented Nov 4, 2019

Done adding unit test #642 (comment)

🚢

@wendani
Copy link
Contributor Author

wendani commented Nov 4, 2019

retest this please

5 similar comments
@wendani
Copy link
Contributor Author

wendani commented Nov 4, 2019

retest this please

@wendani
Copy link
Contributor Author

wendani commented Nov 4, 2019

retest this please

@wendani
Copy link
Contributor Author

wendani commented Nov 4, 2019

retest this please

@wendani
Copy link
Contributor Author

wendani commented Nov 4, 2019

retest this please

@wendani
Copy link
Contributor Author

wendani commented Nov 4, 2019

retest this please

@lguohan
Copy link
Contributor

lguohan commented Nov 5, 2019

test_fdb.TestFdb.test_FdbAddedAfterMemberCreated failure is new failure which is unrelated to this change.

@lguohan lguohan merged commit 1b0d542 into sonic-net:master Nov 5, 2019
@wendani
Copy link
Contributor Author

wendani commented Nov 6, 2019

retest this please

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants