From 1836db5cf7628386221b055f9167e12dee8e8a76 Mon Sep 17 00:00:00 2001 From: Michael Zimmermann Date: Mon, 11 Nov 2024 22:33:03 +0100 Subject: [PATCH] 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 --- libnetwork/types/network.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libnetwork/types/network.go b/libnetwork/types/network.go index 77c76bf78..2b941abd4 100644 --- a/libnetwork/types/network.go +++ b/libnetwork/types/network.go @@ -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.