Skip to content

Commit

Permalink
externalOvnRouters is ok with 0
Browse files Browse the repository at this point in the history
  • Loading branch information
lut777 committed Jul 29, 2021
1 parent 32c2335 commit a04d964
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/controller/external_vpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,9 @@ func (c *Controller) getRouterStatus() (logicalRouters map[string]util.LogicalRo
klog.Errorf("failed to list external logical router, %v", err)
return logicalRouters, err
}
// default ovn-default lr should exists unless list failed
if len(externalOvnRouters) == 0 {
errMsg := fmt.Errorf("list lr failed with no lr exists")
klog.Error(errMsg)
return logicalRouters, errMsg
klog.V(4).Info("sync over, no external vpc")
return logicalRouters, nil
}

for _, aExternalRouter := range externalOvnRouters {
Expand Down

0 comments on commit a04d964

Please sign in to comment.