Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
geni-tools
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Insights
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
iLab.t
geni-tools
Commits
d7b99a17
Commit
d7b99a17
authored
14 years ago
by
Josh
Browse files
Options
Downloads
Plain Diff
Merge commit 'central/master'
parents
f4329860
08d631f7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
README.txt
+6
-1
6 additions, 1 deletion
README.txt
src/client.py
+9
-2
9 additions, 2 deletions
src/client.py
src/gch.py
+7
-0
7 additions, 0 deletions
src/gch.py
src/init-ca.py
+8
-1
8 additions, 1 deletion
src/init-ca.py
with
30 additions
and
4 deletions
README.txt
+
6
−
1
View file @
d7b99a17
...
...
@@ -10,8 +10,13 @@ software is intended to demonstrate the GENI Aggregate Manager API.
Software Dependencies
=====================
The GCF package is intended to be run on a modern Linux distribution
(circa 2010 or 2009). Python 2.6 is required. This software is not
Python 3 compatible.
This software requires a number of readily available software
packages.
packages. Most modern Linux distributions should have these packages
available via their native package management suite (eg. yum or apt).
1. Python M2Crypto package
...
...
This diff is collapsed.
Click to expand it.
src/client.py
+
9
−
2
View file @
d7b99a17
...
...
@@ -23,12 +23,19 @@
# IN THE WORK.
#----------------------------------------------------------------------
import
sys
# Check python version. Requires 2.6 or greater, but less than 3.
if
sys
.
version_info
<
(
2
,
6
):
raise
Exception
(
'
Must use python 2.6 or greater.
'
)
elif
sys
.
version_info
>=
(
3
,):
raise
Exception
(
'
Not python 3 ready
'
)
import
base64
import
datetime
import
logging
import
optparse
import
random
import
sys
import
xml.dom.minidom
as
minidom
import
xmlrpclib
import
zlib
...
...
@@ -89,7 +96,7 @@ def test_create_sliver(server, slice_urn, slice_credential, dom):
else
:
# pick two at random
indices
=
range
(
resources
.
length
)
for
i
in
range
(
2
):
for
_
in
range
(
2
):
index
=
random
.
choice
(
indices
)
indices
.
remove
(
index
)
top
.
appendChild
(
resources
.
item
(
index
).
cloneNode
(
True
))
...
...
This diff is collapsed.
Click to expand it.
src/gch.py
+
7
−
0
View file @
d7b99a17
...
...
@@ -24,6 +24,13 @@
#----------------------------------------------------------------------
import
sys
# Check python version. Requires 2.6 or greater, but less than 3.
if
sys
.
version_info
<
(
2
,
6
):
raise
Exception
(
'
Must use python 2.6 or greater.
'
)
elif
sys
.
version_info
>=
(
3
,):
raise
Exception
(
'
Not python 3 ready
'
)
import
optparse
import
geni
...
...
This diff is collapsed.
Click to expand it.
src/init-ca.py
+
8
−
1
View file @
d7b99a17
...
...
@@ -30,9 +30,16 @@ a clearinghouse and an aggregate manager. Finally, a user cert and
key is created for a user named Alice.
"""
import
sys
# Check python version. Requires 2.6 or greater, but less than 3.
if
sys
.
version_info
<
(
2
,
6
):
raise
Exception
(
'
Must use python 2.6 or greater.
'
)
elif
sys
.
version_info
>=
(
3
,):
raise
Exception
(
'
Not python 3 ready
'
)
import
optparse
import
os.path
import
sys
import
geni
import
sfa.trust.gid
as
gid
import
sfa.trust.certificate
as
cert
...
...
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