diff --git a/vmware_nsxlib/v3/resources.py b/vmware_nsxlib/v3/resources.py index f20074aa..fbd03b27 100644 --- a/vmware_nsxlib/v3/resources.py +++ b/vmware_nsxlib/v3/resources.py @@ -254,7 +254,7 @@ class LogicalPort(AbstractRESTResource): 'resource_type': nsx_constants.CIF_RESOURCE_TYPE} attachment['context'] = context return attachment - elif attachment_type is None or vif_uuid is None: + elif attachment_type is None and vif_uuid is None: return None # reset attachment else: return False # no attachment change