From 5213206b9e046f7a1ed1c5f72755891df3505fea Mon Sep 17 00:00:00 2001 From: b-m-f Date: Wed, 26 Oct 2022 12:25:31 +0200 Subject: [PATCH] fix: adds new type to PerNetwork Options. This way networks can have options passed into them through the cli easily in the future --- libnetwork/types/network.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libnetwork/types/network.go b/libnetwork/types/network.go index 1285f1f540..34f985088f 100644 --- a/libnetwork/types/network.go +++ b/libnetwork/types/network.go @@ -213,9 +213,9 @@ 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"` - // Path to WireGuard configuration. - // Will only be used when the network driver is WireGuard - WireGuardConfigPath string `json:"wireguard_config_path"` + // Additional options that should be applied to a network + // Optional + Options map[string]string `json:"options,omitempty"` } // NetworkOptions for a given container.