Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
4a3b149c
Commit
4a3b149c
authored
Feb 26, 2014
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Switch to the Utah DDC as the backend.
parent
8471fad4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
6 deletions
+19
-6
protogeni/scripts/quickvm.in
protogeni/scripts/quickvm.in
+19
-6
No files found.
protogeni/scripts/quickvm.in
View file @
4a3b149c
...
...
@@ -48,6 +48,8 @@ my $optlist = "dkve:lu:";
my
$debug
=
0
;
my
$verbose
=
1
;
my
$killit
=
0
;
my
$utahddc
=
1
;
my
$DDCURN
=
"
urn:publicid:IDN+utahddc.geniracks.net+authority+cm
";
my
$localuser
=
0
;;
my
$xmlfile
;
my
$extend
;
...
...
@@ -203,15 +205,26 @@ if (!defined($context)) {
Genixmlrpc
->
SetContext
(
$context
);
#
# Load the CM
cert and
authority, since that is who we talk to.
# Load the CM authority, since that is who we talk to.
#
my
$cm_certificate
=
GeniCertificate
->
LoadFromFile
(
$CMCERT
);
if
(
!
defined
(
$cm_certificate
))
{
fatal
("
Could not load certificate from
$CMCERT
\n
");
my
$CMURN
;
if
(
$utahddc
)
{
$CMURN
=
$DDCURN
;
}
my
$cm_authority
=
GeniAuthority
->
Lookup
(
$cm_certificate
->
urn
());
else
{
my
$cm_certificate
=
GeniCertificate
->
LoadFromFile
(
$CMCERT
);
if
(
!
defined
(
$cm_certificate
))
{
fatal
("
Could not load certificate from
$CMCERT
\n
");
}
$CMURN
=
$cm_certificate
->
urn
();
}
my
$cm_authority
=
GeniAuthority
->
Lookup
(
$CMURN
);
if
(
!
defined
(
$cm_authority
))
{
fatal
("
Could not load CM authority object
");
$cm_authority
=
GeniAuthority
->
CreateFromRegistry
("
cm
",
$CMURN
);
if
(
!
defined
(
$cm_authority
))
{
fatal
("
Could not load CM authority object
");
}
}
if
(
$killit
)
{
...
...
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