Skip to content

v1.0.0

Compare
Choose a tag to compare
@timeforplanb123 timeforplanb123 released this 05 Oct 15:31
· 26 commits to master since this release
fe42b9f
  • updated python packages:
    • Click to 8.0.1
    • Nornir to 3.1.1
    • Nornir plugins to latests versions
  • updated Runbook collections:
    • updated custom decorator. Now ctx object has become smarter. Now it is dataclass object that supports the creation of any attributes, their modification and passing between you custom Nornir runbooks:
      • ctx.nornir - default object with Nornir object. It can be Nornir object only
      • ctx.result - default object with Result object. Use it with new print_result, write_result, write_results commands
  • updated show_inventory command:
    • fixed bug with incorrect defaults inventory output with --count option
    • added all parameter for --inventory option
    • fixed confirmation for hosts/groups list and hosts/groups/defaults/all inventory:
      • confirmation messages contain the requested parameters
      • confirmation messages are not displayed if the number of items is 0 or 1
  • added new print_result, write_result, write_results, write_file commands:
    • work with built-in Nornir plugins and custom commands (Runbook collections)
    • you can customize output and write it to file/files
    • commands includes many useful options:
      • --attributes (Result class attributes you want to print or write)
      • --count (limit results)
      • --no_errors (don't write errors to file/files)
      • --diff_to_file or --print_diff (write diff to file or output diff)
      • etc.
  • added new change_credentials command:
    • command changes credentials for defaults, hosts/host list, groups/groups list at any time
    • you can use environment variables
  • added new Nornir plugins:
    • nornir_routeros
    • nornir_paramiko
    • nornir_http
    • nornir_pyxl
    • nornir_netconf
  • applied default value for click.confirm. To press enter is enough
  • updated functions in nornir_cli.common_plugins:
    • _json_loads. Added parameter type check
    • _doc_generator. Added new rule for docstrings
    • custom. Now it returns new dataclass object
    • multiple_progress_bar is now available from nornir_cli.common.plugins
    • _info is print_stat now
  • updated documentation