f0ec25a6c94408f9819f1b9f748953ce39ac16c3
[osm/osmclient.git] / osmclient / templates / nsd.yaml.j2
1 # All Rights Reserved.
2 #
3 #    Licensed under the Apache License, Version 2.0 (the "License"); you may
4 #    not use this file except in compliance with the License. You may obtain
5 #    a copy of the License at
6 #
7 #         http://www.apache.org/licenses/LICENSE-2.0
8 #
9 #    Unless required by applicable law or agreed to in writing, software
10 #    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11 #    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12 #    License for the specific language governing permissions and limitations
13 #    under the License.
14 nsd:
15   nsd:
16   - id: {{ name }}_nsd
17     name: {{ name }}_nsd
18     designer: {{ vendor }}
19     description: Generated by OSM package generator
20     version: '1.0'
21     vnfd-id:
22     - {{ name }}_vnfd
23     df:
24     - id: default-df
25       vnf-profile:
26       - id: "1"
27         vnfd-id: {{ name }}_vnfd
28         virtual-link-connectivity:
29         - virtual-link-profile-id: {{ name }}_nsd_vld0
30           constituent-cpd-id:
31           - constituent-base-element-id: "1"
32             constituent-cpd-id: vnf-cp0-ext
33             {%- if detailed is sameas true %}
34             # ip-address: <update> IP address of the connection point
35             {%- endif %}
36     virtual-link-desc:
37     - id: {{ name }}_nsd_vld0
38       mgmt-network: true
39       {%- if detailed is sameas true %}
40       #vim-network-name: <update> Name of network in VIM account
41       {%- endif %}
42     {%- if detailed is sameas true %}
43     #ns-configuration:
44       #relation:
45       #- name: relation
46       #  entities:
47       #  - id: "1"
48       #    endpoint: interface
49     {%- endif %}