aboutsummaryrefslogtreecommitdiffstats
path: root/tosca/vCPE/infra/base_vcpe_infra_rackspace_tosca.yaml
blob: ddd8432c45732b6a78673e1fb45f510e0d5b6463 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
@media only all and (prefers-color-scheme: dark) {
.highlight .hll { background-color: #49483e }
.highlight .c { color: #75715e } /* Comment */
.highlight .err { color: #960050; background-color: #1e0010 } /* Error */
.highlight .k { color: #66d9ef } /* Keyword */
.highlight .l { color: #ae81ff } /* Literal */
.highlight .n { color: #f8f8f2 } /* Name */
.highlight .o { color: #f92672 } /* Operator */
.highlight .p { color: #f8f8f2 } /* Punctuation */
.highlight .ch { color: #75715e } /* Comment.Hashbang */
.highlight .cm { color: #75715e } /* Comment.Multiline */
.highlight .cp { color: #75715e } /* Comment.Preproc */
.highlight .cpf { color: #75715e } /* Comment.PreprocFile */
.highlight .c1 { color: #75715e } /* Comment.Single */
.highlight .cs { color: #75715e } /* Comment.Special */
.highlight .gd { color: #f92672 } /* Generic.Deleted */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .gi { color: #a6e22e } /* Generic.Inserted */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #75715e } /* Generic.Subheading */
.highlight .kc { color: #66d9ef } /* Keyword.Constant */
.highlight .kd { color: #66d9ef } /* Keyword.Declaration */
.highlight .kn { color: #f92672 } /* Keyword.Namespace */
.highlight .kp { color: #66d9ef } /* Keyword.Pseudo */
.highlight .kr { color: #66d9ef } /* Keyword.Reserved */
.highlight .kt { color: #66d9ef } /* Keyword.Type */
.highlight .ld { color: #e6db74 } /* Literal.Date */
.highlight .m { color: #ae81ff } /* Literal.Number */
.highlight .s { color: #e6db74 } /* Literal.String */
.highlight .na { color: #a6e22e } /* Name.Attribute */
.highlight .nb { color: #f8f8f2 } /* Name.Builtin */
.highlight .nc { color: #a6e22e } /* Name.Class */
.highlight .no { color: #66d9ef } /* Name.Constant */
.highlight .nd { color: #a6e22e } /* Name.Decorator */
.highlight .ni { color: #f8f8f2 } /* Name.Entity */
.highlight .ne { color: #a6e22e } /* Name.Exception */
.highlight .nf { color: #a6e22e } /* Name.Function */
.highlight .nl { color: #f8f8f2 } /* Name.Label */
.highlight .nn { color: #f8f8f2 } /* Name.Namespace */
.highlight .nx { color: #a6e22e } /* Name.Other */
.highlight .py { color: #f8f8f2 } /* Name.Property */
.highlight .nt { color: #f92672 } /* Name.Tag */
.highlight .nv { color: #f8f8f2 } /* Name.Variable */
.highlight .ow { color: #f92672 } /* Operator.Word */
.highlight .w { color: #f8f8f2 } /* Text.Whitespace */
.highlight .mb { color: #ae81ff } /* Literal.Number.Bin */
.highlight .mf { color: #ae81ff } /* Literal.Number.Float */
.highlight .mh { color: #ae81ff } /* Literal.Number.Hex */
.highlight .mi { color: #ae81ff } /* Literal.Number.Integer */
.highlight .mo { color: #ae81ff } /* Literal.Number.Oct */
.highlight .sa { color: #e6db74 } /* Literal.String.Affix */
.highlight .sb { color: #e6db74 } /* Literal.String.Backtick */
.highlight .sc { color: #e6db74 } /* Literal.String.Char */
.highlight .dl { color: #e6db74 } /* Literal.String.Delimiter */
.highlight .sd { color: #e6db74 } /* Literal.String.Doc */
.highlight .s2 { color: #e6db74 } /* Literal.String.Double */
.highlight .se { color: #ae81ff } /* Literal.String.Escape */
.highlight .sh { color: #e6db74 } /* Literal.String.Heredoc */
.highlight .si { color: #e6db74 } /* Literal.String.Interpol */
.highlight .sx { color: #e6db74 } /* Literal.String.Other */
.highlight .sr { color: #e6db74 } /* Literal.String.Regex */
.highlight .s1 { color: #e6db74 } /* Literal.String.Single */
.highlight .ss { color: #e6db74 } /* Literal.String.Symbol */
.highlight .bp { color: #f8f8f2 } /* Name.Builtin.Pseudo */
.highlight .fm { color: #a6e22e } /* Name.Function.Magic */
.highlight .vc { color: #f8f8f2 } /* Name.Variable.Class */
.highlight .vg { color: #f8f8f2 } /* Name.Variable.Global */
.highlight .vi { color: #f8f8f2 } /* Name.Variable.Instance */
.highlight .vm { color: #f8f8f2 } /* Name.Variable.Magic */
.highlight .il { color: #ae81ff } /* Literal.Number.Integer.Long */
}
@media (prefers-color-scheme: light) {
.highlight .hll { background-color: #ffffcc }
.highlight .c { color: #888888 } /* Comment */
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
.highlight .k { color: #008800; font-weight: bold } /* Keyword */
.highlight .ch { color: #888888 } /* Comment.Hashbang */
.highlight .cm { color: #888888 } /* Comment.Multiline */
.highlight .cp { color: #cc0000; font-weight: bold } /* Comment.Preproc */
.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
.highlight .c1 { color: #888888 } /* Comment.Single */
.highlight .cs { color: #cc0000; font-weight: bold; background-color: #fff0f0 } /* Comment.Special */
.highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .gr { color: #aa0000 } /* Generic.Error */
.highlight .gh { color: #333333 } /* Generic.Heading */
.highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
.highlight .go { color: #888888 } /* Generic.Output */
.highlight .gp { color: #555555 } /* Generic.Prompt */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #666666 } /* Generic.Subheading */
.highlight .gt { color: #aa0000 } /* Generic.Traceback */
.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
.highlight .kp { color: #008800 } /* Keyword.Pseudo */
.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
.highlight .kt { color: #888888; font-weight: bold } /* Keyword.Type */
.highlight .m { color: #0000DD; font-weight: bold } /* Literal.Number */
.highlight .s { color: #dd2200; background-color: #fff0f0 } /* Literal.String */
.highlight .na { color: #336699 } /* Name.Attribute */
.highlight .nb { color: #003388 } /* Name.Builtin */
.highlight .nc { color: #bb0066; font-weight: bold } /* Name.Class */
.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
.highlight .nd { color: #555555 } /* Name.Decorator */
.highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */
.highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */
.highlight .nl { color: #336699; font-style: italic } /* Name.Label */
.highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */
.highlight .py { color: #336699; font-weight: bold } /* Name.Property */
.highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */
.highlight .nv { color: #336699 } /* Name.Variable */
.highlight .ow { color: #008800 } /* Operator.Word */
.highlight .w { color: #bbbbbb } /* Text.Whitespace */
.highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */
.highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */
.highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */
.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
.highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */
.highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */
.highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */
.highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */
.highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */
.highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */
.highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */
.highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */
.highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */
.highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */
.highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */
.highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */
.highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */
.highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */
.highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */
.highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */
.highlight .vc { color: #336699 } /* Name.Variable.Class */
.highlight .vg { color: #dd7700 } /* Name.Variable.Global */
.highlight .vi { color: #3333bb } /* Name.Variable.Instance */
.highlight .vm { color: #336699 } /* Name.Variable.Magic */
.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
}
# Copyright (c) 2020 AT&T Intellectual Property.  All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#       http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

dependencies:
    - name: common
      version: ~6.x-0
      repository: '@local'
    - name: dcaemod-genprocessor
      version: ~6.x-0
      repository: 'file://components/dcaemod-genprocessor'
      condition: dcaemod-genprocessor.enabled
    - name: dcaemod-distributor-api
      version: ~6.x-0
      repository: 'file://components/dcaemod-distributor-api'
      condition
@media only all and (prefers-color-scheme: dark) {
.highlight .hll { background-color: #49483e }
.highlight .c { color: #75715e } /* Comment */
.highlight .err { color: #960050; background-color: #1e0010 } /* Error */
.highlight .k { color: #66d9ef } /* Keyword */
.highlight .l { color: #ae81ff } /* Literal */
.highlight .n { color: #f8f8f2 } /* Name */
.highlight .o { color: #f92672 } /* Operator */
.highlight .p { color: #f8f8f2 } /* Punctuation */
.highlight .ch { color: #75715e } /* Comment.Hashbang */
.highlight .cm { color: #75715e } /* Comment.Multiline */
.highlight .cp { color: #75715e } /* Comment.Preproc */
.highlight .cpf { color: #75715e } /* Comment.PreprocFile */
.highlight .c1 { color: #75715e } /* Comment.Single */
.highlight .cs { color: #75715e } /* Comment.Special */
.highlight .gd { color: #f92672 } /* Generic.Deleted */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .gi { color: #a6e22e } /* Generic.Inserted */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #75715e } /* Generic.Subheading */
.highlight .kc { color: #66d9ef } /* Keyword.Constant */
.highlight .kd { color: #66d9ef } /* Keyword.Declaration */
.highlight .kn { color: #f92672 } /* Keyword.Namespace */
.highlight .kp { color: #66d9ef } /* Keyword.Pseudo */
.highlight .kr { color: #66d9ef } /* Keyword.Reserved */
.highlight .kt { color: #66d9ef } /* Keyword.Type */
.highlight .ld { color: #e6db74 } /* Literal.Date */
.highlight .m { color: #ae81ff } /* Literal.Number */
.highlight .s { color: #e6db74 } /* Literal.String */
.highlight .na { color: #a6e22e } /* Name.Attribute */
.highlight .nb { color: #f8f8f2 } /* Name.Builtin */
.highlight .nc { color: #a6e22e } /* Name.Class */
.highlight .no { color: #66d9ef } /* Name.Constant */
.highlight .nd { color: #a6e22e } /* Name.Decorator */
.highlight .ni { color: #f8f8f2 } /* Name.Entity */
.highlight .ne { color: #a6e22e } /* Name.Exception */
.highlight .nf { color: #a6e22e } /* Name.Function */
.highlight .nl { color: #f8f8f2 } /* Name.Label */
.highlight .nn { color: #f8f8f2 } /* Name.Namespace */
.highlight .nx { color: #a6e22e } /* Name.Other */
.highlight .py { color: #f8f8f2 } /* Name.Property */
.highlight .nt { color: #f92672 } /* Name.Tag */
.highlight .nv { color: #f8f8f2 } /* Name.Variable */
.highlight .ow { color: #f92672 } /* Operator.Word */
.highlight .w { color: #f8f8f2 } /* Text.Whitespace */
.highlight .mb { color: #ae81ff } /* Literal.Number.Bin */
.highlight .mf { color: #ae81ff } /* Literal.Number.Float */
.highlight .mh { color: #ae81ff } /* Literal.Number.Hex */
.highlight .mi { color: #ae81ff } /* Literal.Number.Integer */
.highlight .mo { color: #ae81ff } /* Literal.Number.Oct */
.highlight .sa { color: #e6db74 } /* Literal.String.Affix */
.highlight .sb { color: #e6db74 } /* Literal.String.Backtick */
.highlight .sc { color: #e6db74 } /* Literal.String.Char */
.highlight .dl { color: #e6db74 } /* Literal.String.Delimiter */
.highlight .sd { color: #e6db74 } /* Literal.String.Doc */
.highlight .s2 { color: #e6db74 } /* Literal.String.Double */
.highlight .se { color: #ae81ff } /* Literal.String.Escape */
.highlight .sh { color: #e6db74 } /* Literal.String.Heredoc */
.highlight .si { color: #e6db74 } /* Literal.String.Interpol */
.highlight .sx { color: #e6db74 } /* Literal.String.Other */
.highlight .sr { color: #e6db74 } /* Literal.String.Regex */
.highlight .s1 { color: #e6db74 } /* Literal.String.Single */
.highlight .ss { color: #e6db74 } /* Literal.String.Symbol */
.highlight .bp { color: #f8f8f2 } /* Name.Builtin.Pseudo */
.highlight .fm { color: #a6e22e } /* Name.Function.Magic */
.highlight .vc { color: #f8f8f2 } /* Name.Variable.Class */
.highlight .vg { color: #f8f8f2 } /* Name.Variable.Global */
.highlight .vi { color: #f8f8f2 } /* Name.Variable.Instance */
.highlight .vm { color: #f8f8f2 } /* Name.Variable.Magic */
.highlight .il { color: #ae81ff } /* Literal.Number.Integer.Long */
}
@media (prefers-color-scheme: light) {
.highlight .hll { background-color: #ffffcc }
.highlight .c { color: #888888 } /* Comment */
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
.highlight .k { color: #008800; font-weight: bold } /* Keyword */
.highlight .ch { color: #888888 } /* Comment.Hashbang */
.highlight .cm { color: #888888 } /* Comment.Multiline */
.highlight .cp { color: #cc0000; font-weight: bold } /* Comment.Preproc */
.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
.highlight .c1 { color: #888888 } /* Comment.Single */
.highlight .cs { color: #cc0000; font-weight: bold; background-color: #fff0f0 } /* Comment.Special */
.highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .gr { color: #aa0000 } /* Generic.Error */
.highlight .gh { color: #333333 } /* Generic.Heading */
.highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
.highlight .go { color: #888888 } /* Generic.Output */
.highlight .gp { color: #555555 } /* Generic.Prompt */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #666666 } /* Generic.Subheading */
.highlight .gt { color: #aa0000 } /* Generic.Traceback */
.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
.highlight .kp { color: #008800 } /* Keyword.Pseudo */
.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
.highlight .kt { color: #888888; font-weight: bold } /* Keyword.Type */
.highlight .m { color: #0000DD; font-weight: bold } /* Literal.Number */
.highlight .s { color: #dd2200; background-color: #fff0f0 } /* Literal.String */
.highlight .na { color: #336699 } /* Name.Attribute */
.highlight .nb { color: #003388 } /* Name.Builtin */
.highlight .nc { color: #bb0066; font-weight: bold } /* Name.Class */
.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
.highlight .nd { color: #555555 } /* Name.Decorator */
.highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */
.highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */
.highlight .nl { color: #336699; font-style: italic } /* Name.Label */
.highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */
.highlight .py { color: #336699; font-weight: bold } /* Name.Property */
.highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */
.highlight .nv { color: #336699 } /* Name.Variable */
.highlight .ow { color: #008800 } /* Operator.Word */
.highlight .w { color: #bbbbbb } /* Text.Whitespace */
.highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */
.highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */
.highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */
.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
.highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */
.highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */
.highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */
.highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */
.highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */
.highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */
.highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */
.highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */
.highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */
.highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */
.highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */
.highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */
.highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */
.highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */
.highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */
.highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */
.highlight .vc { color: #336699 } /* Name.Variable.Class */
.highlight .vg { color: #dd7700 } /* Name.Variable.Global */
.highlight .vi { color: #3333bb } /* Name.Variable.Instance */
.highlight .vm { color: #336699 } /* Name.Variable.Magic */
.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
}
tosca_definitions_version: tosca_simple_yaml_1_0

imports:
  - aria-1.0
  - https://gerrit.onap.org/r/gitweb?p=so.git;a=blob_plain;f=aria/multivim-plugin/src/main/python/multivim-plugin/plugin.yaml

topology_template:
  description: TOSCA template to deploy vCPE Infrastructue emlements (vAAA, vDHCP, vDNS_DHCP, webServer_sink) for ONAP

  inputs:
    multivim_config:
      type: onap.multivim.datatypes.Config
      description: MultiVIM connection configuration
    vcpe_image_name:
      type: string
      description: Image to be used for compute instance
    vcpe_flavor_name:
      type: string
      description: Type of instance (flavor) to be used
    public_net_id:
      type: string
      description: Public network that enables remote connection to VNF
    onap_private_net_id:
      type: string
      description: Private network that connects ONAP components and the VNF
    onap_private_subnet_id:
      type: string
      description: Private sub-network that connects ONAP components and the VNF
    onap_private_net_cidr:
      type: string
      description: The CIDR of the protected private network
    cpe_signal_net_id:
      type: string
      description: Private network that connects vAAA with vDNSs
    cpe_signal_net_cidr:
      type: string
      description: The CIDR of the vAAA private network
    cpe_public_net_id:
      type: string
      description: Private network that connects vGW to emulated internet
    cpe_public_net_cidr:
      type: string
      description: The CIDR of the vCPE public
    vaaa_private_ip_0:
      type: string
      description: Private IP address that is assigned to the vAAA to communicate with the vCPE components 
    vaaa_private_ip_1:
      type: string
      description: Private IP address that is assigned to the vAAA to communicate with ONAP components
    vdns_private_ip_0:
      type: string
      description: Private IP address that is assigned to the vDNS to communicate with the vCPE components
    vdns_private_ip_1:
      type: string
      description: Private IP address that is assigned to the vDNS to communicate with ONAP components
    vdhcp_private_ip_0:
      type: string
      description: Private IP address that is assigned to the vDHCP to communicate with the vCPE components
    vdhcp_private_ip_1:
      type: string
      description: Private IP address that is assigned to the vDHCP to communicate with ONAP components
    vweb_private_ip_0:
      type: string
      description: Private IP address that is assigned to the vWEB to communicate with the vGWs 
    vweb_private_ip_1:
      type: string
      description: Private IP address that is assigned to the vWEB to communicate with ONAP components
    vaaa_name_0:
      type: string
      description: Name of the vAAA
    vdns_name_0:
      type: string
      description: Name of the vDNS
    vdhcp_name_0:
      type: string
      description: Name of the vDHCP
    vweb_name_0:
      type: string
      description: Name of the vWEB 
    vnf_id:
      type: string
      description: The VNF ID is provided by ONAP
    vf_module_id:
      type: string
      description: The vAAA Module ID is provided by ONAP
    dcae_collector_ip:
      type: string
      description: IP address of the DCAE collector
    dcae_collector_port:
      type: string
      description: Port of the DCAE collector
    key_name:
      type: string
      description: Public/Private key pair name
    pub_key:
      type: string
      description: Public key to be installed on the compute instance
    repo_url_blob:
      type: string
      description: URL of the repository that hosts the demo packages
    repo_url_artifacts:
      type: string
      description: URL of the repository that hosts the demo packages
    install_script_version:
      type: string
      description: Version number of the scripts that install the vFW demo app
    demo_artifacts_version:
      type: string
      description: Artifacts (jar, tar.gz) version used in demo vnfs
    cloud_env:
      type: string

  
##################
#                #
# NODE TEMPLATES #
#                #
##################

  node_templates:

    my_keypair:
      type: onap.multivim.nodes.KeyPair
      properties:
        resource_id: vcpe_kp
        multivim_config:
          custom_configuration:
            public_key: { get_input: pub_key }
        multivim_config: { get_input: multivim_config }

    onap_private_network:
      type: onap.multivim.nodes.Network
      properties:
        use_external_resource: true
        resource_id: { get_input: onap_private_net_id }
        multivim_config: { get_input: multivim_config }
  
    onap_private_subnet:
      type: onap.multivim.nodes.Subnet
      properties:
        use_external_resource: true
        resource_id: { get_input: onap_private_subnet_id }
        multivim_config: { get_input: multivim_config }

    cpe_signal_network:
      type: onap.multivim.nodes.Network
      properties:
        resource_id: { get_input: cpe_signal_net_id }
        multivim_config: { get_input: multivim_config }

    cpe_signal_subnet:
      type: onap.multivim.nodes.Subnet
      properties:
        resource_id: { get_input: cpe_signal_net_id }
        subnet:
          cidr: { get_input: cpe_signal_net_cidr }
        multivim_config: { get_input: multivim_config }
      requirements:
        - network: cpe_signal_network

    cpe_public_network:
      type: onap.multivim.nodes.Network
      properties:
        resource_id: { get_input: cpe_public_net_id }
        multivim_config: { get_input: multivim_config }

    cpe_public_subnet:
      type: onap.multivim.nodes.Subnet
      properties:
        resource_id: { get_input: cpe_public_net_id }
        subnet:
          cidr: { get_input: cpe_public_net_cidr }
        multivim_config: { get_input: multivim_config }
      requirements:
        - network: cpe_public_network

    # Virtual AAA server Instantiation
    vaaa_private_0_port:
      type: onap.multivim.nodes.Port
      properties:
        fixed_ip: { get_input: vaaa_private_ip_0 }
        multivim_config: { get_input: multivim_config }
      requirements:
        - network: cpe_signal_network
        - subnet: cpe_signal_subnet

    vaaa_private_1_port:
      type: onap.multivim.nodes.Port
      properties:
        fixed_ip: { get_input: vaaa_private_ip_1 }
        multivim_config: { get_input: multivim_config }
      requirements:
        - network: onap_private_network
        - subnet: onap_private_subnet

    # NOTE: may need management_network_name
    vaaa_0:
      type: onap.multivim.nodes.Server
      properties:
        image: { get_input: vcpe_image_name }
        flavor: { get_input: vcpe_flavor_name }
        resource_id: { get_input: vaaa_name_0 }
        management_network_name: onap_private_network
        multivim_config: { get_input: multivim_config }
        server:
          metadata: {vnf_id: { get_input: vnf_id }, vf_module_id: { get_input: vf_module_id }}
          userdata: { concat: [
                              "#!/bin/bash\n",
                              "mkdir /opt/config\n",
                              "echo ",{ get_input: dcae_collector_ip}," > /opt/config/dcae_collector_ip.txt\n",
                              "echo ",{ get_input: dcae_collector_port}," > /opt/config/dcae_collector_port.txt\n",
                              "echo ",{ get_input: vaaa_private_ip_0}," > /opt/config/cpe_signal_net_ipaddr.txt\n",
                              "echo ",{ get_input: vaaa_private_ip_1}," > /opt/config/oam_ipaddr.txt\n",
                              "echo ",{ get_input: onap_private_net_cidr}," > /opt/config/oam_cidr.txt\n",
                              "echo ",{ get_input: cpe_signal_net_cidr}," > /opt/config/cpe_signal_net_cidr.txt\n",
                              "echo ",{ get_input: repo_url_blob}," > /opt/config/repo_url_blob.txt\n",
                              "echo ",{ get_input: repo_url_artifacts}," > /opt/config/repo_url_artifacts.txt\n",
                              "echo ",{ get_input: demo_artifacts_version}," > /opt/config/demo_artifacts_version.txt\n",
                              "echo ",{ get_input: install_script_version}," > /opt/config/install_script_version.txt\n",
                              "echo ",{ get_input: cloud_env}," > /opt/config/cloud_env.txt\n",
                              "curl -k ",{get_input: repo_url_blob},"/org.onap.demo/vnfs/vcpe/",{get_input: install_script_version},"/v_aaa_install.sh -o /opt/v_aaa_install.sh\n",
                              "cd /opt\n",
                              "chmod +x v_aaa_install.sh\n",
                              "./v_aaa_install.sh\n"
                            ] 
                   }
      requirements:
        - key_pair: my_keypair
        - port: vaaa_private_0_port
        - port: vaaa_private_1_port

    # Virtual DNS Instantiation
    vdns_private_0_port:
      type: onap.multivim.nodes.Port
      properties:
        fixed_ip: { get_input: vdns_private_ip_0 }
        multivim_config: { get_input: multivim_config }
      requirements:
        - network: cpe_public_network

    vdns_private_1_port:
      type: onap.multivim.nodes.Port
      properties:
        fixed_ip: { get_input: vdns_private_ip_1 }
        multivim_config: { get_input: multivim_config }
      requirements:
        - network: onap_private_network

    vdns_0:
      type: onap.multivim.nodes.Server
      properties:
        image: { get_input: vcpe_image_name }
        flavor: { get_input: vcpe_flavor_name }
        resource_id: { get_input: vdns_name_0 }
        management_network_name: onap_private_network
        multivim_config: { get_input: multivim_config }
        server:
          metadata: {vnf_id: { get_input: vnf_id }, vf_module_id: { get_input: vf_module_id }}
          userdata: { concat: [
                              "#!/bin/bash\n",
                              "mkdir /opt/config\n",
                              "echo ",{get_input: vdns_private_ip_1}," > /opt/config/oam_ipaddr.txt\n",
                              "echo ",{get_input: vdns_private_ip_0}," > /opt/config/cpe_public_net_ipaddr.txt\n",
                              "echo ",{get_input: onap_private_net_cidr}," > /opt/config/oam_cidr.txt\n",
                              "echo ",{get_input: cpe_public_net_cidr}," > /opt/config/cpe_public_net_cidr.txt\n",
                              "echo ",{get_input: repo_url_blob}," > /opt/config/repo_url_blob.txt\n",
                              "echo ",{get_input: repo_url_artifacts}," > /opt/config/repo_url_artifacts.txt\n",
                              "echo ",{get_input: demo_artifacts_version}," > /opt/config/demo_artifacts_version.txt\n",
                              "echo ",{get_input: install_script_version}," > /opt/config/install_script_version.txt\n",
                              "echo ",{get_input: cloud_env}," > /opt/config/cloud_env.txt\n",
                              "curl -k ",{get_input: repo_url_blob},"/org.onap.demo/vnfs/vcpe/",{get_input: install_script_version},"/v_dns_install.sh -o /opt/v_dns_install.sh\n",
                              "cd /opt\n",
                              "chmod +x v_dns_install.sh\n",
                              "./v_dns_install.sh\n"
                            ]
                   }
      requirements:    
        - port: vdns_private_0_port
        - port: vdns_private_1_port

  # Virtual DHCP Instantiation
    vdhcp_private_0_port:
      type: onap.multivim.nodes.Port
      properties:
        fixed_ip: { get_input: vdhcp_private_ip_0 }
        multivim_config: { get_input: multivim_config }
      requirements:
        - network: cpe_signal_network
        - subnet: cpe_signal_subnet

    vdhcp_private_1_port:
      type: onap.multivim.nodes.Port
      properties:
        fixed_ip: { get_input: vdhcp_private_ip_1 }
        multivim_config: { get_input: multivim_config }
      requirements:
        - subnet: onap_private_subnet

    vdhcp_0:
      type: onap.multivim.nodes.Server
      properties:
        image: { get_input: vcpe_image_name }
        flavor: { get_input: vcpe_flavor_name }
        resource_id: { get_input: vdhcp_name_0 }
        management_network_name: onap_private_network
        multivim_config: { get_input: multivim_config }
        server:
          metadata: {vnf_id: { get_input: vnf_id }, vf_module_id: { get_input: vf_module_id }}
          userdata: { concat: [
                              "#!/bin/bash\n",
                              "mkdir /opt/config\n",
                              "echo ",{get_input: vdns_private_ip_1}," > /opt/config/oam_ipaddr.txt\n",
                              "echo ",{get_input: vdhcp_private_ip_0}," > /opt/config/cpe_signal_ipaddr.txt\n",
                              "echo ",{get_input: onap_private_net_cidr}," > /opt/config/oam_cidr.txt\n",
                              "echo ",{get_input: cpe_signal_net_cidr}," > /opt/config/cpe_signal_net_cidr.txt\n",
                              "echo ",{get_input: repo_url_blob}," > /opt/config/repo_url_blob.txt\n",
                              "echo ",{get_input: repo_url_artifacts}," > /opt/config/repo_url_artifacts.txt\n",
                              "echo ",{get_input: demo_artifacts_version}," > /opt/config/demo_artifacts_version.txt\n",
                              "echo ",{get_input: install_script_version}," > /opt/config/install_script_version.txt\n",
                              "echo ",{get_input: cloud_env}," > /opt/config/cloud_env.txt\n",
                              "curl -k ",{get_input: repo_url_blob},"/org.onap.demo/vnfs/vcpe/",{get_input: install_script_version},"/v_dhcp_install.sh -o /opt/v_dhcp_install.sh\n",
                              "cd /opt\n",
                              "chmod +x v_dhcp_install.sh\n",
                              "./v_dhcp_install.sh\n"
                            ]
                    }
      requirements:
        - key_pair: my_keypair
        - port: vdhcp_private_0_port
        - port: vdhcp_private_1_port

    # vWEB instantiaion
    vweb_private_0_port:
      type: onap.multivim.nodes.Port
      properties:
        fixed_ip: { get_input: vweb_private_ip_0 }
        multivim_config: { get_input: multivim_config }
      requirements:
        - network: cpe_public_network
        - subnet: cpe_public_subnet

    vweb_private_1_port:
      type: onap.multivim.nodes.Port
      properties:
        fixed_ip: { get_input: vweb_private_ip_1 }
        multivim_config: { get_input: multivim_config }
      requirements:
        - network: onap_private_network
        - subnet: onap_private_subnet

    vweb_0:
      type: onap.multivim.nodes.Server
      properties:
        image: { get_input: vcpe_image_name }
        flavor: { get_input: vcpe_flavor_name }
        resource_id: { get_input: vweb_name_0 }
        management_network_name: onap_private_network
        multivim_config: { get_input: multivim_config }
        server:
          metadata: {vnf_id: { get_input: vnf_id }, vf_module_id: { get_input: vf_module_id }}
          userdata: { concat: [
                               "#!/bin/bash\n",
                               "mkdir /opt/config\n",
                               "echo ",{get_input: vweb_private_ip_1}," > /opt/config/oam_ipaddr.txt\n",
                               "echo ",{get_input: vweb_private_ip_0}," > /opt/config/cpe_public_ipaddr.txt\n",
                               "echo ",{get_input: onap_private_net_cidr}," > /opt/config/oam_cidr.txt\n",
                               "echo ",{get_input: cpe_public_net_cidr}," > /opt/config/cpe_public_net_cidr.txt\n",
                               "echo ",{get_input: repo_url_blob}," > /opt/config/repo_url_blob.txt\n",
                               "echo ",{get_input: repo_url_artifacts}," > /opt/config/repo_url_artifacts.txt\n",
                               "echo ",{get_input: demo_artifacts_version}," > /opt/config/demo_artifacts_version.txt\n",
                               "echo ",{get_input: install_script_version}," > /opt/config/install_script_version.txt\n",
                               "echo ",{get_input: cloud_env}," > /opt/config/cloud_env.txt\n",
                               "curl -k ",{get_input: repo_url_blob},"/org.onap.demo/vnfs/vcpe/",{get_input: install_script_version},"/v_web_install.sh -o /opt/v_web_install.sh\n",
                               "cd /opt\n",
                               "chmod +x v_web_install.sh\n",
                               "./v_web_install.sh\n"
                            ]
                  }
      requirements:
        - key_pair: my_keypair
        - port: vweb_private_0_port
        - port: vweb_private_1_port