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. """
8 def call(self, auth, node_id_or_hostname, interface_fields):
9 node_id_or_hostname=patch(node_id_or_hostname,v42rename)
10 interface_fields=patch(interface_fields,v42rename)
11 result=AddInterface.call(self,auth,node_id_or_hostname,interface_fields)
12 return patch(result,v43rename)