Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
d00d0798
Commit
d00d0798
authored
May 31, 2016
by
Mike Hibler
Browse files
Expose -C option of portstats.
PF WARNING: several "pass" statements were used in the making of this commit.
parent
b6b420e4
Changes
2
Hide whitespace changes
Inline
Side-by-side
xmlrpc/emulabserver.py.in
View file @
d00d0798
#! /usr/bin/env python
#
# Copyright (c) 2004-201
5
University of Utah and the Flux Group.
# Copyright (c) 2004-201
6
University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
...
...
@@ -2869,6 +2869,11 @@ class experiment:
argstr
+=
" -p "
pass
pass
elif
opt
==
"control-net"
:
if
xbool
(
val
):
argstr
+=
" -C "
pass
pass
elif
opt
==
"proj"
:
proj
=
val
;
pass
...
...
xmlrpc/script_wrapper.py.in
View file @
d00d0798
...
...
@@ -1016,7 +1016,7 @@ class portstats:
def
apply
(
self
):
try
:
opts
,
req_args
=
getopt
.
getopt
(
self
.
argv
,
"azqcpe"
,
[
"help"
]);
opts
,
req_args
=
getopt
.
getopt
(
self
.
argv
,
"azqcpe
C
"
,
[
"help"
]);
pass
except
getopt
.
error
,
e
:
print
e
.
args
[
0
]
...
...
@@ -1047,6 +1047,9 @@ class portstats:
elif
opt
==
"-p"
:
params
[
"physnames"
]
=
"yes"
;
pass
elif
opt
==
"-C"
:
params
[
"control-net"
]
=
"yes"
;
pass
pass
# Do this after so --help is seen.
...
...
@@ -1079,6 +1082,8 @@ class portstats:
print
" -c - Print absolute, rather than relative, counts"
;
print
" -p - The machines given are physical, not virtual, node"
;
print
" IDs. No pid and eid should be given with this option"
;
print
" -C - Show counters for the control network interface "
;
print
" rather than experimental interfaces"
;
print
""
;
print
"If only pid and eid are given, prints out information about all"
;
print
"ports in the experiment. Otherwise, output is limited to the"
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment