Release 1.3.0
New Features
Added junos_rpc
-
To execute RPC on device and save output locally.
Example
- junos_rpc: host={{ inventory_hostname }} rpc=get-interface-information dest=get_interface_information.conf - junos_rpc: host={{ inventory_hostname }} rpc=get-interface-information kwargs="interface_name=em0" format=text dest=get_interface_information.conf
Added junos_cli
-
To execute CLI on device and save output locally
Example
- junos_cli: host: "{{ inventory_hostname }}" cli: "show chassis hardware" logfile: cli.log dest: "{{ inventory_hostname }}.xml" format: xml
Updates/Enhancement
junos_get_config diff option #100
-
junos_get_config now supports check_mode (as opposed to claiming that it did, but overwriting the dest file anyway).
Properly reports 'changed' attribute for junos_get_config module.Fixed the requirement status for the dest argument in junos_get_config (docs claimed True, but set to False when module was called).
If --diff on cmdline*, return diff diff with results.
In junos_get_config, sets before and after attributes and lets Ansible do the diff.
In junos_install_config, sets prepared with the output of commit check.
Add a timeout argument to the junos_commit module #97
- Add a timeout argument to the junos_commit module to support confirming a commit on a device which is slow and/or has a large config.
Bugs Fixed
Ansible 2.0 support #103
- junos_get_facts module was returning a junos.version_info object
which caused this new feature to raise a TypeError.
Exception handling #101
- Fix exception handling line in junos_install_config
Proper log message for junos_srx_cluster #98
- Fixing log message and setting results variable when enabling cluster
shebang path changed, modules to work in virtualenv environment too #93 #77
- Update all the shebangs in library/ to use /usr/bin/env python instead of hardcoding to /usr/bin/python.