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
8922a8da
Commit
8922a8da
authored
Apr 23, 2006
by
Leigh B. Stoller
Browse files
Add option to node_list to print vtop mapping.
parent
9db0e590
Changes
1
Hide whitespace changes
Inline
Side-by-side
xmlrpc/script_wrapper.py.in
View file @
8922a8da
...
...
@@ -490,7 +490,7 @@ class node_list:
def
apply
(
self
):
try
:
opts
,
req_args
=
getopt
.
getopt
(
self
.
argv
,
"pvhe:"
,
[
"help"
]);
opts
,
req_args
=
getopt
.
getopt
(
self
.
argv
,
"pvh
m
e:"
,
[
"help"
]);
pass
except
getopt
.
error
,
e
:
print
e
.
args
[
0
]
...
...
@@ -515,6 +515,9 @@ class node_list:
elif
opt
==
"-h"
:
which
=
"pphys"
;
pass
elif
opt
==
"-m"
:
which
=
"mapping"
;
pass
elif
opt
==
"-e"
:
pid
,
eid
=
string
.
split
(
val
,
","
)
params
[
"proj"
]
=
pid
;
...
...
@@ -543,6 +546,9 @@ class node_list:
elif
which
==
"pphys"
:
print
val
[
"pnode"
],
" "
,
pass
elif
which
==
"mapping"
:
print
"%s=%s"
%
(
node
,
val
[
"pnode"
]),
pass
pass
print
""
;
...
...
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