Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
emulab-devel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Brecht Vermeulen
emulab-devel
Commits
5b7125c4
Commit
5b7125c4
authored
13 years ago
by
Leigh B Stoller
Browse files
Options
Downloads
Patches
Plain Diff
Add more hardwired PLC registries. This is bad.
parent
f9cc14f7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
protogeni/lib/GeniRegistry.pm.in
+19
-6
19 additions, 6 deletions
protogeni/lib/GeniRegistry.pm.in
with
19 additions
and
6 deletions
protogeni/lib/GeniRegistry.pm.in
+
19
−
6
View file @
5b7125c4
...
...
@@ -26,7 +26,7 @@ use Data::Dumper;
# with multiple clearinghouses/registries. For now, we know about PLC
# or the Protogeni clearinghouse.
#
sub
Create
($$$$)
sub
Create
($$
;
$$
)
{
my
(
$class
,
$target
,
$context
,
$credential
)
=
@_
;
...
...
@@ -34,8 +34,8 @@ sub Create($$$$)
return
undef
if
(
!
defined
(
$auth
));
if
(
$auth
=~
/^plc:/
)
{
return
GeniRegistry::
PLC
->
Create
(
"
plc
"
,
$context
);
if
(
$auth
=~
/^plc:/
||
$auth
eq
"
ple
"
||
$auth
eq
"
plc
"
)
{
return
GeniRegistry::
PLC
->
Create
(
$auth
,
$context
);
}
else
{
return
GeniRegistry::
ClearingHouse
->
Create
(
$context
,
$credential
);
...
...
@@ -610,11 +610,24 @@ sub Create($;$$)
}
#
# At the moment, we support only plc. Eventually support others once
# plc exports proper certs and resolve of aggregates (that include url).
# At the moment, we hardwire all this.
#
my
$url
;
if (
$aggregate
=~ /maxpl/) {
$url
=
"
https:
//max
-
myplc
.
dragon
.
maxgigapop
.
net:12345
"
;
}
elsif (
$aggregate
=~ /ple/) {
$url
=
"
https:
//
www
.
planet
-
lab
.
eu:12345
"
;
}
elsif (
$aggregate
=~ /plc/) {
$url
=
"
https:
//
www
.
planet
-
lab
.
org:12345
"
;
}
else {
print STDERR
"
Do
not
know
anything
about
$aggregate
\
n
"
;
return undef;
}
my
$self
= {};
$self
->{'url'} =
"
https:
//
www
.
planet
-
lab
.
org:12345
"
;
$self
->{'url'} =
$url
;
$self
->{'context'} =
$context
;
$self
->{'credential'} =
$credential
;
$self
->{'aggregate'} =
$aggregate
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment