2bfa1d45b4
Blueprint nicira-plugin-get-improvements With this patch GET operations on the Nicira plugin will not be forwarded anymore to the NVP backend. Resource operational status will be periodically retrieved from the NVP backend using a DynamicLoopingCall. The process has been designed with the aim of avoiding: 1) frequent queries to NVP for retrieving resource status 2) execution of large queries to NVP for retrieving the status of a consistent number of resources. The process can be tuned using a set of configuration variables. GET operations will now return a status which might differ from the actual status of the resource. For retrieving status in a punctual way, the field 'status' should be explicitly specified in the GET request (only 'show' support has been implemented in this patch) This patchs also makes some changes to the fake nvp api client in order to ensure each instance has a private set of dictionaries for fake nvp entities. Change-Id: Ia745b80d2826de32ba8d6883c0d6e0893047e123
13 lines
454 B
JSON
13 lines
454 B
JSON
{"display_name": "%(display_name)s",
|
|
"_href": "/ws.v1/lswitch/%(uuid)s",
|
|
"_schema": "/ws.v1/schema/LogicalSwitchConfig",
|
|
"_relations": {"LogicalSwitchStatus":
|
|
{"fabric_status": %(status)s,
|
|
"type": "LogicalSwitchStatus",
|
|
"lport_count": %(lport_count)d,
|
|
"_href": "/ws.v1/lswitch/%(uuid)s/status",
|
|
"_schema": "/ws.v1/schema/LogicalSwitchStatus"}},
|
|
"type": "LogicalSwitchConfig",
|
|
"tags": %(tags_json)s,
|
|
"uuid": "%(uuid)s"}
|