ipbhat.iqnos.xfr (1.0.5) — module

Perform operations on XFR

Authors: Shaik Md Ansari (sansari)

preview | supported by community

Install collection

Install with ansible-galaxy collection install ipbhat.iqnos:==1.0.5


Add to requirements.yml

  collections:
    - name: ipbhat.iqnos
      version: 1.0.5

Description

This module is provided to work with the IQNOS Infinera devices via XML protocol.

The module provides capabilities to `Retrieve a Selected of the XFR` operations on the XFR settings

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
---
- hosts: test_group
  serial: 3
  connection: local
  gather_facts: False

  vars_files:
    - "{{ cfg_file }}"

  vars:
    NE_IP: "{{ ne_ip | default(hostvars[inventory_hostname]['ansible_host']) }}"
    NE_User: "{{ ne_user | default(hostvars[inventory_hostname]['ansible_user']) }}"
    NE_Pwd: "{{ ne_pwd | default(hostvars[inventory_hostname]['ansible_password']) }}"
    TID: "{{ hostvars[inventory_hostname]['tid']| default('') }}"

  tasks:

    - name: Retrieving Selected XFR
      infinera.iqnos.xfr:
        task: "retrieve"
        host: "{{ NE_IP }}"
        username: "{{ NE_User }}"
        password: "{{ NE_Pwd }}"
        input: "{{ xfr_configs.retrieve }}" # Found in the config file
      register: iqnos_xfr_res

    - name: configure Selected XFR
      infinera.iqnos.xfr:
        task: "configure"
        host: "{{ NE_IP }}"
        username: "{{ NE_User }}"
        password: "{{ NE_Pwd }}"
        input: "{{ xfr_configs.configure }}" # Found in the config file
      register: iqnos_xfr_res

Inputs

    
host:
    description:
    - The IP Address of the Network Element.
    required: true

task:
    description:
    - The action we are going to perform on the Alarm Severity Assignment Profiles.
    required: true

input:
    description:
    - The input option is used as input for the module.

password:
    description:
    - The password associated with the username argument.
    required: true

username:
    description:
    - The Username that is going to be used for initiating a session.