If IP block is created by Policy API, we need
{'X-Allow-Overwrite': 'true'} in header to delete subnet
Change-Id: Ib05437fef32d2ea206ee5af67b441f710d6f5016
This exception happens when the user's license expires on NSX and
a patch call is made. This is supported with NSX 3.1.0 and beyond
Change-Id: Ifb2dd824128720bd25d0053faab57cbbb6c7f04f
There is a short gap between NSX-T provider updating the realization
entity with Error state, and attaching with actual alarms. This would
result in nsxlib returning 'Unknown' RealizationErrorStateError
exception, while the real error is something else.
Upon getting a None error code, the get_info funtion should be retried
as well.
Change-Id: Ica3051b4858991738992022df1dd62b47dd9178d
This patch adds uri_segment as an alias of resource for all MP LB
resources, enabling proper use of _get_resource_by_name_or_id for these
resources.
Change-Id: I548519a8d2ea25d4324060894e0a3a0d03dd7e7e
Since py2 is no longer supported, built in methods can replace the
six package usage, as been done in the neutron project.
Change-Id: I435462c940e68fa48a910210e584cf139b3b9d95
This property is used to specify LS ID when creating segment, this
property is only used in NSX Highline backup/restore case currently.
Change-Id: I5033579623cde5dcf857ffdfd1f2d18390e9ff81
Use the policy 'rules' attribute instead of adding child rules.
This is expected to have better performance on the NSX side.
This patch re-itroduce the fix from: I213616a8b47f11adb1a897568746885f3e77078c
but this time with a flag to not break stuff
Change-Id: Ib6361575642fa96a93dd49107ece1f120a6e61b2
The response class has a __bool__ method so checking 'if not response'
has a different meaning than the code intended.
Change-Id: I85f0f3642d752372f6aa33db296e26b2f81f5ee9
When creating a pair of link ports for a t1 router, if failed to
create the tier1 link port, we need to cleanup the already-created
peer tier0 link port to avoid leaving any orphaned link port.
Change-Id: Ice7c25d362b54024634f311c2df1465089bad1b4
Use the policy 'rules' attribute instead of adding child rules.
This is expected to have better performance on the NSX side.
Change-Id: I213616a8b47f11adb1a897568746885f3e77078c
This patch allows exception propagated to the caller when deleting
a nsgroup (similar to deleting a FW section and an ipset).
Thus callers can retry if the deletion failed.
This can avoid orphaned nsgroups still exist in the system.
Change-Id: I475a5c984aed7b6cae26951e64971ec463a43c5e
Manager uses elastic-search scoring and display_name as default
primary and secondary sort order respectively. In a Manager cluster,
each Manager has its own elastic-search instance, Thus the relevance
of scoring might differ due to different parameters, so pagination
result may differ too.
When NCP does a multi-page search, like retrieving all existing
logical ports in a scale setup, Manager VIP could be served by
different Managers during the search. Due to the above reason,
some entries could be missing or duplicated in the query result.
This patch appends "sort_by=id" in search url, therefore all
Managers could return the same pagination results.
Change-Id: Id26cf0cbcdaebb965890d5ee7934c11da056b128