take out the code that computes a new key - for use by the dummynet boot medium creat...
[plcapi.git] / PLC / Methods / GetNodeNetworks.py
index 4562c00..150f87d 100644 (file)
@@ -10,21 +10,23 @@ class GetNodeNetworks(Method):
     Returns an array of structs containing details about node network
     interfacess. If nodenetworks_filter is specified and is an array
     of node network identifiers, or a struct of node network
-    attributes, only node network interfaces matching the filter will
-    be returned. If return_fields is specified, only the
-    specified details will be returned.
+    fields and values, only node network interfaces matching the filter
+    will be returned.
+
+    If return_fields is given, only the specified details will be returned.
     """
 
-    roles = ['admin', 'pi', 'user', 'tech']
+    roles = ['admin', 'pi', 'user', 'tech', 'node', 'anonymous']
 
     accepts = [
         Auth(),
         Mixed([NodeNetwork.fields['nodenetwork_id']],
+              Parameter (int, "nodenetwork id"),
               Filter(NodeNetwork.fields)),
         Parameter([str], "List of fields to return", nullok = True)
         ]
 
     returns = [NodeNetwork.fields]
-
+    
     def call(self, auth, nodenetwork_filter = None, return_fields = None):
         return NodeNetworks(self.api, nodenetwork_filter, return_fields)