how to get nb_lookup for virtualization/interfaces? #1377
              
                Unanswered
              
          
                  
                    
                      ivoruetsche
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 1 comment
-
| 
         I think it should be "virtualization-interfaces", or you can check out the endpoint map for reference depending on what you need! ->https://github.com/netbox-community/ansible_modules/blob/devel/plugins/lookup/nb_lookup.py  | 
  
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
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 documentationand 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