This commit was manufactured by cvs2svn to create branch
[plcapi.git] / PLC / Methods / AdmDeleteNodeNetwork.py
1 from PLC.Faults import *
2 from PLC.Method import Method
3 from PLC.Parameter import Parameter, Mixed
4 from PLC.Auth import Auth
5 from PLC.Nodes import Node, Nodes
6 from PLC.NodeNetworks import NodeNetwork, NodeNetworks
7 from PLC.Methods.DeleteNodeNetwork import DeleteNodeNetwork
8
9 class AdmDeleteNodeNetwork(DeleteNodeNetwork):
10     """
11     Deprecated. See DeleteNodeNetwork.
12     """
13
14     status = "deprecated"
15
16     accepts = [
17         Auth(),
18         Mixed(Node.fields['node_id'],
19               Node.fields['hostname']),
20         NodeNetwork.fields['nodenetwork_id']
21         ]
22
23     def call(self, auth, node_id_or_hostname, nodenetwork_id):
24         return DeleteNodeNetwork.call(self, auth, nodenetwork_id)