-
Notifications
You must be signed in to change notification settings - Fork 49
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
Get facts not returning interfaces data #166
Comments
Please disregard, I'm getting different kinds of results from exceptions, empty interfaces and missing fields according to different devices and OS versions. I need to run more tests before opening another issue. Thanks |
Hi @rfreddy, will check and update on this. |
Hi @prasadapr, so far I'm getting some data from the facts to ingest into Netbox but there are some fields that are coming empty (interface mediatype) and other has a strange contents (ansible_net_neighbors) list the interfaces in a wrong way. 'ansible_net_interfaces': {'ethernet1/1/1': {'description': '', 'duplex': 'auto', 'primary_ipv4': '', 'secondary_ipv4': '', 'ipv6': [], 'mtu': '1532', 'speed': 'AUTO', 'type': 'ianaift:ethernetCsmacd', 'bandwidth': '1000000000', 'adminstatus': 'up', 'operstatus': 'down', 'macaddress':'8c:47:be:63:21:01', 'mediatype': ''} Please let me know if I can provide more information. Have a great day |
Hi @prasadapr, I fixed the problems that I was having, I did a couple of modifications in the os10_facts.py module to point to the right info: media-type ---> media-type-str Now I'm getting the right info, I must say I did this on version 1.2.3 because 1.2.4 I got errors executing the playbook. Thanks |
Hello @prasadapr, do you have any idea of why os10_facts module doesn't list port-channels? My python is quite elementary and I can't figure out how to modify the module in order to add them into the output. Can you help me with this issue please? Thanks! |
Hi @rfreddy, sorry little bit busy with other tasks, that's why not able to look in to this. From above data, i can see 2 things:
|
Hi @rfreddy, I have verified and able to get interfaces data using os10_facts module.
Find the execution log for the same:
|
SUMMARY
When getting facts from OS10 devices some fields come empty, specifically inside ansible_net_interfaces
ISSUE TYPE
COMPONENT NAME
.ansible/collections/ansible_collections/dellemc/os10/plugins/modules/os10_facts.py
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
Host: Ubuntu 22.04
Switch: Dell N3048-ON
OS 10 Version 10.5.3.4
STEPS TO REPRODUCE
ansible-playbook -i inventory.yaml get_fact_os10.yaml
EXPECTED RESULTS
For OS9 facts the data returned for the interfaces looks like this
'ansible_net_interfaces': {'GigabitEthernet 1/1': {'
description': None, 'macaddress': '8c:47:be:64:8a:82', 'ipv4': None, 'mtu': 1554, 'bandwidth': 1000, 'mediatype': None, 'duplex': 'full', 'lineprotocol': 'up', 'operstatus': 'up', 'type': 'DellEth'}
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: