Hi,
From Netbox module for Ansible, i tried to get interface of a VM.
With this i got all the interface in Netbox :
- debug:
msg: "{{ query('netbox.netbox.nb_lookup', 'virtualization-interfaces', api_endpoint=netbox.url, token=netbox.token) }}"
But now i want to filter on a specific virtual_machine name and i try like below :
- set_fact:
tmp_netbox_api_filter: "virtual_machine_name=XXXXXX"
- debug:
msg: "{{ query('netbox.netbox.nb_lookup', 'virtualization-interfaces', api_filter=tmp_netbox_api_filter, api_endpoint=netbox.url, token=netbox.token) }}"
The [virtual_machine_name] that i search exist but for the moment with the filter above i got all the Netbox Interface.
Do you know with lookup plugin for virtualization-interfaces how can i get interface of a VM please ?
Thanks for your help,
Matt