Skip to content

Commit cb908b2

Browse files
yousongYousong Zhou
authored andcommitted
ovs: add Strict() OptionFunc for ovs-ofctl flag --strict
1 parent 813765f commit cb908b2

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
@@ -270,6 +270,14 @@ func Pipe(fn PipeFunc) OptionFunc {
270270
}
271271
}
272272

273+
// Strict deactivates wildcards for matching purposes when shelling to
274+
// 'ovs-ofctl'.
275+
func Strict() OptionFunc {
276+
return func(c *Client) {
277+
c.ofctlFlags = append(c.ofctlFlags, "--strict")
278+
}
279+
}
280+
273281
const (
274282
// FlowFormatNXMTableID is a flow format which allows Nicira Extended match
275283
// with the ability to place a flow in a specific table.

0 commit comments

Comments
 (0)