Skip to content

Commit 1836db5

Browse files
committed
PerNetworkOptions: add driver specific options
This allows us to pass through data to netavaark without bloating this struct. See #24523. Signed-off-by: Michael Zimmermann <[email protected]>
1 parent 2d713bd commit 1836db5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libnetwork/types/network.go

+2
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,8 @@ type PerNetworkOptions struct {
269269
// InterfaceName for this container. Required in the backend.
270270
// Optional in the frontend. Will be filled with ethX (where X is a integer) when empty.
271271
InterfaceName string `json:"interface_name"`
272+
// Driver-specific options for this container.
273+
Options map[string]string `json:"options,omitempty"`
272274
}
273275

274276
// NetworkOptions for a given container.

0 commit comments

Comments
 (0)