split plc.d/ and db-config.d between myplc and plcapi modules as a first step
[plcapi.git] / db-config.d / 013-wireless_tags
1 # -*-python-*-
2 # $Id: 012-interface_tags -1   $
3 # $URL: svn+ssh://thierry@svn.planet-lab.org/svn/MyPLC/trunk/db-config.d/012-interface_tags $
4 #################### interface settings
5 # xxx this should move to PLC/Accessors
6
7 wireless_interface_types = [
8
9     { 'category' : "interface/wifi",
10       'tagname' : x,
11       'description' : "802.11 %s -- see %s"%(y,z),
12       'min_role_id' : 40 } for (x,y,z) in [
13
14     ("mode","Mode","iwconfig"),
15
16     ("essid","ESSID","iwconfig"),
17
18     ("nw","Network Id","iwconfig"),
19
20     ("freq","Frequency","iwconfig"),
21
22     ("channel","Channel","iwconfig"),
23
24     ("sens","sensitivity threshold","iwconfig"),
25
26     ("rate","Rate","iwconfig"),
27
28     ("key","key","iwconfig key"),
29
30     ("key1","key1","iwconfig key [1]"),
31
32     ("key2","key2","iwconfig key [2]"),
33
34     ("key3","key3","iwconfig key [3]"),
35
36     ("key4","key4","iwconfig key [4]"),
37
38     ("securitymode","Security mode","iwconfig enc"),
39
40     ("iwconfig","Additional parameters to iwconfig","ifup-wireless"),
41
42     ("iwpriv","Additional parameters to iwpriv","ifup-wireless"),
43
44     ]
45     ]
46
47 for setting_type in wireless_interface_types:
48     SetTagType(setting_type)