You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
where linux/ios/nxos/etc.. are inventory groups of said platforms.
clearly the facts data structure between setup and network is different but not that much, i.e.:
setup -> ansible_hostname
network (ios_facts/nxos_facts/etc..) -> ansible_net_hostname
(i think network modules inherits from 'connection: network')
So, my request is less specific to a platform but more about a way to feed ansible_facts network data structure and have ansible-cmdb.py do the job the same way it does now.
In the end, my overview.html page would have a mix of different devices/platforms (ios_facts/nxos_facts/bigip_facts or any _facts module), each displaying its specific data structure (when it's a network device, display columns from the network device template, when it's a linux, keep things as they are) ). Could work with a lame check such as: if ansible_net_hostname exists, then use the network template (which has less columns - a default ansible_net_hostname and maybe some comon top level like ansible_net_interfaces) (I assume ansible_hostname and ansible_net_hostname can never co exist - makes sense but i dont know for sure).
Let me know your thoughts on this enhancement. It feels like a minor change but specific enough that it's not obvious to me yet where to make the change. Also you might have suggestions ;)
Thanks for your time and keep up the good work
The text was updated successfully, but these errors were encountered:
Hello,
Thanks for the project it works well.
I was hoping to share the need for an enhancement, I would like to run:
where linux/ios/nxos/etc.. are inventory groups of said platforms.
clearly the facts data structure between setup and network is different but not that much, i.e.:
setup -> ansible_hostname
network (ios_facts/nxos_facts/etc..) -> ansible_net_hostname
(i think network modules inherits from 'connection: network')
So, my request is less specific to a platform but more about a way to feed ansible_facts network data structure and have ansible-cmdb.py do the job the same way it does now.
In the end, my overview.html page would have a mix of different devices/platforms (ios_facts/nxos_facts/bigip_facts or any _facts module), each displaying its specific data structure (when it's a network device, display columns from the network device template, when it's a linux, keep things as they are) ). Could work with a lame check such as: if ansible_net_hostname exists, then use the network template (which has less columns - a default ansible_net_hostname and maybe some comon top level like ansible_net_interfaces) (I assume ansible_hostname and ansible_net_hostname can never co exist - makes sense but i dont know for sure).
Let me know your thoughts on this enhancement. It feels like a minor change but specific enough that it's not obvious to me yet where to make the change. Also you might have suggestions ;)
Thanks for your time and keep up the good work
The text was updated successfully, but these errors were encountered: