Skip to content

Commit

Permalink
lime-proto-anygw: properly name uci sections using owrtInterfaceName …
Browse files Browse the repository at this point in the history
…variable

Signed-off-by: Gui Iribarren <gui@altermundi.net>
  • Loading branch information
altergui committed Mar 20, 2017
1 parent ac5622e commit df59c0f
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions packages/lime-proto-anygw/src/anygw.lua
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ function anygw.configure(args)

uci:set("dhcp", "lan", "ignore", "1")

uci:set("dhcp", "lm_net_br_lan_anygw_dhcp", "dhcp")
uci:set("dhcp", "lm_net_br_lan_anygw_dhcp", "interface", "lm_net_br_lan_anygw_if")
uci:set("dhcp", "lm_net_br_lan_anygw_dhcp", "start", "2")
uci:set("dhcp", "lm_net_br_lan_anygw_dhcp", "limit", (2 ^ (32 - anygw_ipv4:prefix()))) -- use whole network
uci:set("dhcp", "lm_net_br_lan_anygw_dhcp", "leasetime", "1h")

uci:set("dhcp", "lm_net_br_lan_anygw_if", "tag")
uci:set("dhcp", "lm_net_br_lan_anygw_if", "dhcp_option", { "option:mtu,1350" } )
uci:set("dhcp", "lm_net_br_lan_anygw_if", "force", "1")
uci:set("dhcp", owrtInterfaceName.."_dhcp", "dhcp")
uci:set("dhcp", owrtInterfaceName.."_dhcp", "interface", owrtInterfaceName)
uci:set("dhcp", owrtInterfaceName.."_dhcp", "start", "2")
uci:set("dhcp", owrtInterfaceName.."_dhcp", "limit", (2 ^ (32 - anygw_ipv4:prefix()))) -- use whole network
uci:set("dhcp", owrtInterfaceName.."_dhcp", "leasetime", "1h")

uci:set("dhcp", owrtInterfaceName, "tag")
uci:set("dhcp", owrtInterfaceName, "dhcp_option", { "option:mtu,1350" } )
uci:set("dhcp", owrtInterfaceName, "force", "1")

uci:foreach("dhcp", "dnsmasq",
function(s)
Expand Down

0 comments on commit df59c0f

Please sign in to comment.