gluon-l3roamd: enhance coding style

This commit is contained in:
Christof Schulze 2017-02-23 15:42:34 +01:00
parent 6431e7f594
commit 3bbfdd4c1d

View File

@ -4,21 +4,17 @@ local uci = require('simple-uci').cursor()
local site = require 'gluon.site_config'
uci:delete('network', 'l3roam')
uci:section('network', 'interface', 'l3roam',
{
uci:section('network', 'interface', 'l3roam', {
ifname = 'l3roam0',
proto = 'none',
}
)
})
uci:delete('network', 'l3roamd_client')
uci:section('network', 'route6', 'l3roamd_client',
{
uci:section('network', 'route6', 'l3roamd_client', {
interface = 'l3roam',
target = site.prefix6,
gateway = '::',
table = '10',
}
)
})
uci:save('network')