Releases: timeforplanb123/nornir_cli
Releases · timeforplanb123/nornir_cli
v1.3.0
What's Changed
updatesby @timeforplanb123 in #8:- now the nornir_cli commands (
init,filter, Nornir plugin commands) accept any arguments as json strings. Combined withjq,jcutilities, this feature can be very useful in scripts and automation pipelines - some Nornir plugins accept any arguments only as
**kwargs. Now such arguments can be passed as json strings
- now the nornir_cli commands (
update_error_messagesby @timeforplanb123 in #9:- added new syntax to
init,filterand Nornir plugin error messages
- added new syntax to
update_docsby @timeforplanb123 in #10:- examples and a description of the new json string feature have been added to the documentation
add_nornir_routeros_pluginby @timeforplanb123 in #11:- starting from new
nornir_cliversion1.3.0, you can pass any additional arguments as a json string to Nornir plugin commands. This feature allows you to run any Nornir plugin command without an unique set of parameters. So, now thenornir-routerosplugin can be run like this -$ nornir_cli nornir-routeros init -c "/home/user/config.yaml" routeros_command '{"path":"/", "command":"ping", "address": "1.1.1.1", "count":4}'
- starting from new
v1.2.0
What's Changed
updatesby @timeforplanb123 in #7:click 8.1.7nornir 3.4.1nornir-netmiko 1.0.0nornir-scrapli 2023.07.30scrapli 2023.07.30scrapli-netconf 2023.07.30scrapli-community 2023.07.30nornir-napalm 0.4.0nornir-pyez 0.2.8nornir-f5 0.6.1nornir-http 0.1.3nornir-netconf 2.0.0- remove
nornir-routerosplugin.nornir_cliis not compatible withnornir-routerossince0.3.0version.nornir-routeroshas been removed fromnornir_cli 1.2.0
v1.1.1
- Update
netmikoto latest4.1.2 - Fix
mkdocs.yml:- fix
pymdownx.tabbedextension - change
Hometonornir_cliinnav
- fix
v1.1.0
- Update dependencies to latest versions, add new dev-dependencies:
- see
pyproject.toml
- see
- Add new custom
Nornirrunbook examples. This is an easy way to add yourNornirrunbooks to thenornir_cliinterface - Fix
short_helpand--helpcommand options parsers - Import reorder with
flake8-import-order - Update docs:
- fix color palette toggle configuration (
mkdocs.yml) - update docs according to the new dependencies versions
- fix color palette toggle configuration (
- Bump version to
1.1.0
v1.0.0
- updated python packages:
Clickto8.0.1Nornirto3.1.1Nornir pluginsto latests versions
- updated
Runbook collections:- updated
customdecorator. Nowctxobject has become smarter. Now it isdataclassobject 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 onlyctx.result- default object with Result object. Use it with newprint_result,write_result,write_resultscommands
- updated
- updated
show_inventorycommand:- fixed bug with incorrect defaults inventory output with
--countoption - added
allparameter for--inventoryoption - fixed confirmation for
hosts/groupslist andhosts/groups/defaults/allinventory:- confirmation messages contain the requested parameters
- confirmation messages are not displayed if the number of items is 0 or 1
- fixed bug with incorrect defaults inventory output with
- added new
print_result,write_result,write_results,write_filecommands:- 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_fileor--print_diff(write diff to file or output diff)- etc.
- added new
change_credentialscommand:- command changes credentials for
defaults,hosts/hostlist,groups/groupslist at any time - you can use environment variables
- command changes credentials for
- added new Nornir plugins:
nornir_routerosnornir_paramikonornir_httpnornir_pyxlnornir_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 docstringscustom. Now it returns newdataclassobjectmultiple_progress_baris now available fromnornir_cli.common.plugins_infoisprint_statnow
- updated documentation
v0.3.0
Add Nornir plugins and update netmiko to 3.4.0:
- add nornir-f5 and nornir-pyez Nornir plugins
- update dependencies (netmiko to 3.4.0 and click to 7.1.2 from ^7.1.2)
- fix default_value in click command options
- fix regex in _doc_generator
- fix the code responsible for collecting statistic
- fix documentation
v0.2.0
- Add Runbook collections functionality. This is very similar to Ansible Roles. More detailed - https://timeforplanb123.github.io/nornir_cli/workflow/#runbook-collections
- Add statistic function (see _info). Use this function in custom nornir runbooks
- Add
nornir_jinja2plugin - Change the documentation and fix errors
v0.1.0
Initial release!