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 a stub for arp-helper #280

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

pavel-shirshov
Copy link
Contributor

- 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
-->

setup.py Outdated
@@ -37,6 +37,7 @@ def get_test_suite():
},
scripts=[
'scripts/aclshow',
'scripts/arp-helper-start',
Copy link
Contributor

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.

Copy link
Contributor

@lguohan lguohan left a 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")
Copy link
Contributor

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.

Copy link
Contributor

@jleveque jleveque left a 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()
Copy link
Contributor

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.

@lguohan lguohan changed the title Add a stub for arp-helper-start' Add a stub for arp-helper Aug 1, 2018
mihirpat1 pushed a commit to mihirpat1/sonic-utilities that referenced this pull request Sep 15, 2023
…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants