Nornir-salt

Latest version: v0.21.1

Safety actively analyzes 630254 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 5 of 8

0.12.0

CHANGES

0. Deprecated Python 3.6 support, pinned requirement for Python >=3.7,<4.0

0.11.1

BUGS

1. Fixed pydantic model to enlist missing TestsProcessor test function alias names

0.11.0

from nornir_salt import netmiko_send_commands

but starting with 0.11.0 need to use:

from nornir_salt.plugins.tasks import netmiko_send_commands

0.10.1

CHANGES

1. SaltEventProcessor updated to use `datetime` module to add milliseconds to timestamps
2. Code refactoring, added `utils` folder to contain various functions for re-use across the code base
3. Updated `netmiko_send_commands`, `scrapli_send_commands`, `pyats_send_commands` and `napalm_send_commands` to use `cli_form_commands` utils function
4. Updated `netmiko_send_commands`, `scrapli_send_commands` to use `cli_send_command`s utils function
5. Code refactoring for `netmikko_send_config`, `scrapli_send_config`, `pyats_send_config`, `napalm_configure` using `cfg_form_commands` utils function
6. `http_call` task add `raise_fo_status` to requests response object to raise if experienced any errors
7. TabulateFormatter changed to honor `headers` argument for `terse and brief` `tabulate` argument values
8. For connections task changed the way how task name formed to make it more human readable and informative
9. `connections` task `conn_list` changed `connection_type` to `connection_plugin`, also plugin name extracted instead of <class xyz>
10. SaltEventProcessor no merges identity dictionary as is with events data, meaning can add any information into idenity dictionary and that will be emited on saltevent bus
11. Updated RetryRunner to handle multiple connections establishment for custom tasks `CONNECTION_NAME` variable or `connection_name` task parameter - can specify comma separated string to list connections to establish

BUGS

1. Fixed issue 2 bug by making sure to pop `connection_name` from task arguments within QueueRunner
2. Fixed docs spelling using pylint spelling check plugin (pyenchant) and sphinxcontrib-spelling RST plugin
3. Discovered issue in `scrapli-netconf` with determining if request failed, adjusted logic in `scrapli_netconf_call` task to account for it, raised [scrapli-netconf github issue]( https://github.com/scrapli/nornir_scrapli/issues/108)

FEATURES

1. Added utils `MakePlugin` function to emit boilerplate code for task and custom test function plugins.
2. Added `repeat, stop_patern, return_last` and `repeat_interval` support to `netmiko_send_commands` and `scrapli_send_commands plugins` to run commands certain amount of times
3. Added `conn_open` function to `connections` task plugin
4. Added to `ncclient_call` and `scrapli_netconf_call` tasks support for glob pattern `capab_filter` for `server_apabilities` function
5. Added RetryRunner task parameters - `run_connect_retry`, `run_task_retry`, `run_creds_retry`, `run_num_workers`, `run_num_connectors` to influence task execution logic on a per-task basis
6. Added support for `creds_retry` option to RetryRunner to specify a list of credentials to try connecting to devices.
7. Added FFun `FH` filter to filter by hostname values using glob patterns, similar to `FB` but for host's hostname parameter

0.9.0

FEATURES

1. `ToFileProcessor added `skip_failed` argument to control if want to save failed tasks
2. Added `add_host` argument to `TestsProcessor` custom test function to address github ticket 1 and allow passing host object to custom function for processing
3. FFun added `FM` - Filter platforM - filter hosts by platform names using glob patterns str or list of patterns
4. FFun added a list `FFun_functions` with names of all Fx function i.e. `FFun_functions = ["FB", "FP" ...etc]` - this is to facilitate kwargs filtering
5. Task `sleep`, added `sleep_random` timer support, e.g. `sleep_random=(1,5)` or `sleep_random=5` to sleep random time within given interval on a per-host basis
6. Added `TestsProcessor` `ContainsTest` support for `count_le` and `count_ge` arguments.

CHANGES

1. Updated `TestsProcessor` to not process/test results if has failed tasks
2. Updated `TestsProcessor` contains function to convert pattern to string
3. Updated `napalm_configure, scrapli_send_config, netmiko_send_config and pyats_send_config` to try and source config from `host.data.__task__["config"]`
4. PyATSUnicon - when making up connections options if "telnet" in platform name use protocol "telnet" instead of "shh"

BUGS

1. Fixed `RetryRunner` jumphost re-connection handling after closing connection to it
2. Fixed `RetryRunner` to not try connecting to device directly if connection via jumphost failed
3. Fixed `RetryRunner` jumphost intermittent connectivity handling bt no longer using host["exception"] to record errors
4. Improved `TestsProcessor` failed tasks handling making sure skip them and log an error if all tasks are failed for that particular test

0.8.4

Page 5 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.