X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=models%2Faugments%2Fcommon-augments.yang;h=f1235eb456ca6bade13d68a89033d69c95ac1508;hb=03c0fb76d33a8eb51cebafc49a1bb7505b8cbdd9;hp=c3654247f47430d20ca098b78db964b8450ecfc8;hpb=608d5948e260cd8b9b7c6cd33856d2db4ccb3530;p=osm%2FIM.git diff --git a/models/augments/common-augments.yang b/models/augments/common-augments.yang index c365424..f1235eb 100644 --- a/models/augments/common-augments.yang +++ b/models/augments/common-augments.yang @@ -200,6 +200,31 @@ module common-augments { "Execution environment that uses the service provided by the provider"; uses relations-ee; } + list entities { + description + "DEPRECATION NOTICE: use provider and requirer instead. + List of two elements to be related. + Elements to be related are identified by a pair (id, endpoint). + The relation will relate (id1, endpoint1) to (id2, endpoint2)."; + key "id"; + + leaf id { + description + "A string, reference to the element id in the descriptor. + It could be a vnfd-id or a vdu-id in a VNFD, + or a nsd-id or member-vnf-index in a NSD."; + type string; + } + + leaf endpoint { + description + "Endpoint name defining the relation."; + type string; + } + } + must 'not(entities) or (not(provider) and not(requirer))' { + error-message 'Cannot set both "entities" and "provider/requirer" fields.'; + } } } @@ -538,6 +563,7 @@ module common-augments { enum GT; // greater than enum LT; // less than enum EQ; // equal + enum NE; // not equal } }