svn keywords
[plcapi.git] / PLC / Legacy / UpdateNodeNetwork.py
1 # $Id$
2 # $URL$
3 from PLC.v42Legacy import patch
4 from PLC.v42LegacyNodeNetworks import v42rename, v43rename
5 from PLC.Methods.UpdateInterface import UpdateInterface
6 class UpdateNodeNetwork(UpdateInterface):
7     """ Legacy version of UpdateInterface. """
8     status = "deprecated"
9     def call(self, auth, interface_id, interface_fields):
10         interface_id=patch(interface_id,v42rename)
11         interface_fields=patch(interface_fields,v42rename)
12         result=UpdateInterface.call(self,auth,interface_id,interface_fields)
13         return patch(result,v43rename)