ValidationService

class ydk::ValidationService

Validation Service class for validating C++ model API objects of type Entity.

enum class Option

All validation is performed in the context of some operation. These options capture the context of use.

enumerator DATASTORE

Datastore validation.

enumerator GET_CONFIG

Get config validation. Checks to see if only config nodes are references.

enumerator GET

Get validation.

enumerator EDIT_CONFIG

Edit validation. Checks on the values of leafs etc.

void validate(const ydk::path::ServiceProvider &provider, Entity &entity, ValidationService::Option option)

Validates an entity based on the option.

Parameters:
  • provider – An instance of ServiceProvider
  • entity – An instance of Entity class defined under a bundle
  • option – An instance of type Option
Raises YError:

If validation errors were detected

virtual ~ValidationService()