-
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
Utilities Changes for DHCP DoS Mitigation Feature #3301
base: master
Are you sure you want to change the base?
Conversation
…ttribute is not present"
…/sonic-utilities into dhcp_dos_mitigation_cli
4918942
to
1c06171
Compare
@yaqiangz Can you help approved this PR. We are also done with Code Coverage. Thanks in advance! |
@qiluo-msft Pls help review this PR. HLD Already Approved. Thanks in advance! |
Hi @qiluo-msft can you pls help review this PR. HLD is merged |
tests/interfaces_test.py
Outdated
@@ -263,6 +263,13 @@ | |||
PortChannel1001 trunk 4000 | |||
""" | |||
|
|||
show_dhcp_rate_limit_in_alias_mode_output = """\ |
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.
Where is this var used?
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.
The var "show_dhcp_rate_limit_in_alias_mode_output" was added mistakenly and isn't used in the current code. I have removed it to keep the code clean
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.
LGTM
@qiluo-msft pls help merge this one |
@qiluo-msft please help review and merge this PR |
Please resolve conflict |
Resolving! Thanks for help |
/azpw run |
1 similar comment
/azpw run |
/AzurePipelines run |
Azure Pipelines successfully started running 1 pipeline(s). |
@qiluo-msft conflicts has been resolved can you please help review and merge! |
What I did
Added config interface dhcp-mitigation-rate add/del and show interfaces dhcp-mitigation-rate commands for DHCP mitigation rate attribute in config_db and added support for new attribute in DB Migrator
How I did it
Add/del commands add/remove interface DHCP rate limits defined by the user to PORT_TABLE in config_db and show command reads and displays DHCP rate limits on interfaces in the form of a table