ca061306ac06b4352065409915f42e24365c2254
[plcapi.git] / PLC / Methods / UpdateNodeNetworkSetting.py
1
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     skip_typecheck = True
8     def call(self, auth, *args, **kwds):
9         newargs=[patch(x,v42rename) for x in args]
10         newkwds=dict ( [ (k,patch(v,v42rename)) for (k,v) in kwds.iteritems() ] )
11         results = UpdateInterfaceTag.call(self,auth,*newargs,**newkwds)
12         return patch(results,v43rename)