1 #################### interface settings
2 # xxx this should move to PLC/Accessors
4 # Setup default slice attribute types
7 {'category' : "interface/general",
9 'description': "Set interface name, instead of eth0 or the like",
12 {'category' : "interface/route",
13 'tagname' : "staticroute",
14 'description': "Set static route for interfaces",
17 {'category' : "interface/multihome",
19 'description': "Specifies that the network is used for multihoming",
22 {'category' : "interface/hidden",
23 'tagname' : "backdoor",
24 'description': "For testing new settings",
28 { 'category' : "interface/wifi",
30 'description' : "802.11 %s -- see %s"%(y,z),
31 'min_role_id' : 40 } for (x,y,z) in [
33 ("mode","Mode","iwconfig"),
35 ("essid","ESSID","iwconfig"),
37 ("nw","Network Id","iwconfig"),
39 ("freq","Frequency","iwconfig"),
41 ("channel","Channel","iwconfig"),
43 ("sens","sensitivity threshold","iwconfig"),
45 ("rate","Rate","iwconfig"),
47 ("key","key","iwconfig key"),
49 ("key1","key1","iwconfig key [1]"),
51 ("key2","key2","iwconfig key [2]"),
53 ("key3","key3","iwconfig key [3]"),
55 ("key4","key4","iwconfig key [4]"),
57 ("securitymode","Security mode","iwconfig enc"),
59 ("iwconfig","Additional parameters to iwconfig","ifup-wireless"),
61 ("iwpriv","Additional parameters to iwpriv","ifup-wireless"),
66 for setting_type in setting_types:
67 SetTagType(setting_type)