From 36be37d9427c6ea97742eda9852969c08d257d4f Mon Sep 17 00:00:00 2001 From: Sean Date: Fri, 16 Jul 2021 01:58:47 +0800 Subject: [PATCH] Support update app_id in segment port api Change-Id: I19e85c33e89cd8ab8f2430ae9e007afd193a7b52 --- vmware_nsxlib/v3/policy/core_defs.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vmware_nsxlib/v3/policy/core_defs.py b/vmware_nsxlib/v3/policy/core_defs.py index 141384ee..c5c65a7a 100644 --- a/vmware_nsxlib/v3/policy/core_defs.py +++ b/vmware_nsxlib/v3/policy/core_defs.py @@ -1163,10 +1163,11 @@ class SegmentPortDef(ResourceDef): body['address_bindings'] = [binding.get_obj_dict() for binding in address_bindings] if (self.has_attr('attachment_type') or self.has_attr('vif_id') or - self.has_attr('hyperbus_mode')): + self.has_attr('hyperbus_mode') or self.has_attr('app_id')): if (not self.get_attr('attachment_type') and not self.get_attr('vif_id') and - not self.get_attr('hyperbus_mode')): + not self.get_attr('hyperbus_mode') and + not self.get_attr('app_id')): # detach operation body['attachment'] = None else: