nokia.openconfig.gnmi_get (1.1.2) — module

Retrieve config/state information from networking device

Authors: Hans Thienpondt (@HansThienpondt), Sven Wisotzky (@wisotzky)

Install collection

Install with ansible-galaxy collection install nokia.openconfig:==1.1.2


Add to requirements.yml

  collections:
    - name: nokia.openconfig
      version: 1.1.2

Description

gRPC is a high performance, open-source universal RPC framework.

This module enables the user to fetch configuration and/or state information from gNMI enabled devices.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Get Nodal Configuration
  gnmi_get:
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Get Nodal Configuration (Selective Branches)
  gnmi_get:
    type: CONFIG
    prefix: /configure
    path:
      - system/location
      - system/contact
      - service/md-auto-id
      - port[port-id=1/1/1]

Inputs

    
path:
    default:
    - ''
    description:
    - Paths requested by the user
    elements: str
    type: list

type:
    choices:
    - ALL
    - CONFIG
    - STATE
    - OPERATIONAL
    default: CONFIG
    description:
    - Type of data elements being requested
    type: str

prefix:
    default: /
    description:
    - Path prefix that is applied to all paths in that request
    type: str

Outputs

configure:
  port:
  - ethernet:
      mode: access
    port-id: 1/1/1
  service:
    md-auto-id:
      customer-id-range:
        end: 10999
        start: 10000
      service-id-range:
        end: 99999
        start: 10000
  system:
    contact: nokia
    location: Melbourne