Skip to content

Commit

Permalink
fix: do not gc learned routes
Browse files Browse the repository at this point in the history
(cherry picked from commit bd1e097)
  • Loading branch information
oilbeater committed May 6, 2021
1 parent 4e8a7c9 commit 548a5c5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/ovs/ovn-nbctl.go
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,10 @@ func parseLrRouteListOutput(output string) (routeList []*StaticRoute, err error)
lines := strings.Split(output, "\n")
routeList = make([]*StaticRoute, 0, len(lines))
for _, l := range lines {
if strings.Contains(l, "learned") {
continue
}

if len(l) == 0 {
continue
}
Expand Down

0 comments on commit 548a5c5

Please sign in to comment.