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