From 4b1cfdba72bceda1e465da9b8ea4c11d6873d02d Mon Sep 17 00:00:00 2001 From: Yury Kulazhenkov Date: Wed, 3 Apr 2024 15:27:22 +0300 Subject: [PATCH] Add logic to SriovNetworkNodePolicy controller to populate bridge config Signed-off-by: Yury Kulazhenkov --- controllers/sriovnetworknodepolicy_controller.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/controllers/sriovnetworknodepolicy_controller.go b/controllers/sriovnetworknodepolicy_controller.go index c4c1fc42d8..d47ffbdba9 100644 --- a/controllers/sriovnetworknodepolicy_controller.go +++ b/controllers/sriovnetworknodepolicy_controller.go @@ -349,6 +349,12 @@ func (r *SriovNetworkNodePolicyReconciler) syncSriovNetworkNodeState(ctx context if err != nil { return err } + if r.FeatureGate.IsEnabled(constants.ManageSoftwareBridgesFeatureGate) { + err = p.ApplyBridgeConfig(newVersion) + if err != nil { + return err + } + } // record the evaluated policy priority for next loop ppp = p.Spec.Priority }