Skip to content
Snippets Groups Projects
Unverified Commit 2331cb19 authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

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.
parent 8557ffb2
No related branches found
No related tags found
No related merge requests found
......@@ -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),
}
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment