Skip to content

Latest commit

 

History

History
56 lines (36 loc) · 1.24 KB

README.rst

File metadata and controls

56 lines (36 loc) · 1.24 KB
Documentation test_nornir_utils

nornir_utils

Collection of simple plugins for nornir

Installation

pip install nornir_utils

Plugins

Inventory

  • YAMLInventory - Create an inventory from yaml files
  • load_credentials - Transform function to load credentials from venv

Functions

  • print_result - Formats nicely and prints results on stdout.
  • print_title - Formats nicely a title and prints it on stdout.

Processors

  • PrintResult - Formats nicely and prints results on stdout as soon as they are made available.

Tasks

Data:

  • echo_data - Dummy task that echoes the data passed to it.
  • load_json - Load a JSON file.
  • load_yaml - Load a YAML file.

Files:

  • write_file - Writes content to files

Networking:

  • tcp_ping - Tests connection to a tcp port.