-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Conversation
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.
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): |
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.
nit: Please add code comment
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! |
dockers/docker-dhcp-relay/cli-plugin-tests/test_show_dhcp6relay_counters.py
Outdated
Show resolved
Hide resolved
This pull request introduces 2 alerts when merging ca16c7a into 508b649 - view on LGTM.com new alerts:
|
This pull request introduces 3 alerts when merging 9e6e1ed into 34dddb8 - view on LGTM.com new alerts:
|
This pull request introduces 2 alerts when merging 9abff86 into 34dddb8 - view on LGTM.com new alerts:
|
}, | ||
}, | ||
], | ||
] |
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.
nit: no new line at the end of file.
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)
Description for the changelog
A picture of a cute animal (not mandatory but encouraged)