00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043 config_description = [{'srcline': 50, 'description': 'Non-empty to force the use of a particular interface.', 'max': '', 'cconsttype': 'const char * const', 'ctype': 'std::string', 'srcfile': '../cfg/MultiInterfaceRoam.cfg', 'name': 'interface', 'edit_method': '', 'default': '', 'level': 0, 'min': '', 'type': 'str'}, {'srcline': 51, 'description': 'Indicates whether the default route should be via the tunnel interface.', 'max': True, 'cconsttype': 'const bool', 'ctype': 'bool', 'srcfile': '../cfg/MultiInterfaceRoam.cfg', 'name': 'use_tunnel', 'edit_method': '', 'default': True, 'level': 0, 'min': False, 'type': 'bool'}, {'srcline': 52, 'description': 'Non-empty to force association to a particular bssid.', 'max': '', 'cconsttype': 'const char * const', 'ctype': 'std::string', 'srcfile': '../cfg/MultiInterfaceRoam.cfg', 'name': 'bssid', 'edit_method': '', 'default': '', 'level': 0, 'min': '', 'type': 'str'}, {'srcline': 53, 'description': 'Non-empty to force association to a particular ssid.', 'max': '', 'cconsttype': 'const char * const', 'ctype': 'std::string', 'srcfile': '../cfg/MultiInterfaceRoam.cfg', 'name': 'ssid', 'edit_method': '', 'default': '', 'level': 0, 'min': '', 'type': 'str'}, {'srcline': 54, 'description': 'Non-empty to force association to a particular ssid.', 'max': 3, 'cconsttype': 'const int', 'ctype': 'int', 'srcfile': '../cfg/MultiInterfaceRoam.cfg', 'name': 'band', 'edit_method': "{'enum_description': 'The band to operate on.', 'enum': [{'srcline': 43, 'description': 'Use only the 2.4 GHz band.', 'srcfile': '../cfg/MultiInterfaceRoam.cfg', 'cconsttype': 'const int', 'value': 1, 'ctype': 'int', 'type': 'int', 'name': '2400_MHz'}, {'srcline': 44, 'description': 'Use only the 5 GHz band.', 'srcfile': '../cfg/MultiInterfaceRoam.cfg', 'cconsttype': 'const int', 'value': 2, 'ctype': 'int', 'type': 'int', 'name': '5000_MHz'}, {'srcline': 45, 'description': 'Use both the 2.4 GHz and 5 GHz bands.', 'srcfile': '../cfg/MultiInterfaceRoam.cfg', 'cconsttype': 'const int', 'value': 3, 'ctype': 'int', 'type': 'int', 'name': 'Both'}]}", 'default': 2, 'level': 0, 'min': 1, 'type': 'int'}]
00044
00045 min = {}
00046 max = {}
00047 defaults = {}
00048 level = {}
00049 type = {}
00050 all_level = 0
00051
00052 for param in config_description:
00053 min[param['name']] = param['min']
00054 max[param['name']] = param['max']
00055 defaults[param['name']] = param['default']
00056 level[param['name']] = param['level']
00057 type[param['name']] = param['type']
00058 all_level = all_level | param['level']
00059
00060 MultiInterfaceRoam_2400_MHz = 1
00061 MultiInterfaceRoam_5000_MHz = 2
00062 MultiInterfaceRoam_Both = 3