Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 1.01 KB

File metadata and controls

33 lines (20 loc) · 1.01 KB

002 - Intermediate Filtering

The demo contains the most basic type of filters using the nr.filter() function, but uses multiple filters together to get more specific results

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/002-intermediate-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/002-intermediate-filtering.py