etsi-nfv-ns.yang 46.7 KB
Newer Older
1001
1002
1003
1004
1005
1006
1007
             VLs instantiated according to the VlProfile belong
             to.";
          reference
            "GS NFV IFA014: Section 6.3.4.2 VirtualLinkProfile
             information element";

          leaf id {
1008
            type leafref {
1009
              path "../../../affinity-or-anti-affinity-group/id";
1010
1011
            }
          }
1012
        }
1013

1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
        container max-bitrate-requirements {
          description
            "Specifies the maximum bitrate requirements for a VL
             instantiated according to this profile.";
          reference
            "GS NFV IFA014: Section 6.3.4.2 VirtualLinkProfile
             information element";
          uses link-bitrate-requirements;
        }
        container min-bitrate-requirements {
          description
            "Specifies the minimum bitrate requirements for a VL
             instantiated according to this profile.";
          reference
            "GS NFV IFA014: Section 6.3.4.2 VirtualLinkProfile
             information element";
          uses link-bitrate-requirements;
        }
      }
1033

1034
1035
      list scaling-aspect {
        key "id";
1036

1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
        description
          "The scaling aspects supported by this DF of the NS.";
        reference
          "GS NFV IFA014: Section 6.3.2.2 NsDf information element";

        leaf id {
          type string;
          description
            "Identifier of this NsScalingAspect information element.
             It uniquely identifies the NS scaling aspect in an
             NSD.";
          reference
            "GS NFV IFA014: Section 6.7.2.2 NsScalingAspect
             information element";
1051
1052
        }

1053
1054
1055
1056
1057
1058
1059
1060
1061
        leaf name {
          type string;
          description
            "Provides a human readable name of the NS scaling
             aspect.";
          reference
            "GS NFV IFA014: Section 6.7.2.2 NsScalingAspect
             information element";
        }
1062

1063
1064
        leaf description {
          type string;
1065
          description
1066
1067
            "Provides a human readable description of the NS
             scaling aspect.";
1068
          reference
1069
1070
1071
            "GS NFV IFA014: Section 6.7.2.2 NsScalingAspect
             information element";
        }
1072

1073
1074
1075
        leaf scaling-level {
          type leafref {
            path "../../ns-instantiation-level/id";
1076
          }
1077
1078
1079
1080
1081
1082
1083
          description
            "Describes the details of an NS level.";
          reference
            "GS NFV IFA014: Section 6.7.2.2 NsScalingAspect
             information element";
        }
      }
1084

1085
1086
      list affinity-or-anti-affinity-group {
        key "id";
1087

1088
1089
1090
1091
1092
1093
1094
1095
1096
        description
          "Specifies affinity or anti-affinity relationship
           applicable between the VNF instances created using
           different VNFDs, the Virtual Link instances created
           using different NsVirtualLinkDescs or the nested NS
           instances created using different NSDs in the same
           affinity or anti-affinity group.";
        reference
          "GS NFV IFA014: Section 6.3.2.2 NsDf information element";
1097

1098
1099
1100
1101
1102
1103
1104
1105
        leaf id {
          type string;
          description
            "Identifier of Identifier of this
             AffinityOrAntiAffinityGroup information element.";
          reference
            "GS NFV IFA014: Section 6.3.5.2 AffinityOrAntiAffinity
             information element";
1106
1107
        }

Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
1108
        leaf type {
1109
1110
1111
1112
1113
1114
1115
1116
1117
          mandatory true;
          type affinity-type;
          description
            "Specifies the type of relationship that the members of
             the group have: 'affinity' or 'anti-affinity.'";
          reference
            "GS NFV IFA014: Section 6.3.5.2 AffinityOrAntiAffinity
             information element";
        }
1118

Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
1119
        leaf scope {
1120
1121
          mandatory true;
          type affinity-scope;
1122
          description
1123
1124
            "Specifies the scope of the affinity or anti-affinity
             relationship e.g. a NFVI node, an NFVI PoP, etc.";
1125
          reference
1126
1127
1128
1129
            "GS NFV IFA014: Section 6.3.5.2 AffinityOrAntiAffinity
             information element";
        }
      }
1130

1131
1132
1133
      list ns-instantiation-level {
        min-elements 1;
        key "id";
1134

1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
        description
          "Describes the details of an NS level.";
        reference
          "GS NFV IFA014: Section 6.3.2.2 NsDf information element
           GS NFV IFA014: Section 6.7.2.2 NsScaling information
           element";

        leaf id {
          type string;
          description
            "Identifier of this NsLevel information element. It
             uniquely identifies an NS level within the DF.";
          reference
            "GS NFV IFA014: Section 6.3.9.2 NsLevel information
             element";
        }

        leaf description {
          type string;
          description
            "Human readable description of the NS level.";
          reference
            "GS NFV IFA014: Section 6.3.9.2 NsLevel information
             element";
        }

        list vnf-to-level-mapping {
          key "vnf-profile-id";

          description
            "Specifies the profile of the VNFs involved in this NS
             level and, for each of them, the required number of
             instances.";
          reference
            "GS NFV IFA014: Section 6.3.9.2 NsLevel information
             element";

          leaf vnf-profile-id {
            type leafref {
              path "../../../vnf-profile/id";
            }
1176
            description
1177
1178
              "Identifies the profile to be used for a VNF
               involved in an NS level.";
1179
            reference
1180
              "GS NFV IFA014: Section 6.7.4.2 VnfToLevelMapping
1181
               information element";
1182
1183
          }

1184
1185
1186
          leaf number-of-instances {
            default 1;
            type uint32;
1187
            description
1188
1189
              "Specifies the number of VNF instances required for
               an NS level.";
1190
            reference
1191
              "GS NFV IFA014: Section 6.7.4.2 VnfToLevelMapping
1192
               information element";
1193
1194
1195
          }
        }

1196
1197
        list virtual-link-to-level-mapping {
          key "virtual-link-profile-id";
1198
1199

          description
1200
1201
            "Specifies the profile of the VLs involved in this NS
             level and, for each of them, the needed bandwidth.";
1202
          reference
1203
            "GS NFV IFA014: Section 6.3.9.2 NsLevel information
1204
1205
             element";

1206
1207
1208
1209
          leaf virtual-link-profile-id {
            type leafref {
              path "../../../virtual-link-profile/id";
            }
1210
            description
1211
1212
              "Identifies the profile to be used for a VL involved
               in an NS level.";
1213
            reference
1214
1215
              "GS NFV IFA014: Section 6.7.5.2
               VirtualLinkToLevelMapping information element";
1216
1217
          }

1218
1219
1220
1221
1222
          uses link-bitrate-requirements;
        }

        list ns-to-level-mapping {
          key "ns-profile-id";
1223

1224
1225
1226
1227
1228
1229
1230
          description
            "Specifies the profile of the nested NSs involved in
             this NS level and, for each of them, the required
             number of instances.";
          reference
            "GS NFV IFA014: Section 6.3.9.2 NsLevel information
             element";
1231

1232
1233
1234
1235
          leaf ns-profile-id {
            type leafref {
              path "../../../ns-profile/id";
            }
1236
            description
1237
1238
              "Identifies the profile to be used for a nested NS
               involved in the NS level.";
1239
            reference
1240
              "GS NFV IFA014: Section 6.7.6.2 NsToLevel information
1241
               element";
1242
1243
          }

1244
1245
1246
          leaf number-of-instances {
            default 1;
            type uint32;
1247
            description
1248
1249
              "Specifies the number of nested NS instances required
               for the NS scale level.";
1250
            reference
1251
              "GS NFV IFA014: Section 6.7.6.2 NsToLevel information
1252
               element";
1253
1254
          }
        }
1255

1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
        must "(count(vnf-to-level-mapping) + " +
             "count(virtual-link-to-level-mapping) + " +
             "count(ns-to-level-mapping)) > 0" {
          error-message
	    "At least one attribute between " +
            "vnf-to-level-mapping, " +
            "virtual-link-to-level-mapping and " +
            "ns-to-level-mapping shall be present.";
          description
            "At least one attribute between vnfToLevelMapping,
             vlirtualLinkToLevelMapping and nsToLevelMapping shall
             be present.";
          reference
            "GS NFV IFA014: Section 6.3.9.2 NsLevel information
             element";
        }
      }
1273

1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
      leaf default-instantiation-level {
        type leafref {
          path "../ns-instantiation-level/id";
        }
        description
          "Identifies the NS level which represents the default NS
           instantiation level for this DF. It shall be present if
           there are multiple 'nsIinstantiationLevel' entries.";
        reference
          "GS NFV IFA014: Section 6.3.2.2 NsDf information element";
      }
1285

1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
      list ns-profile {
        must "min-number-of-instances <= max-number-of-instances" {
          error-message
            "min-number-of-instances has to be less than or equal" +
            "max-number-of-instances.";
        }
        must "boolean(../../nested-nsd-id[.=current()/nsd-id])" {
          error-message
	    "PNFDs in the profile has to be listed as a " +
            "dependency of the network service " +
            "descriptor.";
        }
        key "id";
1299

1300
1301
1302
1303
        description
          "Specifies a NS Profile supported by this NS DF.";
        reference
          "GS NFV IFA014: Section 6.3.2.2 NsDf information element";
1304

1305
1306
1307
1308
1309
1310
1311
1312
        leaf id {
          type string;
          description
            "Identifies an NS profile.";
          reference
            "GS NFV IFA014: Section 6.3.11.2 NsProfile information
             element";
        }
1313

1314
1315
1316
        leaf nsd-id {
          mandatory true;
          type leafref {
1317
            path "../../../../nsd/id";
1318
          }
1319
1320
1321
1322
1323
1324
1325
          description
            "Identifies the NSD applicable to NS instantiated
             according to this profile.";
          reference
            "GS NFV IFA014: Section 6.3.11.2 NsProfile information
             element";
        }
1326

1327
1328
1329
1330
	leaf ns-df-id {
          mandatory true;
          type leafref {
            path "deref(../nsd-id)/../df/id";
1331
          }
1332
1333
1334
1335
1336
1337
          description
            "Identifies the applicable network service DF within
             the scope of the NSD.";
          reference
            "GS NFV IFA014: Section 6.3.11.2 NsProfile information
             element";
1338
1339
        }

1340
1341
	leaf instantiation-level-id {
          mandatory true;
1342
          type leafref {
1343
            path "deref(../ns-df-id)/../ns-instantiation-level/id";
1344
          }
1345
          description
1346
1347
1348
1349
            "Identifies the NS level within the referenced NS DF to
             be used in the context of the parent NS instantiation.
             If not present, the default NS instantiation level as
             declared in the referenced NSD shall be used.";
1350
          reference
1351
1352
            "GS NFV IFA014: Section 6.3.11.2 NsProfile information
             element";
1353
1354
        }

1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
	leaf min-number-of-instances {
          type uint16;
          default 1;
          description
            "Minimum number of nested NS instances based on the
             referenced NSD that is permitted to exist for this
             NsProfile.";
          reference
            "GS NFV IFA014: Section 6.3.11.2 NsProfile information
             element";
        }

	leaf max-number-of-instances {
          type uint16;
          default 1;
          description
            "Maximum number of nested NS instances based on the
             referenced NSD that is permitted to exist for this
             NsProfile.";
          reference
            "GS NFV IFA014: Section 6.3.11.2 NsProfile information
             element";
        }

        list affinity-or-anti-affinity-group-id {
1380
1381
1382
          key "id";

          description
1383
1384
            "Identifies an affinity or anti-affinity group the NSs
             created according to this NsProfile belongs to.";
1385
          reference
1386
1387
            "GS NFV IFA014: Section 6.3.11.2 NsProfile information
             element";
1388
1389

          leaf id {
1390
            type leafref {
1391
              path "../../../affinity-or-anti-affinity-group/id";
1392
1393
            }
          }
1394
1395
1396
1397
1398
1399
        }

        list virtual-link-connectivity {
          key "virtual-link-profile-id";

          leaf virtual-link-profile-id {
1400
            type leafref {
1401
              path "../../../virtual-link-profile/id";
1402
            }
1403
            description
1404
              "Reference an NS VL profile.";
1405
            reference
1406
1407
              "GS NFV IFA014: Section 6.3.7.2, NsVirutalLinkConnectivity
               information element.";
1408
          }
1409

1410
1411
          list constituent-cpd-id {
            key "constituent-base-element-id";
1412

1413
            description
1414
1415
1416
1417
              "Describes a connection point on a VNF/PNF or a SAP
               which connects to virtual links instantiated from
               the profile identified in the virtualLinkProfileId
               attribute.";
1418
            reference
1419
1420
              "GS NFV IFA014: Section 6.3.7
               NsVirtualLinkConnectivity information element";
1421

1422
            leaf constituent-base-element-id {
1423
              type leafref {
1424
                path "../../../id";
1425
              }
1426
1427
1428
1429
1430
              description
                "Reference to the profile of an NS constituent.";
              reference
                "GS NFV IFA014: Section 6.4.8
                 CpdInConstituentElement information element";
1431
            }
1432

1433
            leaf constituent-cpd-id {
1434
              type leafref {
1435
                path "deref(../../../nsd-id)/../sapd/id";
1436
1437
              }
              description
1438
1439
1440
                "A reference to the descriptor of a connection point
                 attached to one of the constituent VNFs and PNFs or to
                 the descriptor of a NS SAP.";
1441
              reference
1442
1443
                "GS NFV IFA014: Section 6.4.4.2 CpdPool information
                 element";
1444
            }
1445
1446
1447
          }
        }
      }
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
1448

1449
1450
      list dependencies {
        key "id";
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
1451

1452
1453
1454
1455
1456
        description
          "Specifies the order in which instances of the VNFs and/or
           nested NSs have to be created.";
        reference
          "GS NFV IFA014: Section 6.3.2.2 NsDf information element";
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
1457

1458
1459
1460
        leaf id {
          type string;
        }
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
1461

1462
1463
1464
1465
        choice primary-id {
          leaf primary-vnf-profile {
            type leafref {
              path "../../vnf-profile/vnfd-id";
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
1466
            }
1467
1468
1469
1470
1471
1472
          }
          leaf primary-ns-profile {
            type leafref {
              path "../../ns-profile/nsd-id";
            }
          }
1473
          description
1474
            "References a VnfProfile or NsProfile.";
1475
          reference
1476
1477
1478
            "GS NFV IFA014: Section 6.3.12.2 Dependencies
             information element";
        }
1479

1480
1481
1482
1483
1484
	choice secondary-id {
          leaf secondary-vnf-profile {
            type leafref {
              path "../../vnf-profile/vnfd-id";
            }
1485
          }
1486
1487
1488
          leaf secondary-ns-profile {
            type leafref {
              path "../../ns-profile/nsd-id";
1489
            }
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
          }
          description
            "References a VnfProfile or NsProfile.";
          reference
            "GS NFV IFA014: Section 6.3.12.2 Dependencies
             information element";
        }
      }

      list monitored-info {
        key "id";

        leaf id {
          type string;
        }

        container vnf-indicator-info {
          leaf vnfd-id {
            type leafref {
1509
              path "../../../../../vnfd/id";
1510
            }
1511
            description
1512
              "Identifies a VNFD.";
1513
            reference
1514
              "GS NFV IFA014: Section 6.2.7.2 VnfIndicatorData
1515
               information element";
1516
          }
1517
1518
1519
1520
1521

	  leaf vnf-indicator {
            mandatory true;
            type leafref {
              path "deref(../vnfd-id)/../indicator/id";
1522
            }
1523
            description
1524
              "Identifies a VNF indicator within the VNFD.";
1525
            reference
1526
              "GS NFV IFA014: Section 6.2.7.2 VnfIndicatorData
1527
               information element";
1528
          }
1529
1530
1531
1532
1533
1534
          description
            "Uniquely identifies this VNF Indicator information
             element.";
          reference
            "GS NFV IFA014: Section 6.2.6.2 MonitoredData
             information element";
1535
        }
1536

1537
1538
1539
1540
        // monitoringParameter in IFA014 is defined by MonitoredData
        // whereas monitoringParameter in IFA011 is defined by
        // MonitoringParameter.
        container monitoring-parameter {
1541
1542
          leaf id {
            type string;
1543
1544
1545
1546
1547
1548
            description
              "Unique identifier of this monitoring parameter
               information element.";
            reference
              "GS NFV IFA014: Section 6.2.8.2 MonitoringParameter
               information element";
1549
1550
          }

1551
1552
          leaf name {
            type string;
1553
            description
1554
              "Human readable name of the monitoring parameter.";
1555
            reference
1556
              "GS NFV IFA014: Section 6.2.8.2 MonitoringParameter
1557
1558
1559
               information element";
          }

1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
          leaf performance-metric {
            mandatory true;
            type string;
            description
              "Defines the virtualised resource-related performance
               metric.";
            reference
              "GS NFV IFA014: Section 6.2.8.2 MonitoringParameter
               information element";
          }
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
1570

1571
1572
1573
1574
1575
1576
1577
1578
          leaf collection-period {
            type string;
            description
              "An attribute that describes the periodicity at
               which to collect the performance information.";
            reference
              "GS NFV IFA014: Section 6.2.8.2 MonitoringParameter
               information element";
1579
          }
1580
        }
1581
1582
      }
    }
1583
    uses security-parameters;
1584
1585
  }
}
For faster browsing, not all history is shown. View entire blame