Skip to content

Commit

Permalink
Fix nornir_nos filter in inventory tutorial (#596)
Browse files Browse the repository at this point in the history
Fixes issue #595
  • Loading branch information
ubaumann committed Oct 2, 2020
1 parent 3e35b49 commit 43f9ff8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/tutorial/inventory.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1264,13 +1264,13 @@
"name": "stdout",
"output_type": "stream",
"text": [
"dict_keys([])\n"
"dict_keys(['host1.cmh', 'host2.cmh', 'spine00.cmh', 'leaf00.cmh', 'host1.bma', 'host2.bma', 'spine00.bma', 'leaf00.bma'])\n"
]
}
],
"source": [
"# devices running either linux or eos\n",
"linux_or_eos = nr.filter(F(nornir_nos=\"linux\") | F(nornir_nos=\"eos\"))\n",
"linux_or_eos = nr.filter(F(platform=\"linux\") | F(platform=\"eos\"))\n",
"print(linux_or_eos.inventory.hosts.keys())"
]
},
Expand Down Expand Up @@ -1403,4 +1403,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
}
}

0 comments on commit 43f9ff8

Please sign in to comment.