- accept message_filter and return_fields
[plcapi.git] / PLC / Methods / AdmDeleteNodeNetwork.py
index b446183..d566504 100644 (file)
@@ -1,7 +1,7 @@
 from PLC.Faults import *
 from PLC.Method import Method
 from PLC.Parameter import Parameter, Mixed
-from PLC.Auth import PasswordAuth
+from PLC.Auth import Auth
 from PLC.Nodes import Node, Nodes
 from PLC.NodeNetworks import NodeNetwork, NodeNetworks
 from PLC.Methods.DeleteNodeNetwork import DeleteNodeNetwork
@@ -11,13 +11,14 @@ class AdmDeleteNodeNetwork(DeleteNodeNetwork):
     Deprecated. See DeleteNodeNetwork.
     """
 
+    status = "deprecated"
+
     accepts = [
-        PasswordAuth(),
+        Auth(),
         Mixed(Node.fields['node_id'],
              Node.fields['hostname']),
-       Mixed(NodeNetwork.fields['nodenetwork_id'],
-             NodeNetwork.fields['hostname'])
+       NodeNetwork.fields['nodenetwork_id']
         ]
 
-    def call(self, auth, node_id_or_hostname, nodenetwork_id_or_hostname):
-        return DeleteNodeNetwork.call(self, auth, nodenetwork_id_or_hostname)
+    def call(self, auth, node_id_or_hostname, nodenetwork_id):
+        return DeleteNodeNetwork.call(self, auth, nodenetwork_id)