Setting tag plcapi-4.3-37
[plcapi.git] / PLC / v42LegacySliceAttributes.py
1 # $Id$
2 # $URL$
3
4 # mapping of argument/return names for *{SliceAttribute,NetworkSetting}Type* and *TagType* calls
5
6 v42_to_v43_argmap = { "name":"tagname",
7                       "slice_attribute_id":"slice_tag_id",
8                       }
9 v43_to_v42_argmap = dict([ (v,k) for k,v in v42_to_v43_argmap.iteritems()])
10
11 def v42rename (x): return v42_to_v43_argmap.get(x,x)
12 def v43rename (x): return v43_to_v42_argmap.get(x,x)