Skip to content

config

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

  • This module allows to set a configuration or run operational transaction. The set method can be used with the candidate and tools datastores.

Parameters

Parameter Defaults / Choices Comments
confirm_timeout
int
The number of seconds to wait for a confirmation before reverting the commit.
datastore
str
Default: candidate
Choices: candidate, tools
The datastore to use
delete
list / elements=dict
Delete operation.
delete.path targeted path for delete operation
replace
list / elements=dict
replace operation.
replace.path targeted path for replace operation
replace.value values to replace
save_when
str
Default: never
Choices: always, never, changed
When to save running to startup config.
update
list / elements=dict
Update operation.
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: Set system information with values
  nokia.srlinux.config:
    update:
      - path: /system/information
        value:
          location: Some location
          contact: Some contact

Authors

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