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
b326e127
Commit
b326e127
authored
Mar 25, 2010
by
Srikanth Chikkulapelly
Browse files
added support for listing/resolving at CH with special credentials.
parent
2a63abab
Changes
1
Hide whitespace changes
Inline
Side-by-side
protogeni/test/clrhouselist.py
deleted
100755 → 0
View file @
2a63abab
#! /usr/bin/env python
#
# GENIPUBLIC-COPYRIGHT
# Copyright (c) 2008-2009 University of Utah and the Flux Group.
# All rights reserved.
#
# Permission to use, copy, modify and distribute this software is hereby
# granted provided that (1) source code retains these copyright, permission,
# and disclaimer notices, and (2) redistributions including binaries
# reproduce the notices in supporting documentation.
#
# THE UNIVERSITY OF UTAH ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
# CONDITION. THE UNIVERSITY OF UTAH DISCLAIMS ANY LIABILITY OF ANY KIND
# FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
#
#
#
import
sys
import
pwd
import
getopt
import
os
import
re
import
xmlrpclib
from
M2Crypto
import
X509
execfile
(
"test-common.py"
)
#
# Get a credential for myself, that allows me to do things at the SA.
#
mycredential
=
get_self_credential
()
#
# Ask the clearinghouse for a list of slices
#
params
=
{}
params
[
"credential"
]
=
mycredential
params
[
"type"
]
=
"slices"
rval
,
response
=
do_method
(
"ch"
,
"List"
,
params
)
if
rval
:
Fatal
(
"Could not get the list from the ClearingHouse"
)
pass
print
str
(
response
[
"value"
])
#
# Ask the clearinghouse for a list of authorities
#
params
=
{}
params
[
"credential"
]
=
mycredential
params
[
"type"
]
=
"authorities"
rval
,
response
=
do_method
(
"ch"
,
"List"
,
params
)
if
rval
:
Fatal
(
"Could not get the list from the ClearingHouse"
)
pass
print
str
(
response
[
"value"
])
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