Skip to content
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

fortios_facts: Interface MACs not correct #7

Open
awuetz opened this issue Dec 11, 2019 · 0 comments
Open

fortios_facts: Interface MACs not correct #7

awuetz opened this issue Dec 11, 2019 · 0 comments

Comments

@awuetz
Copy link

awuetz commented Dec 11, 2019

Hello *,

i noticed, when i wanted to get the mac addresses from the interfaces, that the returned value is on each interface "00:00:00:00:00:00" instead of the correct mac.

My task looks like this:

  fortios_facts:
    host:  "{{ fqdn }}"
    username: "{{ fortios_username }}"
    password: "{{ fortios_password }}"
    vdom:  "root"
    ssl_verify: "false"
    gather_subset:
      - fact: 'system_status_select'
      - fact: 'system_firmware_select'
      - fact: 'system_interface_select'
      - fact: 'system_current-admins_select'
      - fact: 'system_fortimanager_status'
      - fact: 'system_time_select'

Details about my FGT / FortiOS:

"branch-point": 302,
"build": 302,
"id": "current",
"major": 6,
"minor": 0,
"name": "FortiOS",
"notes": "http://docs.fortinet.com/d/fortios-6.0.7-release-notes/download",
"patch": 7,
"platform-id": "FGT60D",
"release-type": "GA",
"source": "current",
"version": "v6.0.7"

This is how the result for one interface "wan2" looks like. It's shortened to have only the necessary stuff in here:

    "action": "select",
    "build": 302,
    "http_method": "GET",
    "name": "interface",
    "path": "system",
    "results": {
        "wan2": {
            "alias": "",
            "duplex": 1,
            "id": "wan2",
            "ip": "<IP>",
            "link": true,
            "mac": "00:00:00:00:00:00",
            "mask": 24,
            "name": "wan2",
            "rx_bytes": 492620,
            "rx_errors": 0,
            "rx_packets": 2312,
            "speed": 1000.0,
            "tx_bytes": 1995185,
            "tx_errors": 0,
            "tx_packets": 2184
        }
    },```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant