-
Notifications
You must be signed in to change notification settings - Fork 237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nornir_nos filter not working as expected #595
Comments
Your filter should be similar to the following: ipdb> nr.inventory.hosts
{'cisco3': Host: cisco3, 'cisco4': Host: cisco4, 'nxos1': Host: nxos1, 'nxos2': Host: nxos2, 'arista1': Host: arista1, 'arista2': Host: arista2, 'arista3': Host: arista3, 'arista4': Host: arista4, 'srx2': Host: srx2}
ipdb> nr.filter(platform="junos")
<nornir.core.Nornir object at 0x7f98a2708bd0>
ipdb> j1 = nr.filter(platform="junos")
ipdb> j1.inventory.hosts
{'srx2': Host: srx2} |
Hi Kirk, Thanks for promptly replying. Would you be able to help, to fix the documentation. It still points to use nornir_nos instead of platform. |
Can you show me where? |
On Sat, Sep 26, 2020 at 7:26 AM Ankit Chhabra ***@***.***> wrote:
Hi Kirk
It's in the inventory advance filter section. [image: image]
<https://user-images.githubusercontent.com/12155063/94342937-b2762380-ffe2-11ea-98e8-4d717a7958df.jpeg>
Hope this helps.
Thanks
Ankit
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#595 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAG3VBC3E6FFERERBX5F5ZDSHX2ZXANCNFSM4RZWENJQ>
.
--
*Kirk Byers*
*ktbyers@twb-tech.com <ktbyers@twb-tech.com>*
*Simplify through Automation*
|
Can you post the URL of that page?
Kirk
On Sun, Sep 27, 2020 at 7:03 AM Kirk Byers ***@***.***> wrote:
On Sat, Sep 26, 2020 at 7:26 AM Ankit Chhabra ***@***.***>
wrote:
> Hi Kirk
>
> It's in the inventory advance filter section. [image: image]
> <https://user-images.githubusercontent.com/12155063/94342937-b2762380-ffe2-11ea-98e8-4d717a7958df.jpeg>
>
> Hope this helps.
>
> Thanks
> Ankit
>
> —
> You are receiving this because you modified the open/close state.
>
>
> Reply to this email directly, view it on GitHub
> <#595 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AAG3VBC3E6FFERERBX5F5ZDSHX2ZXANCNFSM4RZWENJQ>
> .
>
--
*Kirk Byers*
***@***.*** ***@***.***>*
*Simplify through Automation*
--
*Kirk Byers*
*ktbyers@twb-tech.com <ktbyers@twb-tech.com>*
*Simplify through Automation*
|
ktbyers
pushed a commit
that referenced
this issue
Oct 2, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi
I am trying to us the inventory filter examples in the documentation. Somehow i am not able to make nornir_nos filter work the way its expected.
hosts.yaml
Seeing this
The text was updated successfully, but these errors were encountered: