Skip to content

Release 1.1.0

Compare
Choose a tag to compare
@shermdog shermdog released this 15 Jan 19:18
· 626 commits to master since this release

New Features

Add Ability to specify NETCONF Port

  • User can specify port other than default 830

    Example
    junos_install_config:
      host={{ inventory_hostname }}
      user=user
      passwd=pass
      port=22
      file=load.conf

Commit comment junos_install_config

  • Add ability to specify a comment with config commit

    Example
    - junos_install_config:
      host={{ inventory_hostname }}
      file=banner.conf
      comment="configured by ansible"

Check mode added to junos_install_config and junos_get_facts

  • Allows use of --check when executing ansible-playbook
    • junos_get_facts will return facts as normal
    • junos_install_config will load config, commit check and automatically rollback on exit.

Write configuration diff to file junos_install_config

  • Allows user to specify a file to write configuration diff to

    Example
    junos_install_config:
      host={{ inventory_hostname }}
      file=load.conf
      diffs_file=diff.log

Bugs Fixed

Rename facts 2RE to has_2RE

  • Per Ansible convention all variables should start with a letter.

Console mode logging

  • Underlying netconify errors were not captured

junos_install_config Exception Handling

  • Capture and log PyEZ ConfigLoadError and CommitError

    2015-01-15 13:13:33,861:CONFIG:device:connecting to host: regress@device:22
    2015-01-15 13:13:40,657:CONFIG:device:pushing file: /home/rsherman/workspace/bad-script.conf
    2015-01-15 13:13:40,657:CONFIG:device:taking lock
    2015-01-15 13:13:40,878:CONFIG:device:loading config
    2015-01-15 13:13:41,101:CONFIG:device:unable to load config:error,op1,syntax error
    2015-01-15 13:13:41,101:CONFIG:device:Unable to make changes