aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--heat/vLB/base_vlb_openstack.env3
-rw-r--r--heat/vLB/base_vlb_openstack.yaml80
-rw-r--r--heat/vLB/dnsscaling_openstack.yaml23
-rw-r--r--heat/vLB/packet_gen_vlb_openstack.env1
-rw-r--r--heat/vLB/packet_gen_vlb_openstack.yaml18
-rw-r--r--vnfs/vLB/scripts/v_dns_install.sh7
6 files changed, 31 insertions, 101 deletions
diff --git a/heat/vLB/base_vlb_openstack.env b/heat/vLB/base_vlb_openstack.env
index 87f77d72..afcfccfd 100644
--- a/heat/vLB/base_vlb_openstack.env
+++ b/heat/vLB/base_vlb_openstack.env
@@ -6,12 +6,9 @@ parameters:
onap_private_net_id: PUT THE ONAP PRIVATE NETWORK NAME HERE
onap_private_subnet_id: PUT THE ONAP PRIVATE NETWORK NAME HERE
vlb_private_net_cidr: 192.168.10.0/24
- vlb_private_net_id_for_floating: zdfw1lb01_private_for_floating
- vlb_private_net_cidr_for_floating: 192.168.30.0/24
onap_private_net_cidr: PUT THE ONAP NETWORK CIDR HERE
vlb_private_ip_0: 192.168.10.111
vlb_private_ip_1: ASSIGN A PRIVATE ADDRESS IN THE ONAP NETWORK SPACE TO THE VLB
- vlb_private_ip_2_for_floating: ASSIGN A PRIVATE ADDRESS IN THE ONAP NETWORK SPACE TO THE VLB
vdns_private_ip_0: 192.168.10.211
vdns_private_ip_1: ASSIGN A PRIVATE ADDRESS IN THE ONAP NETWORK SPACE TO THE VDNS
vlb_name_0: zdfw1lb01lb01
diff --git a/heat/vLB/base_vlb_openstack.yaml b/heat/vLB/base_vlb_openstack.yaml
index 672c44c9..3f098576 100644
--- a/heat/vLB/base_vlb_openstack.yaml
+++ b/heat/vLB/base_vlb_openstack.yaml
@@ -49,10 +49,6 @@ parameters:
type: string
label: vLoadBalancer private network name or ID
description: Private network that connects vLoadBalancer with vDNSs
- vlb_private_net_id_for_floating:
- type: string
- label: vLoadBalancer private network name or ID
- description: Private network that connects vLoadBalancer with the public OpenStack network using floating IP
onap_private_net_id:
type: string
label: ECOMP management network name or ID
@@ -65,10 +61,6 @@ parameters:
type: string
label: vLoadBalancer private network CIDR
description: The CIDR of the vLoadBalancer private network
- vlb_private_net_cidr_for_floating:
- type: string
- label: vLoadBalancer private network CIDR
- description: The CIDR of the vLoadBalancer private network that connects vLoadBalancer with the public OpenStack network using floating IP
onap_private_net_cidr:
type: string
label: ONAP private network CIDR
@@ -81,10 +73,6 @@ parameters:
type: string
label: vLoadBalancer private IP address towards the ONAP management network
description: Private IP address that is assigned to the vLoadBalancer to communicate with ONAP components
- vlb_private_ip_2_for_floating:
- type: string
- label: vLoadBalancer private IP address towards the OpenStack public network via floating IP
- description: vLoadBalancer private IP address towards the OpenStack public network via floating IP
vdns_private_ip_0:
type: string
label: vDNS private IP address towards the private network
@@ -182,26 +170,6 @@ resources:
name: { get_param: vlb_private_net_id }
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_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 }
-# subnet_id: { get_param: onap_private_subnet_id }
vlb_private_0_port:
type: OS::Neutron::Port
@@ -214,19 +182,6 @@ resources:
properties:
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_floating_ip:
-# type: OS::Neutron::FloatingIP
-# properties:
-# floating_network_id: { get_param: public_net_id }
-# port_id: { get_resource: vlb_private_1_port }
-# port_id: { get_resource: vlb_private_2_port_for_floating }
vlb_0:
type: OS::Nova::Server
@@ -236,9 +191,6 @@ resources:
name: { get_param: vlb_name_0 }
key_name: { get_resource: my_keypair }
networks:
-# - port: { get_resource: vlb_private_2_port_for_floating }
-# - port: { get_resource: vlb_private_0_port }
-# - port: { get_resource: vlb_private_1_port }
- network: { get_param: public_net_id }
- port: { get_resource: vlb_private_0_port }
- port: { get_resource: vlb_private_1_port }
@@ -249,14 +201,13 @@ 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 }
- __repo_url_artifacts__ : { get_param: repo_url_artifacts }
- __demo_artifacts_version__ : { get_param: demo_artifacts_version }
- __install_script_version__ : { get_param: install_script_version }
- __cloud_env__ : { get_param: cloud_env }
+ __repo_url_blob__: { get_param: repo_url_blob }
+ __repo_url_artifacts__: { get_param: repo_url_artifacts }
+ __demo_artifacts_version__: { get_param: demo_artifacts_version }
+ __install_script_version__: { get_param: install_script_version }
+ __cloud_env__: { get_param: cloud_env }
template: |
#!/bin/bash
@@ -264,7 +215,6 @@ 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
@@ -292,12 +242,6 @@ resources:
network: { get_param: onap_private_net_id }
fixed_ips: [{"subnet": { get_param: onap_private_subnet_id }, "ip_address": { get_param: vdns_private_ip_1 }}]
- vdns_floating_ip:
- type: OS::Neutron::FloatingIP
- properties:
- floating_network_id: { get_param: public_net_id }
- port_id: { get_resource: vdns_private_1_port }
-
vdns_0:
type: OS::Nova::Server
properties:
@@ -314,14 +258,15 @@ resources:
user_data:
str_replace:
params:
- __lb_oam_int__ : { get_param: vlb_private_ip_1 }
+ __lb_oam_int__: { get_param: vlb_private_ip_1 }
__lb_private_ipaddr__: { get_param: vlb_private_ip_0 }
__local_private_ipaddr__: { get_param: vdns_private_ip_0 }
- __repo_url_blob__ : { get_param: repo_url_blob }
- __repo_url_artifacts__ : { get_param: repo_url_artifacts }
- __demo_artifacts_version__ : { get_param: demo_artifacts_version }
- __install_script_version__ : { get_param: install_script_version }
- __cloud_env__ : { get_param: cloud_env }
+ __oam_private_ipaddr__: { get_param: vdns_private_ip_1 }
+ __repo_url_blob__: { get_param: repo_url_blob }
+ __repo_url_artifacts__: { get_param: repo_url_artifacts }
+ __demo_artifacts_version__: { get_param: demo_artifacts_version }
+ __install_script_version__: { get_param: install_script_version }
+ __cloud_env__: { get_param: cloud_env }
template: |
#!/bin/bash
@@ -330,6 +275,7 @@ resources:
echo "__lb_oam_int__" > /opt/config/lb_oam_int.txt
echo "__lb_private_ipaddr__" > /opt/config/lb_private_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
echo "__repo_url_artifacts__" > /opt/config/repo_url_artifacts.txt
echo "__demo_artifacts_version__" > /opt/config/demo_artifacts_version.txt
diff --git a/heat/vLB/dnsscaling_openstack.yaml b/heat/vLB/dnsscaling_openstack.yaml
index b9dc41a2..4313c7bb 100644
--- a/heat/vLB/dnsscaling_openstack.yaml
+++ b/heat/vLB/dnsscaling_openstack.yaml
@@ -151,12 +151,6 @@ resources:
network: { get_param: onap_private_net_id }
fixed_ips: [{"subnet": { get_param: onap_private_subnet_id }, "ip_address": { get_param: vdns_private_ip_1 }}]
- vdns_floating_ip:
- type: OS::Neutron::FloatingIP
- properties:
- floating_network_id: { get_param: public_net_id }
- port_id: { get_resource: vdns_private_1_port }
-
vdns_0:
type: OS::Nova::Server
properties:
@@ -165,21 +159,23 @@ resources:
name: { get_param: vdns_name_0 }
key_name: { get_resource: my_keypair }
networks:
- - port: { get_resource: vdns_private_1_port }
+ - network: { get_param: public_net_id }
- port: { get_resource: vdns_private_0_port }
+ - port: { get_resource: vdns_private_1_port }
metadata: {vnf_id: { get_param: vnf_id }, vf_module_id: { get_param: vf_module_id }}
user_data_format: RAW
user_data:
str_replace:
params:
- __lb_oam_int__ : { get_param: vlb_private_ip_1 }
+ __lb_oam_int__: { get_param: vlb_private_ip_1 }
__lb_private_ipaddr__: { get_param: vlb_private_ip_0 }
__local_private_ipaddr__: { get_param: vdns_private_ip_0 }
- __repo_url_blob__ : { get_param: repo_url_blob }
- __repo_url_artifacts__ : { get_param: repo_url_artifacts }
- __demo_artifacts_version__ : { get_param: demo_artifacts_version }
- __install_script_version__ : { get_param: install_script_version }
- __cloud_env__ : { get_param: cloud_env }
+ __oam_private_ipaddr__: { get_param: vdns_private_ip_1 }
+ __repo_url_blob__: { get_param: repo_url_blob }
+ __repo_url_artifacts__: { get_param: repo_url_artifacts }
+ __demo_artifacts_version__: { get_param: demo_artifacts_version }
+ __install_script_version__: { get_param: install_script_version }
+ __cloud_env__: { get_param: cloud_env }
template: |
#!/bin/bash
@@ -188,6 +184,7 @@ resources:
echo "__lb_oam_int__" > /opt/config/lb_oam_int.txt
echo "__lb_private_ipaddr__" > /opt/config/lb_private_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
echo "__repo_url_artifacts__" > /opt/config/repo_url_artifacts.txt
echo "__demo_artifacts_version__" > /opt/config/demo_artifacts_version.txt
diff --git a/heat/vLB/packet_gen_vlb_openstack.env b/heat/vLB/packet_gen_vlb_openstack.env
index 028dd58d..724b0eed 100644
--- a/heat/vLB/packet_gen_vlb_openstack.env
+++ b/heat/vLB/packet_gen_vlb_openstack.env
@@ -2,7 +2,6 @@ parameters:
vpg_image_name: PUT THE IMAGE NAME HERE
vpg_flavor_name: PUT THE FLAVOR NAME HERE
public_net_id: PUT THE NETWORK ID HERE
- vpg_private_ip_0_for_floating: ASSIGN A PRIVATE ADDRESS IN THE ONAP NETWORK SPACE TO THE PACKET GENERATOR
vlb_ipaddr: 135.207.129.131
vpg_name_0: ziad1vdnspg01pg01
onap_private_net_id: PUT THE ONAP PRIVATE NETWORK NAME HERE
diff --git a/heat/vLB/packet_gen_vlb_openstack.yaml b/heat/vLB/packet_gen_vlb_openstack.yaml
index 21fbc90d..d9688075 100644
--- a/heat/vLB/packet_gen_vlb_openstack.yaml
+++ b/heat/vLB/packet_gen_vlb_openstack.yaml
@@ -84,10 +84,6 @@ parameters:
type: string
label: ONAP management sub-network name or ID
description: Private sub-network that connects ONAP component and the VNF
- vpg_private_ip_0_for_floating:
- type: string
- label: vPG private IP address towards the OpenStack public network via floating IP
- description: vPG private IP address towards the OpenStack public network via floating IP
#############
# #
@@ -114,18 +110,6 @@ resources:
public_key: { get_param: pub_key }
save_private_key: false
- vpg_private_0_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: vpg_private_ip_0_for_floating }}]
-
- vpg_floating_ip:
- type: OS::Neutron::FloatingIP
- properties:
- floating_network_id: { get_param: public_net_id }
- port_id: { get_resource: vpg_private_0_port_for_floating }
-
vpg_0:
type: OS::Nova::Server
properties:
@@ -134,7 +118,7 @@ resources:
name: { get_param: vpg_name_0 }
key_name: { get_resource: my_keypair }
networks:
- - port: { get_resource: vpg_private_0_port_for_floating }
+ - network: { get_param: public_net_id }
user_data_format: RAW
user_data:
str_replace:
diff --git a/vnfs/vLB/scripts/v_dns_install.sh b/vnfs/vLB/scripts/v_dns_install.sh
index 5e1d55bf..78c992f8 100644
--- a/vnfs/vLB/scripts/v_dns_install.sh
+++ b/vnfs/vLB/scripts/v_dns_install.sh
@@ -17,7 +17,14 @@ then
echo " address $VDNS_PRIVATE_IP_O" >> /etc/network/interfaces
echo " netmask 255.255.255.0" >> /etc/network/interfaces
+ VDNS_PRIVATE_IP_1=$(cat /opt/config/oam_private_ipaddr.txt)
+ echo "auto eth2" >> /etc/network/interfaces
+ echo "iface eth2 inet static" >> /etc/network/interfaces
+ echo " address $VDNS_PRIVATE_IP_1" >> /etc/network/interfaces
+ echo " netmask 255.255.255.0" >> /etc/network/interfaces
+
ifup eth1
+ ifup eth2
fi
# Download required dependencies