Skip to content
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

Add CLI Support for IPv6 Helpers and DHCPv6 Relay Counters #8593

Merged
merged 14 commits into from
Sep 24, 2021

Conversation

kellyyeh
Copy link
Contributor

Why I did it

Support DHCPv6 Relay CLI

How I did it

show dhcp_relay_helpers
show dhcp6relay_counters counts
sonic-clear dhcp6relay_counters

How to verify it

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106

Description for the changelog

A picture of a cute animal (not mandatory but encouraged)

@kellyyeh kellyyeh requested a review from tahmed-dev August 25, 2021 18:00
@kellyyeh kellyyeh requested a review from lguohan as a code owner August 25, 2021 18:00
tahmed-dev
tahmed-dev previously approved these changes Aug 26, 2021
Copy link
Contributor

@tahmed-dev tahmed-dev left a comment

Choose a reason for hiding this comment

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

can we add unit test for those commands? Feel free to create a task for that.

# DHCPv6 Counter Messages
messages = ["Solicit", "Advertise", "Request", "Confirm", "Renew", "Rebind", "Reply", "Release", "Decline", "Relay-Forward", "Relay-Reply"]

class DHCPv6_Counter(object):
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: Please add code comment

@smaheshm
Copy link
Contributor

no unit tests?

Is this CLI helpful on T1 switches. Wondering if support for multi ASIC should be added. In future T0 will also have multi ASIC switches. It's good to add support for multi ASIC too.

@sonic-net sonic-net deleted a comment from lgtm-com bot Aug 27, 2021
@sonic-net sonic-net deleted a comment from lgtm-com bot Aug 27, 2021
@kellyyeh
Copy link
Contributor Author

no unit tests?

Is this CLI helpful on T1 switches. Wondering if support for multi ASIC should be added. In future T0 will also have multi ASIC switches. It's good to add support for multi ASIC too.

@smaheshm Working on adding unit tests!

@lgtm-com
Copy link

lgtm-com bot commented Sep 16, 2021

This pull request introduces 2 alerts when merging ca16c7a into 508b649 - view on LGTM.com

new alerts:

  • 2 for Unused import

@lgtm-com
Copy link

lgtm-com bot commented Sep 21, 2021

This pull request introduces 3 alerts when merging 9e6e1ed into 34dddb8 - view on LGTM.com

new alerts:

  • 3 for Unused import

@lgtm-com
Copy link

lgtm-com bot commented Sep 21, 2021

This pull request introduces 2 alerts when merging 9abff86 into 34dddb8 - view on LGTM.com

new alerts:

  • 2 for Unused import

tahmed-dev
tahmed-dev previously approved these changes Sep 22, 2021
},
},
],
]
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: no new line at the end of file.

@kellyyeh kellyyeh merged commit 62a1f5e into sonic-net:master Sep 24, 2021
@kellyyeh kellyyeh deleted the kellyyeh-dhcp6relay-cli branch September 24, 2021 05:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants