Skip to content
Snippets Groups Projects
Commit 29a813e3 authored by Michael Marsh's avatar Michael Marsh
Browse files

bug fixes

parent f27e6dec
No related branches found
No related tags found
No related merge requests found
...@@ -28,12 +28,16 @@ parser.add_argument('-L', '--loss', ...@@ -28,12 +28,16 @@ parser.add_argument('-L', '--loss',
args = parser.parse_args() args = parser.parse_args()
errs = False
if args.device is None: if args.device is None:
print STDERR, 'You must specify a device with --device.' print 'You must specify a device with --device.'
exit 1 errs = True
if args.namespace is None: if args.namespace is None:
print STDERR, 'You must specify a network namespace with --namespace.' print 'You must specify a network namespace with --namespace.'
exit 1 errs = True
if errs:
print 'Run with --help for invocation syntax'
exit(1)
# Enable network emulation on the device. # Enable network emulation on the device.
cmd = ["sudo", "/sbin/ip", cmd = ["sudo", "/sbin/ip",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment