AffinityOrAntiAffinityRule

AffinityOrAntiAffinityRule
AffinityOrAntiAffinityRule

This type describes the additional affinity or anti-affinity rule applicable between the VNF instances to be instantiated in the NS instantiation operation request or between the VNF instances to be instantiated in the NS instantiation operation request and the existing VNF instances..

JSON Example
{
    "vnfdId": [
        "string"
    ],
    "vnfProfileId": [
        "string"
    ],
    "vnfInstanceId": [
        "string"
    ],
    "affinityOrAntiAffiinty": "string",
    "scope": "string"
}
array of Identifier
vnfdId
Optional

Reference to a VNFD. When the VNFD which is not used to instantiate VNF, it presents all VNF instances of this type as the subjects of the affinity or anti-affinity rule. The VNF instance which the VNFD presents is not necessary as a part of the NS to be instantiated.

vnfProfileId
Optional

Reference to a vnfProfile defined in the NSD. At least one VnfProfile which is used to instantiate VNF for the NS to be instantiated as the subject of the affinity or anti-affinity rule shall be present. When the VnfProfile which is not used to instantiate VNF, it presents all VNF instances of this type as the subjects of the affinity or anti-affinity rule. The VNF instance which the VnfProfile presents is not necessary as a part of the NS to be instantiated.

array of Identifier
vnfInstanceId
Optional

Reference to the existing VNF instance as the subject of the affinity or anti-affinity rule. The existing VNF instance is not necessary as a part of the NS to be instantiated.

string
affinityOrAntiAffiinty
Required

The type of the constraint. Permitted values: AFFINITY ANTI_AFFINITY.

Possible values are : AFFINITY, ANTI_AFFINITY,
string
scope
Required

Specifies the scope of the rule where the placement constraint applies. Permitted values: NFVI_POP ZONE ZONE_GROUP NFVI_NODE.

Possible values are : NFVI_POP, ZONE, ZONE_GROUP, NFVI_NODE,