Update frr_facts (#53439)

Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
This commit is contained in:
Nilashish Chakraborty 2019-03-11 10:55:09 +05:30 committed by GitHub
parent b678139e68
commit 5cd7bf39dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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