this is getting tedious..
[plcapi.git] / PLC / v42LegacyNodeNetworkSettings.py
1 # $Id: $
2
3 # mapping of argument/return names for *NodeNetworkSettings* and *InterfaceTags* calls
4 v42_to_v43_argmap = {
5     "nodenetwork_id":"interface_id",
6     "nodenetwork_ids":"interface_ids",
7     "nodenetwork_setting_id":"interface_tag_id",
8     "nodenetwork_setting_ids":"interface_tag_ids",
9     "nodenetwork_setting_type_id":"tag_type_id",
10     "name":"tagname"
11     }
12 v43_to_v42_argmap = dict([ (v,k) for k,v in v42_to_v43_argmap.iteritems()])
13
14 def v42rename (x): return v42_to_v43_argmap.get(x,x)
15 def v43rename (x): return v43_to_v42_argmap.get(x,x)