NFP - Added dependencies among the resources

Added depends_on directive for dependencies among the resources
in the haproxy lbaasv2 multiple listerners heat template

Change-Id: I8e19c702049be4677d1e528e95a3428f38c51911
Closes-Bug: 1659346
This commit is contained in:
Rajendra Machani 2017-01-25 21:53:01 +05:30 committed by Subrahmanyam Ongole
parent fd954f26a1
commit 8bae37b05a

View File

@ -38,6 +38,7 @@
"resources": { "resources": {
"monitor": { "monitor": {
"type": "OS::Neutron::LBaaS::HealthMonitor", "type": "OS::Neutron::LBaaS::HealthMonitor",
"depends_on": "pool",
"properties": { "properties": {
"delay": 3, "delay": 3,
"type": "HTTP", "type": "HTTP",
@ -50,6 +51,7 @@
}, },
"pool": { "pool": {
"type": "OS::Neutron::LBaaS::Pool", "type": "OS::Neutron::LBaaS::Pool",
"depends_on": "listener2",
"description": "{'app_port_param_name': 'app_port'}", "description": "{'app_port_param_name': 'app_port'}",
"properties": { "properties": {
"lb_algorithm": "ROUND_ROBIN", "lb_algorithm": "ROUND_ROBIN",
@ -61,6 +63,7 @@
}, },
"pool2": { "pool2": {
"type": "OS::Neutron::LBaaS::Pool", "type": "OS::Neutron::LBaaS::Pool",
"depends_on": "monitor",
"description": "{'app_port_param_name': 'app_port2'}", "description": "{'app_port_param_name': 'app_port2'}",
"properties": { "properties": {
"lb_algorithm": "ROUND_ROBIN", "lb_algorithm": "ROUND_ROBIN",
@ -72,6 +75,7 @@
}, },
"listener": { "listener": {
"type": "OS::Neutron::LBaaS::Listener", "type": "OS::Neutron::LBaaS::Listener",
"depends_on": "loadbalancer",
"properties": { "properties": {
"loadbalancer": { "loadbalancer": {
"get_resource": "loadbalancer" "get_resource": "loadbalancer"
@ -84,6 +88,7 @@
}, },
"listener2": { "listener2": {
"type": "OS::Neutron::LBaaS::Listener", "type": "OS::Neutron::LBaaS::Listener",
"depends_on": "listener",
"properties": { "properties": {
"loadbalancer": { "loadbalancer": {
"get_resource": "loadbalancer" "get_resource": "loadbalancer"