- Timestamp:
- Jun 12, 2013, 8:02:52 PM (12 years ago)
- Location:
- tools
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/gformat.py
r12247 r12349 197 197 for key in datadump['autogen_iface_keys']: 198 198 datadump[key]['autogen_ifbase'] = key.split('_')[1] 199 datadump[key]['autogen_gateway'] = datadump[key]['ip'].split('/')[0] 199 200 if datadump[key]['type'] in ['11a', '11b', '11g', 'wireless']: 200 201 datadump[key]['autogen_ifname'] = 'wlan%i' % wlan_count … … 1109 1110 return output 1110 1111 1112 def generate_nanostation_config(datadump, iface, ns_type): 1113 datadump.update(datadump['iface_%s' % iface]) 1114 1115 return open(os.path.join(os.path.dirname(__file__), 'ns5m.cfg.tmpl'),'r').read() % datadump 1111 1116 1112 1117 def generate_yaml(datadump): … … 1143 1148 elif config == 'pf.hybrid.conf.local': 1144 1149 output += generate_pf_hybrid_conf_local(datadump) 1150 elif config.startswith('vr'): 1151 interface, ns_type = config.strip('.yaml').split('-') 1152 output += generate_nanostation_config(datadump, interface, ns_type) 1145 1153 else: 1146 1154 assert False, "Config not found!"
Note:
See TracChangeset
for help on using the changeset viewer.