git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0496a8b
)
- do not allow whitelist management of peer nodes
author
Tony Mack
<tmack@cs.princeton.edu>
Thu, 12 Jul 2007 18:07:42 +0000
(18:07 +0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Thu, 12 Jul 2007 18:07:42 +0000
(18:07 +0000)
PLC/Methods/DeleteSliceFromNodesWhitelist.py
patch
|
blob
|
history
diff --git
a/PLC/Methods/DeleteSliceFromNodesWhitelist.py
b/PLC/Methods/DeleteSliceFromNodesWhitelist.py
index
6ccea4c
..
8899d88
100644
(file)
--- a/
PLC/Methods/DeleteSliceFromNodesWhitelist.py
+++ b/
PLC/Methods/DeleteSliceFromNodesWhitelist.py
@@
-41,7
+41,9
@@
class DeleteSliceFromNodesWhitelist(Method):
# Get specified nodes, add them to the slice
nodes = Nodes(self.api, node_id_or_hostname_list)
for node in nodes:
- if slice['slice_id'] in node['slice_ids_whitelist']:
+ if node['peer_id'] is not None:
+ raise PLCInvalidArgument, "%s not a local node" % node['hostname']
+ if slice['slice_id'] in node['slice_ids_whitelist']:
slice.delete_from_node_whitelist(node, commit = False)
slice.sync()