Skip to content

cli

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 CLI commands to be executed in Nokia SR Linux using JSON-RPC interface.

Parameters

Parameter Defaults / Choices Comments
commands
list / elements=str
required
List of commands to run.
output_format
str
Default: json
Choices: json, text, table
Output format.

Examples

- name: Run "show version" CLI command
  nokia.srlinux.cli:
    commands:
      - show version
  register: response

Authors

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