-
Notifications
You must be signed in to change notification settings - Fork 6
CLI documentation
The tool can be run in CLI mode using the command tng-sdk-validate
, there are several arguments to introduce in the tool (more information with tng-sdk-validate -h
). Hovewer, the mainly arguments are type of descriptor and validation level. The tool can be used to validate complete projects, individual descriptors or a folder with descriptors inside (bulk validation).
When the descriptor type is chosen it should choose the level of validation:
- Syntax
-s
- Integrity
-i
- Topology
-t
- Custom rules
-c
If the user does not specify the validation level, the validator will choose a default level which depends on the descriptor type. In NSD or VNFD, the default level is topology, in the rest of them the default level is integrity.
Note: Superior types implies inferior types, i.e. If topology is chosen, syntax and integrity will be validated.
Currently the following arguments are supported by the tool.
--project
--service
--function
--sla
--slice
--policy
Any individual validation of a service requires the use of the --dpath
argument, which is the path to the VNFD(s) that are referenced from the NSD and the --dext
argument which represents the file extension.