diff options
author | shrikantawachar <shrikant.awachar@amdocs.com> | 2017-10-13 19:57:30 +0530 |
---|---|---|
committer | shrikantawachar <shrikant.awachar@amdocs.com> | 2017-10-13 19:57:35 +0530 |
commit | 15a6fa057331a2060b9446426cf91a99294e41a1 (patch) | |
tree | 632f701fdcc3c61baad136eec6bea3226b38fb47 /openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/groupNameParameter/inputfiles | |
parent | c4c4e2869573534bbf8154ff4b5aad3a87126c33 (diff) |
Refactoring of module in onboarding
Removed ATT modules.
Change-Id: I9f97b92a1f80483c3422b9b5e6643fdad1bb881d
Issue-ID: SDC-456
Signed-off-by: shrikantawachar <shrikant.awachar@amdocs.com>
Diffstat (limited to 'openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/groupNameParameter/inputfiles')
5 files changed, 0 insertions, 687 deletions
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/groupNameParameter/inputfiles/MANIFEST.json b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/groupNameParameter/inputfiles/MANIFEST.json deleted file mode 100644 index 96b8ed1d27..0000000000 --- a/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/groupNameParameter/inputfiles/MANIFEST.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "name": "vIPR", - "description": "HOT template to create vIPR", - "data": [ - { - "file": "vIPR-ATM-Base.yaml", - "type": "HEAT", - "isBase": "true", - "data": [ - { - "file": "vIPR-ATM-Base.env", - "type": "HEAT_ENV" - } - ] - }, - { - "file": "vIPR-ATM-Instance.yaml", - "type": "HEAT", - "isBase": "false", - "data": [ - { - "file": "vIPR-ATM-Instance.env", - "type": "HEAT_ENV" - } - ] - } - ] -}
\ No newline at end of file diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/groupNameParameter/inputfiles/vIPR-ATM-Base.env b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/groupNameParameter/inputfiles/vIPR-ATM-Base.env deleted file mode 100644 index acf1ac5d03..0000000000 --- a/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/groupNameParameter/inputfiles/vIPR-ATM-Base.env +++ /dev/null @@ -1,14 +0,0 @@ -parameters: - vipr_atm_service_left_ip_prefix: 10.254.3.0 - vipr_atm_service_left_ip_prefix_len: 24 - - vipr_atm_service_right_ip_prefix: 10.254.4.0 - vipr_atm_service_right_ip_prefix_len: 24 - - vipr_atm_ha_one_cidr: 192.168.35.0/29 - vipr_atm_ha_two_cidr: 192.168.35.8/29 - - vnf_id: '1234' - vnf_name: 'RD3TX100vfw' - vf_module_id: '5678' - diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/groupNameParameter/inputfiles/vIPR-ATM-Base.yaml b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/groupNameParameter/inputfiles/vIPR-ATM-Base.yaml deleted file mode 100644 index fd70465878..0000000000 --- a/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/groupNameParameter/inputfiles/vIPR-ATM-Base.yaml +++ /dev/null @@ -1,318 +0,0 @@ -heat_template_version: 2015-04-30 - -description: > - HOT template to create the vIPR-ATM firwall service template and instance. - This template creates the following - - Two service virtual networks for each side (left and right) of the vIPR-ATM firewalls - - Two virtual networks for high availability between the vIPR-ATM firewalls - - A Contrail Service Template for the vIPR-ATM service - - A Contrail Service Instance for the vIPR-ATM service - - The firewall virtual machines connected to these created networks and managed by the - vIPR-ATM service instance will be created by the vIPR-ATM-Instance.yaml HOT template. - - Network Policy that includes the vIPR-ATM service instance will be created by client - specific HOT templates or Contrail APIs. - -parameters: - vipr_atm_service_left_ip_prefix: - type: string - constraints: - - allowed_pattern: ^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$ - description: A valid IPv4 dot quad IP address. - description: Left vIPR-ATM service network IP address prefix - vipr_atm_service_left_ip_prefix_len: - type: number - constraints: - - range: { min: 0, max: 32 } - description: a valid IPv4 prefix value from 0 to 32. - description: Left vIPR-ATM service network IP address prefix length - - vipr_atm_service_right_ip_prefix: - type: string - constraints: - - allowed_pattern: ^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$ - description: A valid IPv4 dot quad IP address. - description: Right vIPR-ATM service network IP address prefix - vipr_atm_service_right_ip_prefix_len: - type: number - constraints: - - range: { min: 0, max: 32 } - description: a valid IPv4 prefix value from 0 to 32. - description: Right vIPR-ATM service network IP address prefix length - - vipr_atm_ha_one_cidr: - type: string - constraints: - - allowed_pattern: ^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\/(?:3[0-2]|[12]?[0-9])$ - description: A valid IPv4 CIDR (dot quad IP address / previx value 0 to 32). - description: vIPR-ATM private High Availability Network One IP address CIDR - - vipr_atm_ha_two_cidr: - type: string - constraints: - - allowed_pattern: ^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\/(?:3[0-2]|[12]?[0-9])$ - description: A valid IPv4 CIDR (dot quad IP address / previx value 0 to 32). - description: vIPR-ATM private High Availability Network Two IP address CIDR - - vnf_id: - type: string - description: Unique ID for this VNF instance - vnf_name: - type: string - description: Unique name for this VNF instance - vf_module_id: - type: string - description: Unique ID for the VF Module instance - -resources: - vIPR_ATM_Service_Left: - type: OS::ContrailV2::VirtualNetwork - properties: - name: - str_replace: - template: VNF_NAME_VIPR_ATM_SERVICE_LEFT_NETWORK - params: - VNF_NAME: { get_param: vnf_name } - network_ipam_refs: ["default-domain:default-project:default-network-ipam"] - network_ipam_refs_data: - [{ - network_ipam_refs_data_ipam_subnets: - [{ - network_ipam_refs_data_ipam_subnets_subnet: - { - network_ipam_refs_data_ipam_subnets_subnet_ip_prefix: - { - get_param: vipr_atm_service_left_ip_prefix - }, - network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len: - { - get_param: vipr_atm_service_left_ip_prefix_len - }, - }, - }] - }] - - vIPR_ATM_Service_Right: - type: OS::ContrailV2::VirtualNetwork - properties: - name: - str_replace: - template: VNF_NAME_VIPR_ATM_SERVICE_RIGHT_NETWORK - params: - VNF_NAME: { get_param: vnf_name } - network_ipam_refs: ["default-domain:default-project:default-network-ipam"] - network_ipam_refs_data: - [{ - network_ipam_refs_data_ipam_subnets: - [{ - network_ipam_refs_data_ipam_subnets_subnet: - { - network_ipam_refs_data_ipam_subnets_subnet_ip_prefix: - { - get_param: vipr_atm_service_right_ip_prefix - }, - network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len: - { - get_param: vipr_atm_service_right_ip_prefix_len - }, - }, - }] - }] - - vIPR_ATM_Ha_One: - type: OS::Neutron::Net - properties: - name: - str_replace: - template: VNF_NAME_VIPR_ATM_HA_ONE_NETWORK - params: - VNF_NAME: { get_param: vnf_name } - - vIPR_ATM_Ha_One_Subnet: - type: OS::Neutron::Subnet - depends_on: - - vIPR_ATM_Ha_One - properties: - name: - str_replace: - template: NET_NAME_SUBNET - params: - NET_NAME: { get_attr: [ vIPR_ATM_Ha_One, name ] } - network: { get_resource: vIPR_ATM_Ha_One } - cidr: { get_param: vipr_atm_ha_one_cidr } - enable_dhcp: False - gateway_ip: null - - vIPR_ATM_Ha_Two: - type: OS::Neutron::Net - properties: - name: - str_replace: - template: VNF_NAME_VIPR_ATM_HA_TWO_NETWORK - params: - VNF_NAME: { get_param: vnf_name } - - vIPR_ATM_Ha_Two_Subnet: - type: OS::Neutron::Subnet - depends_on: - - vIPR_ATM_Ha_Two - properties: - name: - str_replace: - template: NET_NAME_SUBNET - params: - NET_NAME: { get_attr: [ vIPR_ATM_Ha_Two, name ] } - network: { get_resource: vIPR_ATM_Ha_Two } - cidr: { get_param: vipr_atm_ha_two_cidr } - enable_dhcp: False - gateway_ip: null - - vIPR_ATM_Service_Template: - type: OS::ContrailV2::ServiceTemplate - properties: - name: - str_replace: - template: VNF_NAME_VIPR_ATM_SERVICE_TEMPLATE - params: - VNF_NAME: { get_param: vnf_name } - service_template_properties: - { - service_template_properties_version: 2, - service_template_properties_service_mode: transparent, - service_template_properties_service_type: firewall, - service_template_properties_service_virtualization_type: virtual-machine, - service_template_properties_interface_type: - [ - { - service_template_properties_interface_type_service_interface_type: Left, - service_template_properties_interface_type_shared_ip: True, - }, - { - service_template_properties_interface_type_service_interface_type: Right, - service_template_properties_interface_type_shared_ip: True, - } - ], - } - domain: default-domain - - vIPR_ATM_Service_Instance: - type: OS::ContrailV2::ServiceInstance - depends_on: - - vIPR_ATM_Service_Left - - vIPR_ATM_Service_Right - - vIPR_ATM_Service_Template - properties: - name: - str_replace: - template: VNF_NAME_VIPR_ATM_SERVICE_INSTANCE - params: - VNF_NAME: { get_param: vnf_name } - service_template_refs: [{ get_resource: vIPR_ATM_Service_Template }] - service_instance_properties: - { - service_instance_properties_ha_mode: active-active, - service_instance_properties_left_virtual_network: - { - list_join: [':', { get_attr: [ vIPR_ATM_Service_Left, fq_name ] } ] - }, - service_instance_properties_right_virtual_network: - { - list_join: [':', { get_attr: [ vIPR_ATM_Service_Right, fq_name ] } ] - }, - } - - # Management (OAM) Port Security Group to allow ingress SSH - vIPR_ATM_OAM_SG: - type: OS::Neutron::SecurityGroup - properties: - name: - str_replace: - template: VNF_NAME_VIPR_ATM_OAM_SG - params: - VNF_NAME: { get_param: vnf_name } - rules: - - remote_ip_prefix: 0.0.0.0/0 - protocol: tcp - port_range_min: 22 - port_range_max: 22 - - remote_ip_prefix: 0.0.0.0/0 - protocol: tcp - port_range_min: 443 - port_range_max: 443 - - remote_ip_prefix: 0.0.0.0/0 - protocol: tcp - port_range_min: 3978 - port_range_max: 3978 - - remote_ip_prefix: 0.0.0.0/0 - protocol: icmp - - vIPR_ATM_HA_ONE_SG: - type: OS::Neutron::SecurityGroup - properties: - name: - str_replace: - template: VNF_NAME_VIPR_ATM_HA_ONE_SG - params: - VNF_NAME: { get_param: vnf_name } - rules: - - remote_mode: remote_group_id - - vIPR_ATM_HA_TWO_SG: - type: OS::Neutron::SecurityGroup - properties: - name: - str_replace: - template: VNF_NAME_VIPR_ATM_HA_TWO_SG - params: - VNF_NAME: { get_param: vnf_name } - rules: - - remote_mode: remote_group_id - - vIPR_ATM_Server_Group: - type: OS::Nova::ServerGroup - properties: - name: - str_replace: - template: VNF_NAME_VIPR_ATM_SERVER_GROUP - params: - VNF_NAME: { get_param: vnf_name } - policies: - - anti-affinity - -outputs: - vipr_atm_contrail_service_instance_fqdn: - description: The FQDN for the Contrail Service Instance that is needed to create tenant OAM network policy to service change through the vIPR-ATM firewall. - value: { list_join: [':', { get_attr: [ vIPR_ATM_Service_Instance, fq_name ] } ] } - - vipr_atm_service_left_fqdn: - description: The FQDN for the vIPR-ATM Service Left network. - value: { list_join: [':', { get_attr: [ vIPR_ATM_Service_Left, fq_name ] } ] } - - vipr_atm_service_right_fqdn: - description: The FQDN for the vIPR-ATM Service Right network. - value: { list_join: [':', { get_attr: [ vIPR_ATM_Service_Right, fq_name ] } ] } - - vipr_atm_ha_one_id: - description: The UUID for the vIPR-ATM HA One network. - value: { get_resource: vIPR_ATM_Ha_One } - - vipr_atm_ha_two_id: - description: The UUID for the vIPR-ATM HA Two network. - value: { get_resource: vIPR_ATM_Ha_Two } - - vipr_atm_oam_net_security_groups: - description: The list of OpenStack Security Groups to appliy to the vIPR-ATM-Instance\'s OAM network. - value: [ { get_resource: vIPR_ATM_OAM_SG } ] - - vipr_atm_ha_one_security_groups: - description: The list of OpenStack Security Groups to appliy to the vIPR-ATM-Instance\'s HA One network. - value: [ { get_resource: vIPR_ATM_HA_ONE_SG } ] - - vipr_atm_ha_two_security_groups: - description: The list of OpenStack Security Groups to appliy to the vIPR-ATM-Instance\'s HA Two network. - value: [ { get_resource: vIPR_ATM_HA_TWO_SG } ] - - vipr_atm_server_group: - description: The UUID for the vIPR-ATM OpenStack Server Group - value: { get_resource: vIPR_ATM_Server_Group } diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/groupNameParameter/inputfiles/vIPR-ATM-Instance.env b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/groupNameParameter/inputfiles/vIPR-ATM-Instance.env deleted file mode 100644 index 77e8b8630a..0000000000 --- a/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/groupNameParameter/inputfiles/vIPR-ATM-Instance.env +++ /dev/null @@ -1,28 +0,0 @@ -parameters: - oam_net_id: 1ac9d738-f545-413a-a9a2-b44309edc511 - vipr_atm_oam_net_security_groups: [ "c2369210-d154-4e4a-984d-047674beb5da" ] - - vipr_atm_contrail_service_instance_fqdn: default-domain:vIPR-ATM:vIPR-ATM-service-instance - - vipr_atm_service_left_fqdn: default-domain:vIPR-ATM:vIPR-ATM-service-left - vipr_atm_service_right_fqdn: default-domain:vIPR-ATM:vIPR-ATM-service-right - - vipr_atm_ha_one_id: 4abaafc8-b8af-40b9-b0d0-32bd91f958ee - vipr_atm_ha_one_ip_0: 192.168.35.1 - vipr_atm_ha_one_security_groups: [ "cbf8049e-69e8-48c3-a06f-255634391403" ] - - vipr_atm_ha_two_id: b75e27cf-452f-48ef-b107-8777e645c22d - vipr_atm_ha_two_ip_0: 192.168.35.9 - vipr_atm_ha_two_security_groups: [ "29e29a4a-b45d-42c2-ac14-b12a70036ae6" ] - - vipr_atm_server_group: 885dbf7f-fcb2-42d2-a694-a5930ce35b71 - - vipr_atm_name_0: zrcs1cctvpr001 - vipr_atm_image_name: vipr-atm-pan7.1 - vipr_atm_flavor_name: m1.vipr-atm-pan - vipr_atm_valet_eg_0: CORE_INFRASTRUCTURE_VNFs - availability_zone_0: 'nova' - - vnf_id: '1234' - vnf_name: 'RD3TX100vfw' - vf_module_id: '5678' diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/groupNameParameter/inputfiles/vIPR-ATM-Instance.yaml b/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/groupNameParameter/inputfiles/vIPR-ATM-Instance.yaml deleted file mode 100644 index ea3b8ab659..0000000000 --- a/openecomp-be/lib/openecomp-sdc-translator-lib/att-sdc-translator-impl/src/test/resources/mock/services/heattotosca/attValetGroupAssignment/groupNameParameter/inputfiles/vIPR-ATM-Instance.yaml +++ /dev/null @@ -1,299 +0,0 @@ -heat_template_version: 2015-04-30 - -description: > - HOT template to create a vIPR-ATM firwall service instance. - This template creates the following - - Contrail Port Tuple for this firwall service instance - - Virtual machine interfaces and IP addresses attached to the two - service virtual networks. These virtual machine interfaces will be used - by the vIPR firewall service instance - - Neutron ports for OAM, HA0, and HA1 networks - - OS::Nova::Server with the created virtual machine interface and ports. This - is the firewall service instance virtual machine. - -parameters: - oam_net_id: - type: string - constraints: - - custom_constraint: neutron.network - description: This network must currently exist. - description: Neutron UUID for the managemnet network name of the vIPR-ATM firewall - vipr_atm_oam_net_security_groups: - type: comma_delimited_list - description: List of the security group to apply to the vIPR-ATM firewall management port - - vipr_atm_service_left_fqdn: - type: string - constraints: - - allowed_pattern: ^(?:[^:]{1,64}:){2}(?:[^:]{1,255})$ - description: | - A valid Contrail FQDN that contains three parts seperated by ':'. - The first two part are 1 to 64 characters long and must not contain ':'. - The third part is 1 to 255 characters long and must not contain ':'. - description: FQDN of the Left service network for the vIPR-ATM firewall - - vipr_atm_service_right_fqdn: - type: string - constraints: - - allowed_pattern: ^(?:[^:]{1,64}:){2}(?:[^:]{1,255})$ - description: | - A valid Contrail FQDN that contains three parts seperated by ':'. - The first two part are 1 to 64 characters long and must not contain ':'. - The third part is 1 to 255 characters long and must not contain ':'. - description: FQDN of the Right service network for the vIPR-ATM firewall - - vipr_atm_ha_one_id: - type: string - constraints: - - custom_constraint: neutron.network - description: This network must currently exist. - description: Neutron UUID of the first high availability network for the vIPR-ATM firewall - vipr_atm_ha_one_ip_0: - type: string - constraints: - - allowed_pattern: ^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$ - description: A valid IPv4 dot quad IP address. - description: Fixed IP to apply to the vIPR-ATM firewall ha0 port - vipr_atm_ha_one_security_groups: - type: comma_delimited_list - description: List of the security group to apply to the vIPR-ATM firewall ha0 port - - vipr_atm_ha_two_id: - type: string - constraints: - - custom_constraint: neutron.network - description: This network must currently exist. - description: Neutron UUID of the second high availability network for the vIPR-ATM firewal - vipr_atm_ha_two_ip_0: - type: string - constraints: - - allowed_pattern: ^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$ - description: A valid IPv4 dot quad IP address. - description: Fixed IP to apply to the vIPR-ATM firewall ha1 port - vipr_atm_ha_two_security_groups: - type: comma_delimited_list - description: List of the security group to apply to the vIPR-ATM firewall ha1 port - - vipr_atm_contrail_service_instance_fqdn: - type: string - constraints: - - allowed_pattern: ^(?:[^:]{1,64}:){2}(?:[^:]{1,255})$ - description: | - A valid Contrail FQDN that contains three parts seperated by ':'. - The first two part are 1 to 64 characters long and must not contain ':'. - The third part is 1 to 255 characters long and must not contain ':'. - description: FQDN of the vIPR-ATM firewall Contrail service instance for the port tuple - - vipr_atm_name_0: - type: string - constraints: - - length: { min: 1, max: 255 } - description: A string with length of at least 1 and less than 255. - description: Name of the vIPR-ATM firewall virtual machine - vipr_atm_image_name: - type: string - constraints: - - custom_constraint: glance.image - description: This image must currently exist. - description: Image name of the vIPR-ATM firewall virtual machine - vipr_atm_flavor_name: - type: string - constraints: - - custom_constraint: nova.flavor - description: This flavor must currently exist. - description: Flavor for the vIPR-ATM firewall virtual machine - vipr_atm_server_group: - type: string - constraints: - - length: { min: 1, max: 255 } - description: A string with length of at least 1 and less than 255. - description: Server Group with anti-affinity policy for the vIPR-ATM firewall virtual machine - vipr_atm_valet_eg_0: - type: string - constraints: - - length: { min: 1, max: 255 } - description: A string with length of at least 1 and less than 255. - description: The Valet 1.0 Exclusivity Group for the vIPR-ATM firewall virtual machine - availability_zone_0: - type: string - constraints: - - length: { min: 1, max: 255 } - description: A string with length of at least 1 and less than 255. - description: Availability Zone for the vIPR-ATM firewall virtual machine - - vnf_id: - type: string - constraints: - - length: { min: 1, max: 255 } - description: A string with length of at least 1 and less than 255. - description: Unique ID for this VF instance - vnf_name: - type: string - constraints: - - length: { min: 1, max: 255 } - description: A string with length of at least 1 and less than 255. - description: Unique Name for this VF instance - vf_module_id: - type: string - constraints: - - length: { min: 1, max: 255 } - description: A string with length of at least 1 and less than 255. - description: Unique ID for the VF Module instance - -resources: - # Create the Port Tuple - vIPR_ATM_RPT: - type: OS::ContrailV2::PortTuple - properties: - name: - str_replace: - template: VM_NAME_PORT_TUPLE - params: - VM_NAME: { get_param: vipr_atm_name_0 } - service_instance: { get_param: vipr_atm_contrail_service_instance_fqdn } - - # Left Port (Virtual Machine Interface) - vIPR_ATM_Left_RVMI: - type: OS::ContrailV2::VirtualMachineInterface - depends_on: [ vIPR_ATM_RPT ] - properties: - name: - str_replace: - template: VM_NAME_PORT_3 - params: - VM_NAME: { get_param: vipr_atm_name_0 } - virtual_machine_interface_properties: - { - virtual_machine_interface_properties_service_interface_type: 'left' - } - port_tuple_refs: [{ get_resource: vIPR_ATM_RPT }] - virtual_network_refs: [{ get_param: vipr_atm_service_left_fqdn }] - - # Right Port (Virtual Machine Interface) - vIPR_ATM_Right_RVMI: - type: OS::ContrailV2::VirtualMachineInterface - depends_on: [ vIPR_ATM_RPT ] - properties: - name: - str_replace: - template: VM_NAME_PORT_4 - params: - VM_NAME: { get_param: vipr_atm_name_0 } - virtual_machine_interface_properties: - { - virtual_machine_interface_properties_service_interface_type: 'right' - } - port_tuple_refs: [{ get_resource: vIPR_ATM_RPT }] - virtual_network_refs: [{ get_param: vipr_atm_service_right_fqdn }] - - # Left Instance IP - vIPR_ATM_Left_RII: - type: OS::ContrailV2::InstanceIp - depends_on: [ vIPR_ATM_Left_RVMI ] - properties: - name: - str_replace: - template: VM_NAME_INSTANCE_IP_LEFT - params: - VM_NAME: { get_param: vipr_atm_name_0 } - virtual_machine_interface_refs: [{ get_resource: vIPR_ATM_Left_RVMI }] - virtual_network_refs: [{ get_param: vipr_atm_service_left_fqdn }] - - # Right Instance IP - vIPR_ATM_Right_RII: - type: OS::ContrailV2::InstanceIp - depends_on: [ vIPR_ATM_Right_RVMI ] - properties: - name: - str_replace: - template: VM_NAME_INSTANCE_IP_RIGHT - params: - VM_NAME: { get_param: vipr_atm_name_0 } - virtual_machine_interface_refs: [{ get_resource: vIPR_ATM_Right_RVMI }] - virtual_network_refs: [{ get_param: vipr_atm_service_right_fqdn }] - - # OAM Network Port (not part of Port Tuple) - vIPR_ATM_OAM_0_Port: - type: OS::Neutron::Port - properties: - name: - str_replace: - template: VM_NAME_PORT_0 - params: - VM_NAME: { get_param: vipr_atm_name_0 } - network: { get_param: oam_net_id } - security_groups: { get_param: vipr_atm_oam_net_security_groups } - - # HA One Port (not part of Port Tuple) - vIPR_ATM_Ha_One_0_Port: - type: OS::Neutron::Port - properties: - name: - str_replace: - template: VM_NAME_PORT_1 - params: - VM_NAME: { get_param: vipr_atm_name_0 } - network: { get_param: vipr_atm_ha_one_id } - fixed_ips: [ { "ip_address": { get_param: vipr_atm_ha_one_ip_0 } } ] - security_groups: { get_param: vipr_atm_ha_one_security_groups } - - # HA Two Port (not part of Port Tuple) - vIPR_ATM_Ha_Two_0_Port: - type: OS::Neutron::Port - properties: - name: - str_replace: - template: VM_NAME_PORT_2 - params: - VM_NAME: { get_param: vipr_atm_name_0 } - network: { get_param: vipr_atm_ha_two_id } - fixed_ips: [ { "ip_address": { get_param: vipr_atm_ha_two_ip_0 } } ] - security_groups: { get_param: vipr_atm_ha_two_security_groups } - - # Valet Exclusivity Group - vIPR_ATM_Valet_EG_0: - type: ATT::Valet::GroupAssignment - properties: - group_name: { get_param: vipr_atm_valet_eg_0 } - group_type: exclusivity - level: host - resources: - - { get_resource: vIPR_ATM_Firewall } - - # Create the VM and bind the five ports to it - # vIPR_ATM_Firewall_Cloud_Config: - # type: OS::Heat::CloudConfig - # properties: - # cloud_config: - # password: ubuntu - # chpasswd: { expire: False } - # ssh_pwauth: True - # manage_etc_hosts: true - - vIPR_ATM_Firewall: - type: OS::Nova::Server - depends_on: - - vIPR_ATM_Left_RII - - vIPR_ATM_Right_RII - - vIPR_ATM_OAM_0_Port - - vIPR_ATM_Ha_One_0_Port - - vIPR_ATM_Ha_Two_0_Port - properties: - name: { get_param: vipr_atm_name_0 } - image: { get_param: vipr_atm_image_name } - flavor: { get_param: vipr_atm_flavor_name } - availability_zone: { get_param: availability_zone_0 } - scheduler_hints: - group: { get_param: vipr_atm_server_group } - networks: - - port: { get_resource: vIPR_ATM_OAM_0_Port } - - port: { get_resource: vIPR_ATM_Ha_One_0_Port } - - port: { get_resource: vIPR_ATM_Ha_Two_0_Port } - - port: { get_resource: vIPR_ATM_Left_RVMI } - - port: { get_resource: vIPR_ATM_Right_RVMI } - metadata: - vnf_id: { get_param: vnf_id } - vnf_name: { get_param: vnf_name } - vf_module_id: { get_param: vf_module_id } -# user_data_format: RAW -# user_data: { get_resource: vIPR_ATM_Firewall_Cloud_Config } |