summaryrefslogtreecommitdiffstats
path: root/heat
diff options
context:
space:
mode:
authorMarco Platania <platania@research.att.com>2017-05-17 09:58:50 -0400
committerMarco Platania <platania@research.att.com>2017-05-17 09:58:50 -0400
commit0d0df1dd2beeaed841a2538b95dcc02cd15f98df (patch)
tree2e986a023d6a9fa48d5d1effa42beb7d6ccc34c0 /heat
parent5d2b60d25574ecabff97ec9de22d0ae9d8102f70 (diff)
Testing vLB in OpenStack
Change-Id: I528f6ec3d920cd75d5d916b240ea69cfe96ea169 Signed-off-by: Marco Platania <platania@research.att.com>
Diffstat (limited to 'heat')
-rw-r--r--heat/vLB/base_vlb_openstack.yaml42
1 files changed, 26 insertions, 16 deletions
diff --git a/heat/vLB/base_vlb_openstack.yaml b/heat/vLB/base_vlb_openstack.yaml
index bc8affd1..fe59d7fb 100644
--- a/heat/vLB/base_vlb_openstack.yaml
+++ b/heat/vLB/base_vlb_openstack.yaml
@@ -183,17 +183,24 @@ resources:
network_id: { get_resource: vlb_private_network }
cidr: { get_param: vlb_private_net_cidr }
- vlb_private_network_for_floating:
- type: OS::Neutron::Net
- properties:
- name: { get_param: vlb_private_net_id_for_floating }
+# vlb_private_network_for_floating:
+# type: OS::Neutron::Net
+# properties:
+# name: { get_param: vlb_private_net_id_for_floating }
- vlb_private_subnet_for_floating:
- type: OS::Neutron::Subnet
- properties:
- name: { get_param: vlb_private_net_id_for_floating }
- network_id: { get_resource: vlb_private_network_for_floating }
- cidr: { get_param: vlb_private_net_cidr_for_floating }
+# vlb_private_subnet_for_floating:
+# type: OS::Neutron::Subnet
+# properties:
+# name: { get_param: vlb_private_net_id_for_floating }
+# network_id: { get_resource: vlb_private_network_for_floating }
+# network_id: { get_param: onap_private_net_id }
+# cidr: { get_param: vlb_private_net_cidr_for_floating }
+
+# router_interface:
+# type: OS::Neutron::RouterInterface
+# properties:
+# router_id: d6f7a5c3-8bae-4171-aebd-c53a8c85b2ee
+# subnet_id: { get_resource: vlb_private_subnet_for_floating }
vlb_private_0_port:
type: OS::Neutron::Port
@@ -207,17 +214,18 @@ resources:
network: { get_param: onap_private_net_id }
fixed_ips: [{"subnet": { get_param: onap_private_subnet_id }, "ip_address": { get_param: vlb_private_ip_1 }}]
- vlb_private_2_port_for_floating:
- type: OS::Neutron::Port
- properties:
- network: { get_param: onap_private_net_id }
- fixed_ips: [{"subnet": { get_param: onap_private_subnet_id }, "ip_address": { get_param: vlb_private_ip_2_for_floating }}]
+# vlb_private_2_port_for_floating:
+# type: OS::Neutron::Port
+# properties:
+# network: { get_param: onap_private_net_id }
+# fixed_ips: [{"subnet": { get_param: onap_private_subnet_id }, "ip_address": { get_param: vlb_private_ip_2_for_floating }}]
vlb_floating_ip:
type: OS::Neutron::FloatingIP
properties:
floating_network_id: { get_param: public_net_id }
- port_id: { get_resource: vlb_private_2_port_for_floating }
+ port_id: { get_resource: vlb_private_1_port }
+# port_id: { get_resource: vlb_private_2_port_for_floating }
vlb_0:
type: OS::Nova::Server
@@ -237,6 +245,7 @@ resources:
params:
__dcae_collector_ip__: { get_param: dcae_collector_ip }
__dcae_collector_port__: { get_param: dcae_collector_port }
+ __local_public_ipaddr__: { get_attr: [vlb_floating_ip, floating_ip_address] }
__local_private_ipaddr__: { get_param: vlb_private_ip_0 }
__oam_private_ipaddr__: { get_param: vlb_private_ip_1 }
__repo_url_blob__ : { get_param: repo_url_blob }
@@ -251,6 +260,7 @@ resources:
mkdir /opt/config
echo "__dcae_collector_ip__" > /opt/config/dcae_collector_ip.txt
echo "__dcae_collector_port__" > /opt/config/dcae_collector_port.txt
+ echo "__local_public_ipaddr__" > /opt/config/local_public_ipaddr.txt
echo "__local_private_ipaddr__" > /opt/config/local_private_ipaddr.txt
echo "__oam_private_ipaddr__" > /opt/config/oam_private_ipaddr.txt
echo "__repo_url_blob__" > /opt/config/repo_url_blob.txt