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