...
Code Block | ||||
---|---|---|---|---|
| ||||
entity { name 'POA-EVENT' indexing { indices 'default-rules' } validation { useRule { name 'NDCB-AAI-attribute-comparisonvnf-name' attributes 'context-list.sdc.vfList[*].name' } } } rule { name 'vnf-name' category 'INVALID_NAME' description 'Invalid naming convention' errorText 'Invalid name - attribute does not match xxxxxnnnvbc (where x = alphanumeric and n = numeric)' severity 'MINOR' attributes 'name' validate 'name != null && name.matches("[a-z,0-9]{5}[0-9]{3}vbc")' } |
...