From 11e4991bb5eea8657c6e0be2b9650fc01a4dbc96 Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Wed, 24 May 2023 16:58:10 +0200 Subject: [PATCH] netavark: add bclim option for macvlan see https://github.com/containers/netavark/pull/698 Signed-off-by: Paul Holzinger --- libnetwork/netavark/config.go | 5 +++++ libnetwork/types/const.go | 1 + 2 files changed, 6 insertions(+) diff --git a/libnetwork/netavark/config.go b/libnetwork/netavark/config.go index 297338ffb..a0d1ce435 100644 --- a/libnetwork/netavark/config.go +++ b/libnetwork/netavark/config.go @@ -317,6 +317,11 @@ func createIpvlanOrMacvlan(network *types.Network) error { if err != nil { return err } + case types.BclimOption: + _, err := strconv.ParseInt(value, 10, 32) + if err != nil { + return fmt.Errorf("failed to parse %q option: %w", key, err) + } default: return fmt.Errorf("unsupported %s network option %s", driver, key) } diff --git a/libnetwork/types/const.go b/libnetwork/types/const.go index e367f9ad3..10ba17437 100644 --- a/libnetwork/types/const.go +++ b/libnetwork/types/const.go @@ -41,6 +41,7 @@ const ( ModeOption = "mode" IsolateOption = "isolate" MetricOption = "metric" + BclimOption = "bclim" ) type NetworkBackend string