mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-26 22:51:23 -07:00
Update frr_facts (#53439)
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
This commit is contained in:
parent
b678139e68
commit
5cd7bf39dd
1 changed files with 13 additions and 1 deletions
|
@ -73,7 +73,15 @@ ansible_net_hostname:
|
||||||
returned: always
|
returned: always
|
||||||
type: str
|
type: str
|
||||||
ansible_net_version:
|
ansible_net_version:
|
||||||
description: The operating system version running on the remote device
|
description: The FRR version running on the remote device
|
||||||
|
returned: always
|
||||||
|
type: str
|
||||||
|
ansible_net_api:
|
||||||
|
description: The name of the transport
|
||||||
|
returned: always
|
||||||
|
type: str
|
||||||
|
ansible_net_python_version:
|
||||||
|
description: The Python version that the Ansible controller is using
|
||||||
returned: always
|
returned: always
|
||||||
type: str
|
type: str
|
||||||
|
|
||||||
|
@ -108,6 +116,7 @@ ansible_net_mpls_ldp_neighbors:
|
||||||
type: dict
|
type: dict
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
import platform
|
||||||
import re
|
import re
|
||||||
|
|
||||||
from ansible.module_utils.network.frr.frr import run_commands, get_capabilities
|
from ansible.module_utils.network.frr.frr import run_commands, get_capabilities
|
||||||
|
@ -160,6 +169,9 @@ class Default(FactsBase):
|
||||||
if val:
|
if val:
|
||||||
platform_facts[item] = val
|
platform_facts[item] = val
|
||||||
|
|
||||||
|
platform_facts['api'] = resp['network_api']
|
||||||
|
platform_facts['python_version'] = platform.python_version()
|
||||||
|
|
||||||
return platform_facts
|
return platform_facts
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue