-
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
Add a stub for arp-helper #280
base: master
Are you sure you want to change the base?
Add a stub for arp-helper #280
Conversation
setup.py
Outdated
@@ -37,6 +37,7 @@ def get_test_suite(): | |||
}, | |||
scripts=[ | |||
'scripts/aclshow', | |||
'scripts/arp-helper-start', |
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.
rename to arp-helper is better, we could have arp-helper start ip address or arp-helper stop later.
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.
remove -start from the tool name
|
||
def main(): | ||
parser = argparse.ArgumentParser() | ||
parser.add_argument('arp_helper_ip', help="ip address of an ARP Helper") |
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.
for completeness, we should have --start and --stop to start of stop arphelper.
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.
Address minor comment and also please update PR title to match new script name.
return | ||
|
||
if __name__ == '__main__': | ||
main() |
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.
Add newline at end of file.
…hen mux toggle is inprogress (sonic-net#280) In this PR, there is a support for adding a mux_toggle_status variable inside the base class for mux_cable. Using this variable the Derived classes for mux_cable can check this and return in case of a mux_toggle_status is in progress. From the higher layer this allows ycabled to synchronize the calls and not let mux_cable toggle to go in conjunction with some of the Telemetry calls. Signed-off-by: vaibhav-dahiya vdahiya@microsoft.com Description Motivation and Context To get the toggle time to a minimum/ not allow i2c to transactions on the cable to collide with each other How Has This Been Tested? Ran the changes on 7050cx3 arista testbed Signed-off-by: vaibhav-dahiya <vdahiya@microsoft.com>
- What I did
Added a stub for arp-helper-start script
- How I did it
use my editor
- How to verify it
Build an image with this script and then run the script
'arp-helper-start 10.0.0.1'
- 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)
Currently the output would be OK
-->