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
|
||||
type: str
|
||||
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
|
||||
type: str
|
||||
|
||||
|
@ -108,6 +116,7 @@ ansible_net_mpls_ldp_neighbors:
|
|||
type: dict
|
||||
"""
|
||||
|
||||
import platform
|
||||
import re
|
||||
|
||||
from ansible.module_utils.network.frr.frr import run_commands, get_capabilities
|
||||
|
@ -160,6 +169,9 @@ class Default(FactsBase):
|
|||
if val:
|
||||
platform_facts[item] = val
|
||||
|
||||
platform_facts['api'] = resp['network_api']
|
||||
platform_facts['python_version'] = platform.python_version()
|
||||
|
||||
return platform_facts
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue