Skip to content

Commit 4c0a147

Browse files
committed
ovs: add Strict() OptionFunc for ovs-ofctl flag --strict
1 parent 1141932 commit 4c0a147

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ovs/client.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,14 @@ func Pipe(fn PipeFunc) OptionFunc {
278278
}
279279
}
280280

281+
// Strict deactivates wildcards for matching purposes when shelling to
282+
// 'ovs-ofctl'.
283+
func Strict() OptionFunc {
284+
return func(c *Client) {
285+
c.ofctlFlags = append(c.ofctlFlags, "--strict")
286+
}
287+
}
288+
281289
const (
282290
// FlowFormatNXMTableID is a flow format which allows Nicira Extended match
283291
// with the ability to place a flow in a specific table.

0 commit comments

Comments
 (0)