X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FMethods%2FGetNodeNetworks.py;fp=PLC%2FMethods%2FGetNodeNetworks.py;h=150f87de144da3234a346c17113674a7ce1f0c38;hb=2fbc54bb18d05d1c8972257a342c3ae162e83c6e;hp=558dcf3653aefdb62be9c3faf701449728ebbee4;hpb=1d36cde819b7bcadb4702e6e5952d66c1ce5d185;p=plcapi.git diff --git a/PLC/Methods/GetNodeNetworks.py b/PLC/Methods/GetNodeNetworks.py index 558dcf3..150f87d 100644 --- a/PLC/Methods/GetNodeNetworks.py +++ b/PLC/Methods/GetNodeNetworks.py @@ -10,9 +10,10 @@ 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', 'node', 'anonymous'] @@ -20,6 +21,7 @@ class GetNodeNetworks(Method): accepts = [ Auth(), Mixed([NodeNetwork.fields['nodenetwork_id']], + Parameter (int, "nodenetwork id"), Filter(NodeNetwork.fields)), Parameter([str], "List of fields to return", nullok = True) ]