51f6f7258b
This patch extend Octavia v2 API to access qos_policy_id from neutron. Users can pass it as 'vip_qos_policy_id' to Octavia request body to create/update Loadbalancers, and the vrrp ports will have the qos abilities. This patch modifies the Loadbalancer Post/Put request body and response body. It also extends the 'vip' table with the new column named 'qos_policy_id' to store the qos_id from neutron. Co-Authored-By: Reedip <reedip.banerjee@nectechnologies.in> Change-Id: I43aba9d2ae816b1498d16da077936d6bdb62e30a
89 lines
2.9 KiB
JSON
89 lines
2.9 KiB
JSON
{
|
|
"loadbalancer": {
|
|
"description": "My favorite load balancer",
|
|
"admin_state_up": true,
|
|
"project_id": "e3cd678b11784734bc366148aa37580e",
|
|
"flavor": "",
|
|
"listeners": [
|
|
{
|
|
"name": "http_listener",
|
|
"protocol": "HTTP",
|
|
"protocol_port": 80,
|
|
"default_pool": {
|
|
"name": "rr_pool",
|
|
"protocol": "HTTP",
|
|
"lb_algorithm": "ROUND_ROBIN",
|
|
"healthmonitor": {
|
|
"type": "HTTP",
|
|
"delay": "3",
|
|
"expected_codes": "200,201,202",
|
|
"http_method": "GET",
|
|
"max_retries": 2,
|
|
"timeout": 1,
|
|
"url_path": "/index.html"
|
|
},
|
|
"members": [
|
|
{
|
|
"address": "192.0.2.16",
|
|
"protocol_port": 80
|
|
},
|
|
{
|
|
"address": "192.0.2.19",
|
|
"protocol_port": 80
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "https_listener",
|
|
"protocol": "HTTPS",
|
|
"protocol_port": 443,
|
|
"default_pool": {
|
|
"name": "https_pool"
|
|
}
|
|
},
|
|
{
|
|
"name": "redirect_listener",
|
|
"protocol": "HTTP",
|
|
"protocol_port": 8080,
|
|
"l7policies": [
|
|
{
|
|
"action": "REDIRECT_TO_URL",
|
|
"name": "redirect_policy",
|
|
"redirect_url": "https://www.example.com/",
|
|
"admin_state_up": true
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"pools": [
|
|
{
|
|
"name": "https_pool",
|
|
"protocol": "HTTPS",
|
|
"lb_algorithm": "ROUND_ROBIN",
|
|
"healthmonitor": {
|
|
"type": "HTTPS",
|
|
"delay": "3",
|
|
"max_retries": 2,
|
|
"timeout": 1
|
|
},
|
|
"members": [
|
|
{
|
|
"address": "192.0.2.51",
|
|
"protocol_port": 80
|
|
},
|
|
{
|
|
"address": "192.0.2.52",
|
|
"protocol_port": 80
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"vip_subnet_id": "d4af86e1-0051-488c-b7a0-527f97490c9a",
|
|
"vip_address": "203.0.113.50",
|
|
"provider": "octavia",
|
|
"name": "best_load_balancer",
|
|
"vip_qos_policy_id": "ec4f78ca-8da8-4e99-8a1a-e3b94595a7a3"
|
|
}
|
|
}
|