SOL002VNFConfiguration_def.yaml 7.38 KB
Newer Older
1
2
# Copyright (c) ETSI 2017.
# https://forge.etsi.org/etsi-forge-copyright-notice.txt
3

4
definitions:
5
6
7
8
9
10
11
12
13
14
15
16
17
18
  VnfConfigModifications:
    description: >
      This type represents request parameters for the "Set Configuration" operation.
        * NOTE 1: At least one of "vnfConfigurationData" and "vnfcConfigurationData"
                  shall be present.
        * NOTE 2: The VnfcConfiguration data type can only be used to modify the configuration
                  of existing VNFC instances.
    type: object
    properties:
      vnfConfigurationData:
        description: >
          Modifications to configuration data for the VNF instance. See NOTE 1.
          If present, the modifications of the "vnfConfigurationData" attribute shall
          be applied according to the rules of JSON Merge PATCH (see IETF RFC 7396).
19
        $ref: '#/definitions/VnfConfigurationData'
20
21
22
      vnfcConfigurationData:
        description: >
          Modifications to configuration data for certain VNFC instances. See NOTE 1 and NOTE 2.
23
          If present, the modifications of the "vnfcConfigurationData" attribute shall follow these
24
25
26
          provisions:
            Modifying an attribute that is an array of objects of type "VnfcConfigurationData".
              Assumptions:
27
28
29
30
31
32
33
34
                1) "oldList" is the "VnfcConfigurationData" array to be modified and "newList"
                   is the "VnfcConfigurationData" array that contains the changes.
                2) "oldEntry" is an entry in "oldList" and "newEntry" is an entry in "newList".
                3) A "newEntry" has a "corresponding entry" if there exists an "oldEntry" that
                   has the same content of the "vnfcInstanceId" attribute as the "newEntry";
                   a "newEntry" has no corresponding entry if no such "oldEntry" exists.
                4) In any array of "VnfcConfigurationData" structures, the content of "vnfcInstanceId"
                   is unique (i.e. there shall be no two entries with the same content of "vnfcInstanceId").
35
              Provisions:
36
37
                1) For each "newEntry" in "newList" that has no corresponding entry in "oldList",
                   the "oldList" array shall be modified by adding that "newEntry".
38

39
40
41
                2) For each "newEntry" in "newList" that has a corresponding "oldEntry" in "oldList",
                   the value of "oldEntry" shall be updated with the value of "newEntry" according to
                  the rules of JSON Merge PATCH (see IETF RFC 7396 ).
42
43
        type: array
        items:
44
45
46
47
48
49
50
51
          $ref: '#/definitions/VnfcConfigurationData'
      vnfcConfigurationDataDeleteIds:
        description: >
          List of identifiers entries to be deleted from the 'vnfcConfigurationData" attribute array to be used
          as "deleteIdList" as defined below this table.
        type: array
        items:
          $ref: "../../../definitions/SOL002SOL003_def.yaml#/definitions/Identifier"
52

53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
  VnfConfiguration:
    description: >
      This type represents configuration parameters of a VNF instance and its VNFC instances.
    type: object
    required:
      - vnfConfigurationData
    properties:
      vnfConfigurationData:
        description: >
          Configuration parameters of the VNF instance.
        $ref: '#/definitions/VnfConfigurationData'
      vnfcConfigurationData:
        description: >
          Configuration parameters of the VNFC instances.
        type: array
        items:
          $ref: '#/definitions/VnfcConfigurationData'
70
71
72
73
74
75
76
77
78

  VnfConfigurationData:
    description: >
      This type represents configuration parameters of a VNF instance.
    type: object
    properties:
      extCpConfig:
        description: >
          Configuration parameters for the external CPs of the VNF instance.
79
80
81
        type: array
        items:
          $ref: '#/definitions/CpConfiguration'
82
83
84
85
      dhcpServer:
        description: >
          IP address of the DHCP server that the VNF instance can use to obtain
          IP addresses to be assigned to its external CPs.
86
        $ref: '../../../definitions/SOL002SOL003_def.yaml#/definitions/IpAddress'
87
88
89
90
      vnfSpecificData:
        description: >
          Additional configurable properties of the VNF instance declared in the
          VNFD as "VnfConfigurableProperties".
91
        $ref: '../../../definitions/SOL002SOL003_def.yaml#/definitions/KeyValuePairs'
92
93
94
95
96
97
98
99
100
101
102

  VnfcConfigurationData:
    description: >
      This type represents configuration parameters of a VNFC instance.
    type: object
    required:
      - vnfcInstanceId
    properties:
      vnfcInstanceId:
        description: >
          Identifier of a VNFC instance to which this set of configuration data applies.
103
          The identifier references the "id" attribute in a "VnfcInfo" structure.
104
        $ref: '../../../definitions/SOL002SOL003_def.yaml#/definitions/IdentifierInVnf'
105
      intCpConfig:
106
        description: >
107
108
109
110
          Configuration parameters for the internal CPs of the VNFC instance.
        type: array
        items:
          $ref: '#/definitions/CpConfiguration'
111
112
113
114
      dhcpServer:
        description: >
          IP address of the DHCP server that the VNF instance can use to obtain
          IP addresses to be assigned to its external CPs.
115
        $ref: '../../../definitions/SOL002SOL003_def.yaml#/definitions/IpAddress'
116
117
118
119
      vnfcSpecificData:
        description: >
          Additional configurable properties of the VNFC instance declared in the
          VNFD as "VnfcConfigurableProperties".
120
        $ref: '../../../definitions/SOL002SOL003_def.yaml#/definitions/KeyValuePairs'
121
122
123
124
125
126
127
128
129
130
131
132
133

  CpConfiguration:
    description: >
      This type represents configuration parameters of a CP instance.
    type: object
    required:
      - cpId
      - cpdId
      - addresses
    properties:
      cpId:
        description: >
          Identifier of a CP instance within the namespace of a specific VNF instance or a VNFC instance.
134
        $ref: '../../../definitions/SOL002SOL003_def.yaml#/definitions/IdentifierInVnf'
135
136
137
      cpdId:
        description: >
          Identifier of the CPD in the VNFD.
138
        $ref: '../../../definitions/SOL002SOL003_def.yaml#/definitions/IdentifierInVnfd'
139
140
141
142
143
      addresses:
        description: >
          Network address and port assigned to the CP.
        type: array
        items:
144
          $ref: '#/definitions/CpAddress'
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160

  CpAddress:
    description: >
      This type represents configuration parameters of a CP instance address.
         *  NOTE 1: Either "address" or "useDynamicAddress" shall be present.
         *  NOTE 2: At least one of "macAddress" and "ipAddress" shall be present.
    type: object
    properties:
      address:
        description: >
          Network address that has been configured on the CP. See NOTE 1.
        type: object
        properties:
          macAddress:
            description: >
              Mac address. See NOTE 2.
161
            $ref: '../../../definitions/SOL002SOL003_def.yaml#/definitions/MacAddress'
162
163
164
          ipAddress:
            description: >
              IP address. See NOTE 2.
165
            $ref: '../../../definitions/SOL002SOL003_def.yaml#/definitions/IpAddress'
166
167
168
169
170
171
172
173
      useDynamicAddress:
        description: >
          Set to true if an address shall be assigned dynamically. Otherwise set to false.
          The default value shall be false. See NOTE 1.
        type: boolean
      port:
        description: >
          The port assigned to the CP instance (e.g. IP port number, Ethernet port number, etc.).
174
        type: integer