2 from PLC.v42Legacy import patch
3 from PLC.v42LegacyNodeNetworks import v42rename, v43rename
4 from PLC.Methods.AddInterface import AddInterface
5 class AddNodeNetwork(AddInterface):
6 """ Legacy version of AddInterface. """
9 def call(self, auth, node_id_or_hostname, interface_fields):
10 node_id_or_hostname=patch(node_id_or_hostname,v2rename)
11 interface_fields=patch(interface_fields,v2rename)
12 result=AddInterface.call(self,auth,node_id_or_hostname,interface_fields)
13 return patch(result,v43rename)