git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
798499d
)
check the specified hrn against the target hrn in the credential
author
Tony Mack
<tmack@cs.princeton.edu>
Mon, 19 Apr 2010 21:10:45 +0000
(21:10 +0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Mon, 19 Apr 2010 21:10:45 +0000
(21:10 +0000)
sfa/methods/create_slice.py
patch
|
blob
|
history
sfa/methods/delete_slice.py
patch
|
blob
|
history
sfa/methods/get_resources.py
patch
|
blob
|
history
sfa/methods/get_ticket.py
patch
|
blob
|
history
sfa/methods/reset_slice.py
patch
|
blob
|
history
sfa/methods/start_slice.py
patch
|
blob
|
history
sfa/methods/stop_slice.py
patch
|
blob
|
history
diff --git
a/sfa/methods/create_slice.py
b/sfa/methods/create_slice.py
index
a85e8e5
..
a55b96e
100644
(file)
--- a/
sfa/methods/create_slice.py
+++ b/
sfa/methods/create_slice.py
@@
-53,7
+53,7
@@
class create_slice(Method):
self.api.logger.info("interface: %s\tcaller-hrn: %s\ttarget-hrn: %s\tmethod-name: %s"%(self.api.interface, origin_hrn, hrn, self.name))
# validate the credential
self.api.logger.info("interface: %s\tcaller-hrn: %s\ttarget-hrn: %s\tmethod-name: %s"%(self.api.interface, origin_hrn, hrn, self.name))
# validate the credential
- self.api.auth.check(cred, 'createslice')
+ self.api.auth.check(cred, 'createslice'
, hrn
)
manager_base = 'sfa.managers'
if self.api.interface in ['aggregate']:
manager_base = 'sfa.managers'
if self.api.interface in ['aggregate']:
diff --git
a/sfa/methods/delete_slice.py
b/sfa/methods/delete_slice.py
index
78baafa
..
3441998
100644
(file)
--- a/
sfa/methods/delete_slice.py
+++ b/
sfa/methods/delete_slice.py
@@
-38,7
+38,7
@@
class delete_slice(Method):
self.api.logger.info("interface: %s\tcaller-hrn: %s\ttarget-hrn: %s\tmethod-name: %s"%(self.api.interface, origin_hrn, hrn, self.name))
# validate the credential
self.api.logger.info("interface: %s\tcaller-hrn: %s\ttarget-hrn: %s\tmethod-name: %s"%(self.api.interface, origin_hrn, hrn, self.name))
# validate the credential
- self.api.auth.check(cred, 'deleteslice')
+ self.api.auth.check(cred, 'deleteslice'
, hrn
)
# send the call to the right manager
manager_base = 'sfa.managers'
# send the call to the right manager
manager_base = 'sfa.managers'
diff --git
a/sfa/methods/get_resources.py
b/sfa/methods/get_resources.py
index
6e93926
..
4a08c26
100644
(file)
--- a/
sfa/methods/get_resources.py
+++ b/
sfa/methods/get_resources.py
@@
-45,7
+45,7
@@
class get_resources(Method):
self.api.logger.info("interface: %s\tcaller-hrn: %s\ttarget-hrn: %s\tmethod-name: %s"%(self.api.interface, origin_hrn, hrn, self.name))
# validate the cred
self.api.logger.info("interface: %s\tcaller-hrn: %s\ttarget-hrn: %s\tmethod-name: %s"%(self.api.interface, origin_hrn, hrn, self.name))
# validate the cred
- self.api.auth.check(cred, 'listnodes')
+ self.api.auth.check(cred, 'listnodes'
, hrn
)
# send the call to the right manager
manager_base = 'sfa.managers'
# send the call to the right manager
manager_base = 'sfa.managers'
diff --git
a/sfa/methods/get_ticket.py
b/sfa/methods/get_ticket.py
index
489bbea
..
bbcfdf6
100644
(file)
--- a/
sfa/methods/get_ticket.py
+++ b/
sfa/methods/get_ticket.py
@@
-53,7
+53,7
@@
class get_ticket(Method):
self.api.logger.info("interface: %s\tcaller-hrn: %s\ttarget-hrn: %s\tmethod-name: %s"%(self.api.interface, origin_hrn, hrn, self.name))
# validate the cred
self.api.logger.info("interface: %s\tcaller-hrn: %s\ttarget-hrn: %s\tmethod-name: %s"%(self.api.interface, origin_hrn, hrn, self.name))
# validate the cred
- self.api.auth.check(cred, "getticket")
+ self.api.auth.check(cred, "getticket"
, hrn
)
# set the right outgoing rules
manager_base = 'sfa.managers'
# set the right outgoing rules
manager_base = 'sfa.managers'
diff --git
a/sfa/methods/reset_slice.py
b/sfa/methods/reset_slice.py
index
9d0e0f0
..
cd9026c
100644
(file)
--- a/
sfa/methods/reset_slice.py
+++ b/
sfa/methods/reset_slice.py
@@
-30,7
+30,7
@@
class reset_slice(Method):
def call(self, cred, xrn, origin_hrn=None):
hrn, type = urn_to_hrn(xrn)
def call(self, cred, xrn, origin_hrn=None):
hrn, type = urn_to_hrn(xrn)
- self.api.auth.check(cred, 'resetslice')
+ self.api.auth.check(cred, 'resetslice'
, hrn
)
# send the call to the right manager
manager_base = 'sfa.managers'
if self.api.interface in ['component']:
# send the call to the right manager
manager_base = 'sfa.managers'
if self.api.interface in ['component']:
diff --git
a/sfa/methods/start_slice.py
b/sfa/methods/start_slice.py
index
cbd7f4d
..
86f932f
100644
(file)
--- a/
sfa/methods/start_slice.py
+++ b/
sfa/methods/start_slice.py
@@
-37,7
+37,7
@@
class start_slice(Method):
self.api.logger.info("interface: %s\tcaller-hrn: %s\ttarget-hrn: %s\tmethod-name: %s"%(self.api.interface, origin_hrn, hrn, self.name))
# validate the cred
self.api.logger.info("interface: %s\tcaller-hrn: %s\ttarget-hrn: %s\tmethod-name: %s"%(self.api.interface, origin_hrn, hrn, self.name))
# validate the cred
- self.api.auth.check(cred, 'startslice')
+ self.api.auth.check(cred, 'startslice'
, hrn
)
# send the call to the right manager
manager_base = 'sfa.managers'
# send the call to the right manager
manager_base = 'sfa.managers'
diff --git
a/sfa/methods/stop_slice.py
b/sfa/methods/stop_slice.py
index
e111098
..
184b27c
100644
(file)
--- a/
sfa/methods/stop_slice.py
+++ b/
sfa/methods/stop_slice.py
@@
-38,7
+38,7
@@
class stop_slice(Method):
self.api.logger.info("interface: %s\tcaller-hrn: %s\ttarget-hrn: %s\tmethod-name: %s"%(self.api.interface, origin_hrn, hrn, self.name))
# validate the cred
self.api.logger.info("interface: %s\tcaller-hrn: %s\ttarget-hrn: %s\tmethod-name: %s"%(self.api.interface, origin_hrn, hrn, self.name))
# validate the cred
- self.api.auth.check(cred, 'stopslice')
+ self.api.auth.check(cred, 'stopslice'
, hrn
)
# send the call to the right manager
manager_base = 'sfa.managers'
# send the call to the right manager
manager_base = 'sfa.managers'