gluon-l3roamd: enhance coding style
This commit is contained in:
parent
6431e7f594
commit
3bbfdd4c1d
@ -4,21 +4,17 @@ local uci = require('simple-uci').cursor()
|
|||||||
local site = require 'gluon.site_config'
|
local site = require 'gluon.site_config'
|
||||||
|
|
||||||
uci:delete('network', 'l3roam')
|
uci:delete('network', 'l3roam')
|
||||||
uci:section('network', 'interface', 'l3roam',
|
uci:section('network', 'interface', 'l3roam', {
|
||||||
{
|
|
||||||
ifname = 'l3roam0',
|
ifname = 'l3roam0',
|
||||||
proto = 'none',
|
proto = 'none',
|
||||||
}
|
})
|
||||||
)
|
|
||||||
|
|
||||||
uci:delete('network', 'l3roamd_client')
|
uci:delete('network', 'l3roamd_client')
|
||||||
uci:section('network', 'route6', 'l3roamd_client',
|
uci:section('network', 'route6', 'l3roamd_client', {
|
||||||
{
|
|
||||||
interface = 'l3roam',
|
interface = 'l3roam',
|
||||||
target = site.prefix6,
|
target = site.prefix6,
|
||||||
gateway = '::',
|
gateway = '::',
|
||||||
table = '10',
|
table = '10',
|
||||||
}
|
})
|
||||||
)
|
|
||||||
|
|
||||||
uci:save('network')
|
uci:save('network')
|
||||||
|
Loading…
Reference in New Issue
Block a user