gluon-mesh-batman-adv-core, gluon-mesh-vpn-fastd: switch MAC address assignment
Switch to: 1. WAN 2. LAN 3. Mesh VPN As WAN and LAN are setup in gluon-mesh-batman-adv-core (and will be moved to gluon-core), while the mesh VPN has its own package, giving WAN and LAN the first indices is preferable.
This commit is contained in:
parent
736831b7d7
commit
48b3283c3e
@ -5,5 +5,5 @@ local uci = require('luci.model.uci').cursor()
|
||||
|
||||
|
||||
-- fix up duplicate mac addresses (for mesh-on-WAN)
|
||||
uci:set('network', 'wan', 'macaddr', util.get_mac(2))
|
||||
uci:set('network', 'wan', 'macaddr', util.get_mac(1))
|
||||
uci:save('network')
|
||||
|
@ -18,7 +18,7 @@ uci:section('network', 'interface', 'mesh_lan', {
|
||||
proto = 'batadv',
|
||||
mesh = 'bat0',
|
||||
mesh_no_rebroadcast = '1',
|
||||
macaddr = util.get_mac(3),
|
||||
macaddr = util.get_mac(2),
|
||||
})
|
||||
|
||||
if uci:get('network', 'mesh_lan', 'auto') == nil then
|
||||
|
@ -127,7 +127,7 @@ uci:section('network', 'interface', 'mesh_vpn',
|
||||
proto = 'batadv',
|
||||
mesh = 'bat0',
|
||||
mesh_no_rebroadcast = 1,
|
||||
macaddr = util.get_mac(1),
|
||||
macaddr = util.get_mac(3),
|
||||
}
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user