Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 950 Bytes

File metadata and controls

33 lines (20 loc) · 950 Bytes

001 - Basic Filtering

The demo contains the most basic type of filters using the nr.filter() function.

Operating Instructions

To see the demo in action, there are two options available.

Option 1 - motherstarter + nornir demo

This option uses motherstarter to convert the inventory.json and groups.json files into the equivalent nornir inventory data, ready to be used by the demo.

  1. Convert the inventory/groups.json files into nornir inventory files
motherstarter convert -sd inputs -td templates -st json -o nornir
  1. Execute the demo, which will printout the results of all the functions:
python code/001-basic-filtering.py

Option 2 - nornir demo only

This option just runs the demo only and does not use motherstarter.

  1. Execute the demo, which will printout the results of all the functions:
python code/001-basic-filtering.py