Fix #1063 flake tests
[osm/osmclient.git] / osmclient / templates / nst.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 nst:
17 -   id: {{ name }}_nst
18     name: {{ name }}_nst
19
20     # Slice Service Type [eMBB, mMTC, URLLC]
21     SNSSAI-identifier:
22         slice-service-type: eMBB
23         {%- if detailed is sameas true %}
24         #slice-differentiator: <update, optional>
25         {%- endif %}
26
27     # Quality of service identifier
28     quality-of-service:
29         id: 1
30         {%- if detailed is sameas true %}
31         #resource-type: <update, optional>
32         #priority-level: <update, optional>
33         #packet-delay-budget: <update, optional>
34         #packet-error-rate: <update, optional>
35         #default-max-data-burst: <update, optional>
36         {%- endif %}
37
38     # Netslice subnets (Network services)
39     netslice-subnet:
40     {%- for x in range(1, netslice_subnets + 1 ) %}
41     -   id: {{ name }}_nsd_{{ x }}
42         is-shared-nss: 'false'
43         description: NetSlice Subnet (service) {{ name }}_nsd_{{ x }}
44         nsd-ref: {{ name }}_nsd
45     {%- endfor %}
46
47     # Netslice virtual links
48     netslice-vld:
49     # Additional netslice-vld can be created by copying the
50     # vld descriptor below
51     -   id: {{ name }}_slice_vld_mgmt
52         name: {{ name }}_slice_vld_mgmt
53         type: ELAN
54         mgmt-network: 'true'
55         {%- if detailed is sameas true %}
56         #short-name: <update, optional>
57         #description: <update, optional>
58         {%- endif %}
59         nss-connection-point-ref:
60         # Specify the connection points
61         # Multiple connection points can be defined
62         -   nss-ref: {{ name }}_nsd_1
63             nsd-connection-point-ref: {{ name }}_nsd_cp_mgmt
64             {%- if detailed is sameas true %}
65             #ip-address: <update>
66             {%- endif %}
67
68     {%- for x in range(1, netslice_vlds + 1 ) %}
69     -   id: {{ name }}_slice_vld_data{{ x }}
70         name: {{ name }}_slice_vld_data{{ x }}
71         type: ELAN
72         {%- if detailed is sameas true %}
73         #mgmt-network: <update>
74         #short-name: <update, optional>
75         #description: <update, optional>
76         #type: <update, optional>
77         {%- endif %}
78         nss-connection-point-ref:
79         # Specify the connection points
80         # Multiple connection points can be defined
81         -   nss-ref: {{ name }}_nsd
82             nsd-connection-point-ref: {{ name }}_nsd_cp_data{{ x }}
83             {%- if detailed is sameas true %}
84             #ip-address: <update>
85             {%- endif %}
86     {%- endfor %}
87
88     {%- if detailed is sameas true %}
89     #netslice-connection-point:
90     #-   name:
91     #    floating-ip-required: <update>
92     #    # Choice connection | netslice-vld-ref / nsd-connection-point-ref
93     #    netslice-vld-id-ref: <update, optional>
94     #    #
95     #    nsd-id-ref: <update, optional>
96     #    nsd-connection-point-ref: <update, optional>
97
98     #netslicefgd:
99     #-   id: <update>
100     #    name: <update, optional>
101     #    short-name: <update, optional>
102     #    vendor: <update, optional>
103     #    description: <update, optional>
104     #    version: <update, optional>
105     #    rsp:
106     #    -   id: <update>
107     #        name: <update, optional>
108     #        nsd-connection-point-ref:
109     #        -   nsd-ref: <update>
110     #            order: <update, optional>
111     #            nsd-connection-point-ref: <update, optional>
112     #    classifier:
113     #    -   id: <update>
114     #        name: <update, optional>
115     #        rsp-id-ref: <update, optional>
116     #        match-attributes:
117     #        -   id: <update>
118     #            ip-proto: <update, optional>
119     #            source-ip-address: <update, optional>
120     #            destination-ip-address: <update, optional>
121     #            source-port: <update, optional>
122     #            destination-port: <update, optional>
123     #        nsd-ref: <update, optional>
124     #        nsd-connection-point-ref: <update, optional>
125     {%- endif %}