NSXv3: Fix a router port name update issue
When updating the name of a router, the name of associated router ports should also be updated. The current code has a bug that also tries to update the attachment at the same time. This patch fixes that problem. Change-Id: Ifdd58a0e9cd5a35fd3ab68617a07a25c3630a8fa
This commit is contained in:
parent
16e81e4641
commit
5c67a5c25a
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user