this google groups thing really sucks for pasting code snippets, if you get the code examples not formatted properly via email take a look at the web interface: https://groups.google.com/d/msg/openwisp/gasV0ie-340/T6qX6o--AgAJ
On Tue, Feb 21, 2017 at 6:46 PM Federico Capoano <[email protected]> wrote: > See below > > On Tuesday, February 21, 2017 at 5:37:58 PM UTC+1, mord reneth wrote: > > Ahhh....so i should simply be putting it straight into json advanced mode? > > ok, here's an example of a entire block > > config wifi-iface 'wifi_wlan0' > list r0kh '12:34:56:78:90:12,12345678901 <(234)%20567-8901>2, > 8a7fcc966ed0691ff2809e1f38c16996' > list r0kh 'AB:CD:EF:FE:DC:BA,ABCDEFFEDCBA, > 8a7fcc966ed0691ff2809e1f38c16996' > list r1kh '12:34:56:78:90:12,12:34:56:78:90:12, > 8a7fcc966ed0691ff2809e1f38c16996' > list r1kh 'AB:CD:EF:FE:DC:BA,AB:CD:EF:FE:DC:BA, > 8a7fcc966ed0691ff2809e1f38c16996' > option ifname 'wlan0' > option disabled '0' > option encryption 'psk2' > option isolate '0' > option key 'doesitmatter' > option wmm '1' > option macfilter 'disable' > option network 'lan' > option nasid '123456789012' > option wds '0' > option hidden '0' > option ieee80211r '1' > option ssid 'somewhere' > option r1_key_holder '123456789012' > option pmk_r1_push '1' > option mobility_domain 'dead' > option device 'radio0' > option mode 'ap' > > > Try with the following NetJSON <http://netjson.org/>: > > { > "interfaces": [ > { > "type": "wireless", > "name": "wlan0", > "wireless": { > "network": [ > "lan" > ], > "mode": "access_point", > "radio": "radio0", > "ssid": "somewhere", > "hidden": false, > "wds": false, > "macfilter": "disable", > "isolate": false, > "wmm": true, > "nasid": "123456789012", > "ieee80211r": true, > "r1_key_holder": "123456789012", > "pmk_r1_push": true, > "mobility_domain": "dead", > "r0kh": [ > > "12:34:56:78:90:12,123456789012,8a7fcc966ed0691ff2809e1f38c16996", > > "AB:CD:EF:FE:DC:BA,ABCDEFFEDCBA,8a7fcc966ed0691ff2809e1f38c16996" > ], > "r1kh": [ > > "12:34:56:78:90:12,12:34:56:78:90:12,8a7fcc966ed0691ff2809e1f38c16996", > > "AB:CD:EF:FE:DC:BA,AB:CD:EF:FE:DC:BA,8a7fcc966ed0691ff2809e1f38c16996" > ], > "encryption": { > "disabled": false, > "protocol": "wpa2_personal", > "key": "doesitmatter", > "cipher": "auto" > } > } > } > ] > } > > Which should generate the following UCI output: > > config wifi-iface 'wifi_wlan0' > option device 'radio0' > option encryption 'psk2' > option hidden '0' > option ieee80211r '1' > option ifname 'wlan0' > option isolate '0' > option key 'doesitmatter' > option macfilter 'disable' > option mobility_domain 'dead' > option mode 'ap' > option nasid '123456789012' > option network 'lan' > option pmk_r1_push '1' > list r0kh '12:34:56:78:90:12,123456789012,8a7fcc966ed0691ff2809e1f38c16996' > list r0kh 'AB:CD:EF:FE:DC:BA,ABCDEFFEDCBA,8a7fcc966ed0691ff2809e1f38c16996' > option r1_key_holder '123456789012' > list r1kh > '12:34:56:78:90:12,12:34:56:78:90:12,8a7fcc966ed0691ff2809e1f38c16996' > list r1kh > 'AB:CD:EF:FE:DC:BA,AB:CD:EF:FE:DC:BA,8a7fcc966ed0691ff2809e1f38c16996' > option ssid 'somewhere' > option wds '0' > option wmm '1' > > Just to add another question into the same thread...... nasid, > r1_key_holder, and the parts of r0kh/r1kh are the router's BSSID......any > way to automate/generate those entries automatically? > > > MM.. I don't think so unfortunately, but it would be a great feature, we > already discussed a similar feature in another thread which I called > "Generator > template" > <https://groups.google.com/d/msg/openwisp/CyHkDqvw6Aw/oeB67eFoAQAJ>. > > -- > You received this message because you are subscribed to the Google Groups > "OpenWISP" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "OpenWISP" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
