Skip to content

validate

Collection Note

This module is part of the nokia.srlinux collection. To install the collection, use:

ansible-galaxy collection install nokia.srlinux
Added in version 0.1.0.

Synopsis

  • Validating configuration on SR Linux devices using commit validate feature of SR Linux.

Parameters

Parameter Defaults / Choices Comments
delete
list / elements=dict
Delete operations to validate.
delete.path targeted path for delete operation
replace
list / elements=dict
Replace operations to validate.
replace.path targeted path for replace operation
replace.value values to replace
update
list / elements=dict
Update operations to validate.
update.path targeted path for update operation
update.value values to update
yang_models
str
Default: srl
Choices: srl, oc
YANG models to use for the get operation.

Examples

- name: Validate a valid change set
  nokia.srlinux.validate:
    update:
      - path: /system/information
        value:
          location: Some location
          contact: Some contact

Authors

  • Patrick Dumais (@nokia)
  • Roman Dodin (@nokia)
  • Walter De Smedt (@nokia)