From 778dd72e8691d29347c1497c2a392ba1e476bf04 Mon Sep 17 00:00:00 2001 From: tathgurt Date: Tue, 18 Jan 2022 11:01:09 +0530 Subject: [PATCH] Operator field invalid if Scope_operator field is present operator field in Conditions for group expressions is invalid if scope_operator field is set to NOTEQUALS, removing it for the same Change-Id: I42a4c2586f30952fd4a6cce5235e6c2404c0c6e4 --- vmware_nsxlib/v3/policy/core_defs.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vmware_nsxlib/v3/policy/core_defs.py b/vmware_nsxlib/v3/policy/core_defs.py index 808602e9..ee4274a0 100644 --- a/vmware_nsxlib/v3/policy/core_defs.py +++ b/vmware_nsxlib/v3/policy/core_defs.py @@ -1630,6 +1630,8 @@ class Condition(object): if self.scope_operator is not None: if (version.LooseVersion(self.nsx_version) >= version.LooseVersion(nsx_constants.NSX_VERSION_3_2_0)): + if self.scope_operator == 'NOTEQUALS': + del body['operator'] body['scope_operator'] = self.scope_operator else: LOG.warning(