fortinet-ansible-dev / ansible-galaxy-fortios-collection

GNU General Public License v3.0
84 stars 48 forks source link

fortios_configuration_fact - selector: system_interface - does not provide all macaddresses. #234

Closed patrickpreuss closed 1 year ago

patrickpreuss commented 1 year ago

With collection: fortinet.fortios:2.2.2 Fortigate 60E / OS 7.2.4

and task

only interface "internal" does contain a macaddress.

MaxxLiu22 commented 1 year ago

Hi @patrickpreuss ,

If you want to get the mac address of each port, fortios_monitor_fact module may help. Let me know if you still have other question.

  - name: fact gathering
    fortios_monitor_fact:
       vdom: "root"
       access_token: "6Hjrf1GHzNsw837wdwnxNNwN0b8f8t"
       selector: 'system_available-interfaces'
    register: info

  - name: display vars
    debug: msg="{{info}}"

Thanks, Maxx

MaxxLiu22 commented 1 year ago

I will go ahead to close this case, if you still have questions, feel free to reopen it or another case.