diff options
Diffstat (limited to 'ms/neng/src/test/resources/sample_policy.json')
-rw-r--r-- | ms/neng/src/test/resources/sample_policy.json | 217 |
1 files changed, 217 insertions, 0 deletions
diff --git a/ms/neng/src/test/resources/sample_policy.json b/ms/neng/src/test/resources/sample_policy.json new file mode 100644 index 00000000..2bb63122 --- /dev/null +++ b/ms/neng/src/test/resources/sample_policy.json @@ -0,0 +1,217 @@ +{ + "input":{ + "naming-model":{ + "policy-instance-name":"1806NameGenerationPolicyForSRIOV", + "naming-models":[ + { + "nf-role":"vPE", + "naming-type":"VNF", + "naming-recipe":"COMPLEX|SEQUENCE|NF_NAMING_CODE", + "name-operation":"", + "naming-properties":[ + { + "property-name":"COMPLEX", + "property-operation":"substr(0,4)" + }, + { + "property-name":"SEQUENCE", + "increment-sequence":{ + "scope":"ENTIRETY", + "start-value":"001", + "max":"zzz", + "increment":"1", + "sequence-type":"alpha-numeric", + "length":"3" + } + }, + { + "property-name":"NF_NAMING_CODE" + } + ] + }, + { + "nf-role":"vPE", + "naming-type":"VM", + "naming-recipe":"VNF_NAME|SEQUENCE|NFC_NAMING_CODE", + "name-operation":"", + "naming-properties":[ + { + "property-name":"VNF_NAME" + }, + { + "property-name":"SEQUENCE", + "increment-sequence":{ + "scope":"ENTIRETY", + "start-value":"001", + "max":"999", + "increment":"1", + "sequence-type":"numeric", + "length":"3" + } + }, + { + "property-name":"NFC_NAMING_CODE", + "property-operation":"substr(1,3)" + } + ] + }, + { + "nf-role":"vPE", + "naming-type":"VNFC", + "naming-recipe":"VNF_NAME|SEQUENCE|NFC_NAMING_CODE", + "name-operation":"", + "naming-properties":[ + { + "property-name":"VNF_NAME" + }, + { + "property-name":"SEQUENCE", + "increment-sequence":{ + "scope":"ENTIRETY", + "start-value":"001", + "max":"999", + "increment":"1", + "sequence-type":"numeric", + "length":"3" + } + }, + { + "property-name":"NFC_NAMING_CODE", + "property-operation":"substr(1,3)" + } + ] + }, + { + "nf-role":"vPE", + "naming-type":"VF-MODULE", + "naming-recipe":"VNF_NAME|DELIMITER|VF_MODUEL_LABLE|DELIMITER|VF_MODULE_TYPE|DELIMITER|SEQUENCE", + "name-operation":"", + "naming-properties":[ + { + "property-name":"VNF_NAME" + }, + { + "property-name":"DELIMITER", + "property-value":"_" + }, + { + "property-name":"VF_MODUEL_LABLE" + }, + { + "property-name":"VF_MODUEL_TYPE" + }, + { + "property-name":"SEQUENCE", + "increment-sequence":{ + "scope":"PRECEEDING", + "start-value":"01", + "max":"99", + "increment":"1", + "sequence-type":"numeric", + "length":"2" + } + } + ] + }, + { + "nf-role":"vPE", + "naming-type":"VOLUME_GROUP", + "naming-recipe":"VF-MODULE_NAME|DELIMITER|CONSTANT", + "name-operation":"", + "naming-properties":[ + { + "property-name":"VF-MODULE_NAME" + }, + { + "property-name":"DELIMITER", + "property-value":"_" + }, + { + "property-name":"CONSTANT", + "property-value":"volumegroup" + } + ] + }, + { + "nf-role":"vPE", + "naming-type":"VOLUME", + "naming-recipe":"VOLUME_GROUP_NAME|DELIMITER|CONSTANT|DELIMITER|SEQUENCE", + "name-operation":"", + "naming-properties":[ + { + "property-name":"VOLUME_GROUP_NAME" + }, + { + "property-name":"DELIMITER", + "property-value":"_" + }, + { + "property-name":"CONSTANT", + "property-value":"volume" + }, + { + "property-name":"SEQUENCE", + "increment-sequence":{ + "scope":"PRECEEDING", + "start-value":"01", + "max":"99", + "increment":"1", + "sequence-type":"numeric", + "length":"2" + } + } + ] + }, + { + "nf-role":"vPE", + "naming-type":"AFFINITY", + "naming-recipe":"VNF_NAME|DELIMITER|CONSTANT", + "name-operation":"", + "naming-properties":[ + { + "property-name":"VNF_NAME" + }, + { + "property-name":"DELIMITER", + "property-value":"_" + }, + { + "property-name":"CONSTANT", + "property-value":"affinity" + } + ] + }, + { + "nf-role":"vPE", + "naming-type":"INTERNAL_NETWORK", + "naming-recipe":"VNF_NAME|DELIMITER|CONSTANT|SEQUENCE", + "name-operation":"", + "naming-properties":[ + { + "property-name":"VNF_NAME" + }, + { + "property-name":"DELIMITER", + "property-value":"_" + }, + { + "property-name":"CONSTANT", + "property-value":"INT" + }, + { + "property-name":"SEQUENCE", + "increment-sequence":{ + "scope":"PRECEEDING", + "start-value":"01", + "max":"99", + "increment":"1", + "sequence-type":"numeric", + "length":"2" + } + } + ] + } + ] + } + } +}
\ No newline at end of file |