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

gluon-mesh-vpn-fastd: delete all old backbone peers on update

parent 31fe529e
No related branches found
No related tags found
No related merge requests found
......@@ -40,8 +40,15 @@ c:section('fastd', 'peer_group', 'mesh_vpn_backbone',
}
)
c:foreach('fastd', 'peer',
function(peer)
if peer.net == 'mesh_vpn' and peer.group == 'mesh_vpn_backbone' then
c:delete('fastd', peer['.name'])
end
end
)
for name, config in pairs(site.fastd_mesh_vpn.backbone.peers) do
c:delete('fastd', 'mesh_vpn_backbone_peer_' .. name)
c:section('fastd', 'peer', 'mesh_vpn_backbone_peer_' .. name,
{
enabled = 1,
......
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