Skip to content

Release 1.4.0

Compare
Choose a tag to compare
@vnitinv vnitinv released this 21 Sep 11:13
· 447 commits to master since this release

New Features

Dockerfile for junos ansible modules

  • New Dockerfile added to automatically build a docker container for junos ansible modules #165

Console connection support

  • Modules to work with console connections too using PyEZ 2.0 #162. For example
  - name: Get configs
    junos_get_config:
      user: "{{ USERNAME }}"
      passwd: "{{ PASSWORD }}"
      port: 7011
      mode: "telnet"
      format: xml

junos_jsnapy

  • Integrate JSNAPy to ansible which helps audit network devices
   - name: Test based on a test_file directly
     junos_jsnapy:
       host: "{{ junos_host }}"
       user: "{{ ansible_ssh_user }}"
       passwd: "{{ ansible_ssh_pass }}"
       test_files: tests/test_junos_interface.yaml
       action: snapcheck
     register: test1
   - name: Check JSNAPy tests results
     assert:
     that:
       - "test1.passPercentage == 100"

junos_ping

  • Execute ping on junos devices
- name: "Execute ping peer"
      junos_ping:
        host={{ junos_host }}
        user={{ ansible_ssh_user }}
        passwd={{ ansible_ssh_pass }}
        dest_ip=8.8.8.8

junos_get_table

  • Retrieve data from a Junos device using Tables/Views.
- name: "Get neighbour info using std lldp table"
      junos_get_table:
        host={{ junos_host }}
        user={{ ansible_ssh_user }}
        passwd={{ ansible_ssh_pass }}
        table=LLDPNeighborTable
        file=lldp.yml

Updates/Enhancement

  • ImportError to show proper message #158. For example
$ ansible-playbook facts_gather.yml 

PLAY ***************************************************************************

TASK [gather facts] ************************************************************
fatal: [x.x.x.x]: FAILED! => {"changed": false, "failed": true, "msg": "ImportError: No module named lxml"}
  • junos_shutdown to support delayed reboot and shutdown #150
  • junos_install_config->check_commit_wait: Set number of seconds to wait between check and commit. #140
  • Timeout option for junos_cli and junos_rpc #133
  • timeout parameter to junos_rollback #131

Bugs Fixed

  • junos_rpc: Fix regex to match xe/ge/et interfaces #153
  • junos_get_table: Fix for nested tables #127
  • junos_get_config: Fix for filter argument contains more than one level of configuration hierarchy #121
  • Fix for Ansible 2.0 & 2.1 #119