Skip to content

Commit fa8707b

Browse files
authored
[occm]: fix blackhole route atomic delete logic (#2257)
1 parent 5a94599 commit fa8707b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/openstack/routes.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,9 @@ func (r *Routes) DeleteRoute(ctx context.Context, clusterName string, route *clo
421421
} else {
422422
// atomic route update
423423
blackhole := route.Blackhole
424+
if blackhole {
425+
addr = string(route.TargetNode)
426+
}
424427
route := []routers.Route{{
425428
DestinationCIDR: route.DestinationCIDR,
426429
NextHop: addr,

0 commit comments

Comments
 (0)