Update LBaaS extension to include session persistence info

Clean up code samples and formatting

Closes-Bug: #1231905

Change-Id: If00c9ae698803323ac8331a9d09650e61f64a8ba
author: diane fleming
This commit is contained in:
Diane Fleming 2014-03-26 14:45:02 -05:00
parent 7de8072145
commit 49a00ab385
12 changed files with 462 additions and 416 deletions

View File

@ -1,15 +1,24 @@
{ {
"members":[ "members":[
{ {
"status":"PENDING_CREATE", "status":"ACTIVE",
"protocol_port":8080,
"weight":1, "weight":1,
"admin_state_up":true, "admin_state_up":true,
"tenant_id":"4fd44f30292945e481c7b8a0c8908869", "tenant_id":"83657cfcdfe44cd5920adaf26c48ceea",
"pool_id":"7803631d-f181-4500-b3a2-1b68ba2a75fd", "pool_id":"72741b06-df4d-4715-b142-276b6bce75ab",
"address":"10.0.0.5", "address":"10.0.0.4",
"status_description":null, "protocol_port":80,
"id":"48a471ea-64f1-4eb6-9be7-dae6bbe40a0f" "id":"701b531b-111a-4f21-ad85-4795b7b12af6"
},
{
"status":"ACTIVE",
"weight":1,
"admin_state_up":true,
"tenant_id":"83657cfcdfe44cd5920adaf26c48ceea",
"pool_id":"72741b06-df4d-4715-b142-276b6bce75ab",
"address":"10.0.0.3",
"protocol_port":80,
"id":"beb53b4d-230b-4abd-8118-575b8fa006ef"
} }
] ]
} }

View File

@ -1,9 +1,9 @@
{ {
"pool":{ "pool":{
"subnet_id":"54d6f61d-db07-451c-9ab3-b9609b6b6f0b", "subnet_id":"8032909d-47a1-4715-90af-5153ffe39861",
"lb_method":"SOURCE_IP", "lb_method":"ROUND_ROBIN",
"protocol":"HTTP", "protocol":"TCP",
"name":"mypool", "name":"NewPool",
"admin_state_up":true "admin_state_up":true
} }
} }

View File

@ -1,25 +1,20 @@
{ {
"pool":{ "pool":{
"status":"PENDING_CREATE", "status":"PENDING_CREATE",
"lb_method":"SOURCE_IP", "lb_method":"STATIC_IP",
"protocol":"HTTP", "protocol":"TCP",
"description":"", "description":"",
"health_monitors":[ "health_monitors":[
], ],
"subnet_id":"54d6f61d-db07-451c-9ab3-b9609b6b6f0b", "subnet_id":"8032909d-47a1-4715-90af-5153ffe39861",
"tenant_id":"4fd44f30292945e481c7b8a0c8908869", "tenant_id":"83657cfcdfe44cd5920adaf26c48ceea",
"admin_state_up":true, "admin_state_up":true,
"name":"mypool", "name":"NewPool",
"health_monitors_status":[
],
"members":[ "members":[
], ],
"provider":"haproxy", "id":"a224402b-794b-4c0c-9d08-d95640a6f5a1",
"status_description":null,
"id":"7803631d-f181-4500-b3a2-1b68ba2a75fd",
"vip_id":null "vip_id":null
} }
} }

View File

@ -1,27 +1,24 @@
{ {
"pools":[ "pools":[
{ {
"status":"PENDING_CREATE", "status":"ACTIVE",
"lb_method":"SOURCE_IP", "lb_method":"ROUND_ROBIN",
"protocol":"HTTP", "protocol":"HTTP",
"description":"", "description":"",
"health_monitors":[ "health_monitors":[
"466c8345-28d8-4f84-a246-e04380b0461d",
"5d4b5228-33b0-4e60-b225-9b727c1a20e7"
], ],
"subnet_id":"54d6f61d-db07-451c-9ab3-b9609b6b6f0b", "subnet_id":"8032909d-47a1-4715-90af-5153ffe39861",
"tenant_id":"4fd44f30292945e481c7b8a0c8908869", "tenant_id":"83657cfcdfe44cd5920adaf26c48ceea",
"admin_state_up":true, "admin_state_up":true,
"name":"mypool", "name":"app_pool",
"health_monitors_status":[
],
"members":[ "members":[
"701b531b-111a-4f21-ad85-4795b7b12af6",
"beb53b4d-230b-4abd-8118-575b8fa006ef"
], ],
"provider":"haproxy", "id":"72741b06-df4d-4715-b142-276b6bce75ab",
"status_description":null, "vip_id":"4ec89087-d057-4e2c-911f-60a3b47ee304"
"id":"7803631d-f181-4500-b3a2-1b68ba2a75fd",
"vip_id":null
} }
] ]
} }

View File

@ -1,25 +1,22 @@
{ {
"pool":{ "pool":{
"status":"PENDING_CREATE", "status":"ACTIVE",
"lb_method":"SOURCE_IP", "lb_method":"ROUND_ROBIN",
"protocol":"HTTP", "protocol":"HTTP",
"description":"", "description":"",
"health_monitors":[ "health_monitors":[
"466c8345-28d8-4f84-a246-e04380b0461d",
"5d4b5228-33b0-4e60-b225-9b727c1a20e7"
], ],
"subnet_id":"54d6f61d-db07-451c-9ab3-b9609b6b6f0b", "subnet_id":"8032909d-47a1-4715-90af-5153ffe39861",
"tenant_id":"4fd44f30292945e481c7b8a0c8908869", "tenant_id":"83657cfcdfe44cd5920adaf26c48ceea",
"admin_state_up":true, "admin_state_up":true,
"name":"mypool", "name":"app_pool",
"health_monitors_status":[
],
"members":[ "members":[
"701b531b-111a-4f21-ad85-4795b7b12af6",
"beb53b4d-230b-4abd-8118-575b8fa006ef"
], ],
"provider":"haproxy", "id":"72741b06-df4d-4715-b142-276b6bce75ab",
"status_description":null, "vip_id":"4ec89087-d057-4e2c-911f-60a3b47ee304"
"id":"7803631d-f181-4500-b3a2-1b68ba2a75fd",
"vip_id":null
} }
} }

View File

@ -1,25 +1,20 @@
{ {
"pool":{ "pool":{
"status":"PENDING_UPDATE", "status":"PENDING_UPDATE",
"lb_method":"SOURCE_IP", "lb_method":"ROUND_ROBIN",
"protocol":"HTTP", "protocol":"TCP",
"description":"", "description":"",
"health_monitors":[ "health_monitors":[
], ],
"subnet_id":"54d6f61d-db07-451c-9ab3-b9609b6b6f0b", "subnet_id":"8032909d-47a1-4715-90af-5153ffe39861",
"tenant_id":"4fd44f30292945e481c7b8a0c8908869", "tenant_id":"83657cfcdfe44cd5920adaf26c48ceea",
"admin_state_up":true, "admin_state_up":true,
"name":"SuperPool", "name":"SuperPool",
"health_monitors_status":[
],
"members":[ "members":[
], ],
"provider":"haproxy", "id":"61b1f87a-7a21-4ad3-9dda-7f81d249944f",
"status_description":null,
"id":"7803631d-f181-4500-b3a2-1b68ba2a75fd",
"vip_id":null "vip_id":null
} }
} }

View File

@ -1,10 +1,10 @@
{ {
"vip":{ "vip":{
"protocol":"HTTP", "protocol":"HTTP",
"name":"myvip", "name":"NewVip",
"admin_state_up":true, "admin_state_up":true,
"subnet_id":"54d6f61d-db07-451c-9ab3-b9609b6b6f0b", "subnet_id":"8032909d-47a1-4715-90af-5153ffe39861",
"pool_id":"7803631d-f181-4500-b3a2-1b68ba2a75fd", "pool_id":"61b1f87a-7a21-4ad3-9dda-7f81d249944f",
"protocol_port":"80" "protocol_port":"80"
} }
} }

View File

@ -1,18 +1,17 @@
{ {
"vip":{ "vip":{
"status":"PENDING_CREATE", "status":"PENDING_CREATE",
"status_description":null,
"protocol":"HTTP", "protocol":"HTTP",
"description":"", "description":"",
"admin_state_up":true, "admin_state_up":true,
"subnet_id":"54d6f61d-db07-451c-9ab3-b9609b6b6f0b", "subnet_id":"8032909d-47a1-4715-90af-5153ffe39861",
"tenant_id":"4fd44f30292945e481c7b8a0c8908869", "tenant_id":"83657cfcdfe44cd5920adaf26c48ceea",
"connection_limit":-1, "connection_limit":-1,
"pool_id":"7803631d-f181-4500-b3a2-1b68ba2a75fd", "pool_id":"61b1f87a-7a21-4ad3-9dda-7f81d249944f",
"address":"192.0.0.3", "address":"10.0.0.11",
"protocol_port":80, "protocol_port":80,
"port_id":"36242e87-0bae-49d7-bc59-a0867476c69a", "port_id":"f7e6fe6a-b8b5-43a8-8215-73456b32e0f5",
"id":"a54bc6e7-2e28-4c55-a676-6146a4c0f8b9", "id":"c987d2be-9a3c-4ac9-a046-e8716b1350e2",
"name":"myvip" "name":"NewVip"
} }
} }

View File

@ -2,19 +2,22 @@
"vips":[ "vips":[
{ {
"status":"ACTIVE", "status":"ACTIVE",
"status_description":null,
"protocol":"HTTP", "protocol":"HTTP",
"description":"", "description":"",
"admin_state_up":true, "admin_state_up":true,
"subnet_id":"54d6f61d-db07-451c-9ab3-b9609b6b6f0b", "subnet_id":"8032909d-47a1-4715-90af-5153ffe39861",
"tenant_id":"4fd44f30292945e481c7b8a0c8908869", "tenant_id":"83657cfcdfe44cd5920adaf26c48ceea",
"connection_limit":-1, "connection_limit":1000,
"pool_id":"7803631d-f181-4500-b3a2-1b68ba2a75fd", "pool_id":"72741b06-df4d-4715-b142-276b6bce75ab",
"address":"192.0.0.3", "session_persistence":{
"cookie_name":"MyAppCookie",
"type":"APP_COOKIE"
},
"address":"10.0.0.10",
"protocol_port":80, "protocol_port":80,
"port_id":"36242e87-0bae-49d7-bc59-a0867476c69a", "port_id":"b5a743d6-056b-468b-862d-fb13a9aa694e",
"id":"a54bc6e7-2e28-4c55-a676-6146a4c0f8b9", "id":"4ec89087-d057-4e2c-911f-60a3b47ee304",
"name":"myvip" "name":"my-vip"
} }
] ]
} }

View File

@ -1,18 +1,21 @@
{ {
"vip":{ "vip":{
"status":"ACTIVE", "status":"ACTIVE",
"status_description":null,
"protocol":"HTTP", "protocol":"HTTP",
"description":"", "description":"",
"admin_state_up":true, "admin_state_up":true,
"subnet_id":"54d6f61d-db07-451c-9ab3-b9609b6b6f0b", "subnet_id":"8032909d-47a1-4715-90af-5153ffe39861",
"tenant_id":"4fd44f30292945e481c7b8a0c8908869", "tenant_id":"83657cfcdfe44cd5920adaf26c48ceea",
"connection_limit":-1, "connection_limit":1000,
"pool_id":"7803631d-f181-4500-b3a2-1b68ba2a75fd", "pool_id":"72741b06-df4d-4715-b142-276b6bce75ab",
"address":"192.0.0.3", "session_persistence":{
"cookie_name":"MyAppCookie",
"type":"APP_COOKIE"
},
"address":"10.0.0.10",
"protocol_port":80, "protocol_port":80,
"port_id":"36242e87-0bae-49d7-bc59-a0867476c69a", "port_id":"b5a743d6-056b-468b-862d-fb13a9aa694e",
"id":"a54bc6e7-2e28-4c55-a676-6146a4c0f8b9", "id":"4ec89087-d057-4e2c-911f-60a3b47ee304",
"name":"myvip" "name":"my-vip"
} }
} }

View File

@ -1,18 +1,17 @@
{ {
"vip":{ "vip":{
"status":"PENDING_UPDATE", "status":"PENDING_UPDATE",
"status_description":null,
"protocol":"HTTP", "protocol":"HTTP",
"description":"", "description":"",
"admin_state_up":true, "admin_state_up":true,
"subnet_id":"54d6f61d-db07-451c-9ab3-b9609b6b6f0b", "subnet_id":"8032909d-47a1-4715-90af-5153ffe39861",
"tenant_id":"4fd44f30292945e481c7b8a0c8908869", "tenant_id":"83657cfcdfe44cd5920adaf26c48ceea",
"connection_limit":1000, "connection_limit":1000,
"pool_id":"7803631d-f181-4500-b3a2-1b68ba2a75fd", "pool_id":"61b1f87a-7a21-4ad3-9dda-7f81d249944f",
"address":"192.0.0.3", "address":"10.0.0.11",
"protocol_port":80, "protocol_port":80,
"port_id":"36242e87-0bae-49d7-bc59-a0867476c69a", "port_id":"f7e6fe6a-b8b5-43a8-8215-73456b32e0f5",
"id":"a54bc6e7-2e28-4c55-a676-6146a4c0f8b9", "id":"c987d2be-9a3c-4ac9-a046-e8716b1350e2",
"name":"myvip" "name":"NewVip"
} }
} }

File diff suppressed because it is too large Load Diff