Skip to content

Commit

Permalink
add vendor param for fix list LR
Browse files Browse the repository at this point in the history
  • Loading branch information
lut777 committed Dec 8, 2021
1 parent 375407d commit 3b7ec06
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/ovs/ovn-nbctl.go
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,9 @@ func (c Client) ListRemoteLogicalSwitchPortAddress() ([]string, error) {

// ListLogicalRouter list logical router names
func (c Client) ListLogicalRouter(needVendorFilter bool, args ...string) ([]string, error) {
if needVendorFilter {
args = append(args, fmt.Sprintf("external_ids:vendor=%s", util.CniTypeName))
}
return c.ListLogicalEntity("logical_router", args...)
}

Expand Down

0 comments on commit 3b7ec06

Please sign in to comment.