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:
Matthias Schiffer 2016-08-30 21:18:20 +02:00
parent 8557ffb2b9
commit 2331cb194e
No known key found for this signature in database
GPG Key ID: 16EF3F64CB201D9C
3 changed files with 3 additions and 3 deletions

View File

@ -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')

View File

@ -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

View File

@ -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),
}
)