returns = Parameter(int, '1 if successful')
- event_type = 'AddTo'
- object_type = 'ConfFile'
- object_ids = []
+ object_type = 'Node'
+
def call(self, auth, conf_file_id, node_id_or_hostname):
# Get configuration file
if not nodes:
raise PLCInvalidArgument, "No such node"
node = nodes[0]
+
+ if node['peer_id'] is not None:
+ raise PLCInvalidArgument, "Not a local node"
# Link configuration file to node
if node['node_id'] not in conf_file['node_ids']: