re-introduce a Legacy directory to clear out deprecated methods from the Methods...
[plcapi.git] / PLC / Methods / UpdateNodeNetworkSetting.py
1 # $Id: $
2 from PLC.v42Legacy import patch
3 from PLC.v42LegacyNodeNetworkSettings import v42rename, v43rename
4 from PLC.Methods.UpdateInterfaceTag import UpdateInterfaceTag
5 class UpdateNodeNetworkSetting(UpdateInterfaceTag):
6     """ Legacy version of UpdateInterfaceTag. """
7     status = "deprecated"
8     def call(self, auth, interface_tag_id, value):
9         interface_tag_id=patch(interface_tag_id,v42rename)
10         value=patch(value,v42rename)
11         result=UpdateInterfaceTag.call(self,auth,interface_tag_id,value)
12         return patch(result,v43rename)