25388ddb181bade1c71a4ee3b940a8bf510aa7ad
[plcapi.git] / PLC / Legacy / GetNodeNetworks.py
1 # $Id: $
2 from PLC.v42Legacy import patch
3 from PLC.v42LegacyNodeNetworks import v42rename, v43rename
4 from PLC.Methods.GetInterfaces import GetInterfaces
5 class GetNodeNetworks(GetInterfaces):
6     """ Legacy version of GetInterfaces. """
7     status = "deprecated"
8     def call(self, auth, interface_filter = None, return_fields = None):
9         interface_filter=patch(interface_filter,v42rename)
10         return_fields=patch(return_fields,v42rename)
11         result=GetInterfaces.call(self,auth,interface_filter,return_fields)
12         return patch(result,v43rename)