Skip to content

Commit

Permalink
PerNetworkOptions: add driver specific options
Browse files Browse the repository at this point in the history
This allows us to pass through data to netavaark without bloating this
struct. See #24523.

Signed-off-by: Michael Zimmermann <[email protected]>
  • Loading branch information
M1cha committed Nov 11, 2024
1 parent 2d713bd commit 1836db5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libnetwork/types/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,8 @@ type PerNetworkOptions struct {
// InterfaceName for this container. Required in the backend.
// Optional in the frontend. Will be filled with ethX (where X is a integer) when empty.
InterfaceName string `json:"interface_name"`
// Driver-specific options for this container.
Options map[string]string `json:"options,omitempty"`
}

// NetworkOptions for a given container.
Expand Down

0 comments on commit 1836db5

Please sign in to comment.