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-stable
Commits
0d0ffd47
Commit
0d0ffd47
authored
Jan 05, 2010
by
David Johnson
Browse files
Stale old minor stuff that no longer matters!
parent
1b49af77
Changes
3
Hide whitespace changes
Inline
Side-by-side
tbsetup/plab/mod_PLC4.py.in
View file @
0d0ffd47
...
...
@@ -403,6 +403,12 @@ class PLCagent:
def
SiteDelete
(
self
,
id
):
return
self
.
__server
.
DeleteSite
(
self
.
auth
,
id
)
def
SiteId
(
self
,
id
):
retval
=
self
.
SiteInfo
(
id
,[
'site_id'
])
if
retval
and
'site_id'
in
retval
:
return
retval
[
'site_id'
]
return
None
def
__keygen
(
self
):
astr
=
"abcdefghijklmnopqrstuvwxyz"
astr
=
astr
+
astr
.
upper
()
+
'0123456789'
...
...
@@ -494,6 +500,12 @@ class PLCagent:
def
NodeDelete
(
self
,
id
):
return
self
.
__server
.
DeleteNode
(
self
.
auth
,
id
)
def
NodeId
(
self
,
id
):
retval
=
self
.
NodeInfo
(
id
,[
'node_id'
])
if
retval
and
'node_id'
in
retval
:
return
retval
[
'node_id'
]
return
None
def
NodeSetBootState
(
self
,
id
,
boot_state
):
self
.
__server
.
UpdateNode
(
self
.
auth
,
id
,{
'boot_state'
:
boot_state
})
pass
...
...
@@ -582,6 +594,12 @@ class PLCagent:
def
PersonDelete
(
self
,
id
):
return
self
.
__server
.
DeletePerson
(
self
.
auth
,
id
)
def
PersonId
(
self
,
id
):
retval
=
self
.
PersonInfo
(
id
,[
'person_id'
])
if
retval
and
'person_id'
in
retval
:
return
retval
[
'person_id'
]
return
None
pass
# end of PLCagent class
class
mod_PLC4
:
...
...
tbsetup/plab/plabmonitord.in
View file @
0d0ffd47
...
...
@@ -358,8 +358,12 @@ sub updatenodepool($) {
my
$pnodename
=
$row
[
0
];
if
(
exists
(
$ignore
{
$pnodename
}))
{
print
"
Ignoring
$pnodename
\n
";
next
;
}
else
{
print
"
Did not ignore
$pnodename
\n
";
}
if
(
!
exists
$poolpnodes
->
{
$pnodename
}
)
{
print
"
Adding
$pnodename
to pool:
$pool
->{'NAME'}
\n
";
...
...
tbsetup/plab/plabrenewonce.in
View file @
0d0ffd47
...
...
@@ -11,11 +11,13 @@ sys.path.append("@prefix@/lib")
import
libplab
from
libtestbed
import
*
usage
=
"
\t
%prog [-vd] [-p plcname] [-e pid/eid] [-s slicename]"
usage
=
"
\t
%prog [-vd
f
] [-p plcname] [-e pid/eid] [-s slicename]"
def
main
(
args
):
me
=
args
[
0
]
parser
=
TBParser
(
usage
)
parser
.
add_option
(
"-f"
,
"--force"
,
dest
=
"force"
,
action
=
"store"
,
help
=
"Force slice renewal"
,
default
=
None
)
parser
.
add_option
(
"-p"
,
"--plc"
,
dest
=
"plc"
,
action
=
"store"
,
help
=
"PLC name"
,
default
=
None
)
parser
.
add_option
(
"-e"
,
"--expt"
,
dest
=
"expt"
,
action
=
"store"
,
...
...
@@ -44,7 +46,7 @@ def main(args):
pass
plab
=
libplab
.
Plab
()
plab
.
renew
(
opts
.
plc
,
pid
,
eid
,
opts
.
slicename
)
plab
.
renew
(
opts
.
plc
,
pid
,
eid
,
opts
.
slicename
,
opts
.
force
)
return
...
...
Write
Preview
Markdown
is supported
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