Skip to content

Commit 4f5c8ca

Browse files
committed
ZGW-3403: Add ZipAssociationLimit param configuration
This align to other params. Origin: #21 Relate-to: #20 Signed-off-by: Philippe Coval <[email protected]>
1 parent 6c8fcbc commit 4f5c8ca

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

files/scripts/config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ db_input critical zipgateway/zip_lan_ip6 || true
1313
db_input critical zipgateway/zip_pan_ip6 || true
1414
db_input critical zipgateway/enable_wlan || true
1515
db_input critical zipgateway/bridge_stp || true
16+
db_input critical zipgateway/association_limit || true
1617
db_endblock
1718
if ! db_go ; then
1819
exit 10

files/scripts/postinst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,11 @@ iface br-lan inet dhcp
195195

196196
fi
197197

198+
value=0
199+
db_input zipgateway/association_limit || true
200+
[ "Disabled" = "$RET" ] || value=1
201+
echo ZipAssociationLimit=$value >> $GW_CONFFILE
202+
198203
db_get zipgateway/restart_nw
199204
if [ "$RET" = "Yes" ]
200205
then

files/scripts/templates

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ Default: Enabled
4949
Choices: Enabled, Disabled
5050
Description: Spanning Tree Protocol to bridge to allow multiple bridges
5151

52+
Template: zipgateway/association_limit
53+
Type: select
54+
Default: Disabled
55+
Choices: Enabled, Disabled
56+
Description: Limit to a single classical temporal association (experimental)
57+
5258
Template: zipgateway/restart_nw
5359
Type: select
5460
Choices: Yes, I will reboot later

0 commit comments

Comments
 (0)