Merge pull request #441 from BKPepe/bird1
[feed/routing.git] / batman-adv / files / lib / netifd / proto / batadv_vlan.sh
1 #!/bin/sh
2
3 . /lib/functions.sh
4 . ../netifd-proto.sh
5 init_proto "$@"
6
7 proto_batadv_vlan_init_config() {
8 proto_config_add_boolean 'ap_isolation:bool'
9 }
10
11 proto_batadv_vlan_setup() {
12 local config="$1"
13 local iface="$2"
14
15 # batadv_vlan options
16 local ap_isolation
17
18 json_get_vars ap_isolation
19
20 [ -n "$ap_isolation" ] && batctl -m "$iface" ap_isolation "$ap_isolation"
21 proto_init_update "$iface" 1
22 proto_send_update "$config"
23 }
24
25 add_protocol batadv_vlan