- Do not allow whitelist management of peer nodes
authorTony Mack <tmack@cs.princeton.edu>
Thu, 12 Jul 2007 18:09:10 +0000 (18:09 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Thu, 12 Jul 2007 18:09:10 +0000 (18:09 +0000)
PLC/Methods/AddSliceToNodesWhitelist.py

index 663da19..a6b4bd1 100644 (file)
@@ -41,6 +41,8 @@ class AddSliceToNodesWhitelist(Method):
         # Get specified nodes, add them to the slice         
         nodes = Nodes(self.api, node_id_or_hostname_list)
        for node in nodes:
+           if node['peer_id'] is not None:
+                raise PLCInvalidArgument, "%s not a local node" % node['hostname']
             if slice['slice_id'] not in node['slice_ids_whitelist']:
                 slice.add_to_node_whitelist(node, commit = False)