forked from extern/smegmesh
81-procs
- fixed issue where route not deleting if mesh only one
This commit is contained in:
parent
2b73d241b6
commit
0ec5156e59
@ -21,6 +21,11 @@ func (r *RouteManagerImpl) UpdateRoutes() error {
|
||||
meshes := r.meshManager.GetMeshes()
|
||||
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 {
|
||||
if !*mesh1.GetConfiguration().AdvertiseRoutes {
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user