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

gluon-mesh-vpn-fastd: use delete_all instead of foreach to delete the old peers

parent 18035257
No related branches found
No related tags found
No related merge requests found
......@@ -39,12 +39,10 @@ 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
c:delete_all('fastd', 'peer',
function(peer)
return peer.net == 'mesh_vpn' and peer.group == 'mesh_vpn_backbone'
end
)
for name, config in pairs(site.fastd_mesh_vpn.backbone.peers) do
......
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