Skip to content

Commit 2712425

Browse files
author
Franck Rupin
committed
Add datapath service to client
- The datapath service needs to be integrated to the Client - This commit adds the required fields to the Client structure in order to make the datapath service available
1 parent 453b378 commit 2712425

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

ovs/client.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ type Client struct {
3636
// VSwitch wraps functionality of the 'ovs-vsctl' binary.
3737
VSwitch *VSwitchService
3838

39+
// DataPath wraps functionality of the 'ovs-dpctl' binary
40+
DataPath *DataPathService
41+
3942
// Additional flags applied to all OVS actions, such as timeouts
4043
// or retries.
4144
flags []string
@@ -240,6 +243,12 @@ func New(options ...OptionFunc) *Client {
240243
}
241244
c.App = app
242245

246+
c.DataPath = &DataPathService{
247+
CLI: &OvsCLI{
248+
c: c,
249+
},
250+
}
251+
243252
return c
244253
}
245254

0 commit comments

Comments
 (0)