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":[
{
"status":"PENDING_CREATE",
"protocol_port":8080,
"status":"ACTIVE",
"weight":1,
"admin_state_up":true,
"tenant_id":"4fd44f30292945e481c7b8a0c8908869",
"pool_id":"7803631d-f181-4500-b3a2-1b68ba2a75fd",
"address":"10.0.0.5",
"status_description":null,
"id":"48a471ea-64f1-4eb6-9be7-dae6bbe40a0f"
"tenant_id":"83657cfcdfe44cd5920adaf26c48ceea",
"pool_id":"72741b06-df4d-4715-b142-276b6bce75ab",
"address":"10.0.0.4",
"protocol_port":80,
"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":{
"subnet_id":"54d6f61d-db07-451c-9ab3-b9609b6b6f0b",
"lb_method":"SOURCE_IP",
"protocol":"HTTP",
"name":"mypool",
"subnet_id":"8032909d-47a1-4715-90af-5153ffe39861",
"lb_method":"ROUND_ROBIN",
"protocol":"TCP",
"name":"NewPool",
"admin_state_up":true
}
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

File diff suppressed because it is too large Load Diff