1
0
forked from extern/smegmesh
- fixed issue where route not deleting if mesh only one
This commit is contained in:
Tim Beatham 2024-01-05 00:14:25 +00:00
parent 2b73d241b6
commit 0ec5156e59

View File

@ -21,6 +21,11 @@ func (r *RouteManagerImpl) UpdateRoutes() error {
meshes := r.meshManager.GetMeshes() meshes := r.meshManager.GetMeshes()
routes := make(map[string][]Route) routes := make(map[string][]Route)
for _, mesh := range meshes {
// Make empty routes so that routes are retracted
routes[mesh.GetMeshId()] = make([]Route, 0)
}
for _, mesh1 := range meshes { for _, mesh1 := range meshes {
if !*mesh1.GetConfiguration().AdvertiseRoutes { if !*mesh1.GetConfiguration().AdvertiseRoutes {
continue continue