how to get nb_lookup for virtualization/interfaces? #1377
Unanswered
ivoruetsche
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all
We need a lookup on the interfaces part of virtualization, for this I implement a loop:
loop: "{{ query('netbox.netbox.nb_lookup', 'virtualization', 'interfaces', api_endpoint='https://192.168.1.1', validate_certs=False, token='xxxxxx') }}"
or
loop: "{{ query('netbox.netbox.nb_lookup', 'interfaces', api_endpoint='https://192.168.1.1', validate_certs=False, token='xxxxxx') }}"
The first one is not working:
An unhandled exception occurred while running the lookup plugin 'netbox.netbox.nb_lookup'. Error was a <class 'ansible.errors.AnsibleError'>, original message: Unrecognised term virtualization. Check documentation. Unrecognised term virtualization. Check documentation
and the 2nd gives me the results from dcim/interfaces back.
How can I get it?
Thanks a lot
Ivo
Beta Was this translation helpful? Give feedback.
All reactions