Skip to content

Commit

Permalink
ovs: add Strict() OptionFunc for ovs-ofctl flag --strict
Browse files Browse the repository at this point in the history
  • Loading branch information
yousong committed Mar 25, 2020
1 parent 8ce3b42 commit 6bbc8f1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ovs/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,14 @@ func Pipe(fn PipeFunc) OptionFunc {
}
}

// Strict deactivates wildcards for matching purposes when shelling to
// 'ovs-ofctl'.
func Strict() OptionFunc {
return func(c *Client) {
c.ofctlFlags = append(c.ofctlFlags, "--strict")
}
}

const (
// FlowFormatNXMTableID is a flow format which allows Nicira Extended match
// with the ability to place a flow in a specific table.
Expand Down

0 comments on commit 6bbc8f1

Please sign in to comment.