3 from PLC.v42Legacy import patch
4 from PLC.v42LegacyNodeNetworks import v42rename, v43rename
5 from PLC.Methods.AddInterface import AddInterface
6 class AddNodeNetwork(AddInterface):
7 """ 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,v42rename)
11 interface_fields=patch(interface_fields,v42rename)
12 result=AddInterface.call(self,auth,node_id_or_hostname,interface_fields)
13 return patch(result,v43rename)