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
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions scripts/arp-helper
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/env python

import argparse
from pprint import pprint

def request_arp_helper(ip):
# FIXME: make request to an ARP Helper
return "OK"

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.

argv = parser.parse_args()
arp_helper_ip = argv.arp_helper_ip
result = request_arp_helper(arp_helper_ip)
print result

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.

1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def get_test_suite():
},
scripts=[
'scripts/aclshow',
'scripts/arp-helper',
'scripts/boot_part',
'scripts/coredump-compress',
'scripts/decode-syseeprom',
Expand Down