community.network.sros_rollback (5.0.2) — module

Configure Nokia SR OS rollback

Authors: Peter Sprygada (@privateip)

Install collection

Install with ansible-galaxy collection install community.network:==5.0.2


Add to requirements.yml

  collections:
    - name: community.network
      version: 5.0.2

Description

Configure the rollback feature on remote Nokia devices running the SR OS operating system. this module provides a stateful implementation for managing the configuration of the rollback feature

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
---
- name: Configure rollback location
  community.network.sros_rollback:
    rollback_location: "cb3:/ansible"
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Remove all rollback configuration
  community.network.sros_rollback:
    state: absent

Inputs

    
state:
    choices:
    - present
    - absent
    default: present
    description:
    - The I(state) argument specifies the state of the configuration entries in the devices
      active configuration.  When the state value is set to C(true) the configuration
      is present in the devices active configuration.  When the state value is set to
      C(false) the configuration values are removed from the devices active configuration.

rescue_location:
    description:
    - The I(rescue_location) specifies the location of the rescue file.  This argument
      supports any valid local or remote URL as specified in SR OS

rollback_location:
    description:
    - The I(rollback_location) specifies the location and filename of the rollback checkpoint
      files.   This argument supports any valid local or remote URL as specified in SR
      OS

local_max_checkpoints:
    description:
    - The I(local_max_checkpoints) argument configures the maximum number of rollback
      files that can be saved on the devices local compact flash.  Valid values for this
      argument are in the range of 1 to 50

remote_max_checkpoints:
    description:
    - The I(remote_max_checkpoints) argument configures the maximum number of rollback
      files that can be transferred and saved to a remote location.  Valid values for
      this argument are in the range of 1 to 50

Outputs

updates:
  description: The set of commands that will be pushed to the remote device
  returned: always
  sample:
  - '...'
  - '...'
  type: list