Skip to content

add private candidate mode sros

This could be an example usage of this new parameter:


---
- hosts: all
  environment:
  vars:
    - ansible_port: 3830
    - ansible_ssh_user: admin
    - ansible_ssh_pass: admin
    - ansible_connection: geant.gap_ansible.netconf
    - ansible_host_key_checking: false
    - ansible_network_os: geant.gap_ansible.sros

  gather_facts: yes
  collections:
    - geant.gap_ansible

  tasks:
    - name: "configure using direct native format configuration"
      geant.gap_ansible.nokia_netconf_config:
        config_mode: private
        format: xml
        default_operation: merge
        content: "{{ lookup('ansible.builtin.template', './templates/nokia/snmp.j2') }}"
        commit: true
        commit_comment: "SNMP configuration by Mohammad"
      diff: true
      check_mode: false

Merge request reports

Loading