summaryrefslogtreecommitdiffstats
path: root/ansible_collections/community/routeros/plugins/modules/facts.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-18 05:52:27 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-18 05:52:27 +0000
commit3b0807ad7b283c46c21862eb826dcbb4ad04e5e2 (patch)
tree6461ea75f03eca87a5a90c86c3c9a787a6ad037e /ansible_collections/community/routeros/plugins/modules/facts.py
parentAdding debian version 7.7.0+dfsg-3. (diff)
downloadansible-3b0807ad7b283c46c21862eb826dcbb4ad04e5e2.tar.xz
ansible-3b0807ad7b283c46c21862eb826dcbb4ad04e5e2.zip
Merging upstream version 9.4.0+dfsg.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ansible_collections/community/routeros/plugins/modules/facts.py')
-rw-r--r--ansible_collections/community/routeros/plugins/modules/facts.py52
1 files changed, 26 insertions, 26 deletions
diff --git a/ansible_collections/community/routeros/plugins/modules/facts.py b/ansible_collections/community/routeros/plugins/modules/facts.py
index 85c0b37c4..50f9a21fc 100644
--- a/ansible_collections/community/routeros/plugins/modules/facts.py
+++ b/ansible_collections/community/routeros/plugins/modules/facts.py
@@ -31,9 +31,9 @@ options:
description:
- When supplied, this argument will restrict the facts collected
to a given subset. Possible values for this argument include
- C(all), C(hardware), C(config), C(interfaces), and C(routing).
+ V(all), V(hardware), V(config), V(interfaces), and V(routing).
- Can specify a list of values to include a larger subset.
- Values can also be used with an initial C(!) to specify that a
+ Values can also be used with an initial V(!) to specify that a
specific subset should not be collected.
required: false
default:
@@ -75,55 +75,55 @@ ansible_facts:
# default
ansible_net_model:
description: The model name returned from the device.
- returned: I(gather_subset) contains C(default)
+ returned: O(gather_subset) contains V(default)
type: str
ansible_net_serialnum:
description: The serial number of the remote device.
- returned: I(gather_subset) contains C(default)
+ returned: O(gather_subset) contains V(default)
type: str
ansible_net_version:
description: The operating system version running on the remote device.
- returned: I(gather_subset) contains C(default)
+ returned: O(gather_subset) contains V(default)
type: str
ansible_net_hostname:
description: The configured hostname of the device.
- returned: I(gather_subset) contains C(default)
+ returned: O(gather_subset) contains V(default)
type: str
ansible_net_arch:
description: The CPU architecture of the device.
- returned: I(gather_subset) contains C(default)
+ returned: O(gather_subset) contains V(default)
type: str
ansible_net_uptime:
description: The uptime of the device.
- returned: I(gather_subset) contains C(default)
+ returned: O(gather_subset) contains V(default)
type: str
ansible_net_cpu_load:
description: Current CPU load.
- returned: I(gather_subset) contains C(default)
+ returned: O(gather_subset) contains V(default)
type: str
# hardware
ansible_net_spacefree_mb:
description: The available disk space on the remote device in MiB.
- returned: I(gather_subset) contains C(hardware)
+ returned: O(gather_subset) contains V(hardware)
type: dict
ansible_net_spacetotal_mb:
description: The total disk space on the remote device in MiB.
- returned: I(gather_subset) contains C(hardware)
+ returned: O(gather_subset) contains V(hardware)
type: dict
ansible_net_memfree_mb:
description: The available free memory on the remote device in MiB.
- returned: I(gather_subset) contains C(hardware)
+ returned: O(gather_subset) contains V(hardware)
type: int
ansible_net_memtotal_mb:
description: The total memory on the remote device in MiB.
- returned: I(gather_subset) contains C(hardware)
+ returned: O(gather_subset) contains V(hardware)
type: int
# config
ansible_net_config:
description: The current active config from the device.
- returned: I(gather_subset) contains C(config)
+ returned: O(gather_subset) contains V(config)
type: str
ansible_net_config_nonverbose:
@@ -132,52 +132,52 @@ ansible_facts:
- This value is idempotent in the sense that if the facts module is run twice and the device's config
was not changed between the runs, the value is identical. This is achieved by running C(/export)
and stripping the timestamp from the comment in the first line.
- returned: I(gather_subset) contains C(config)
+ returned: O(gather_subset) contains V(config)
type: str
version_added: 1.2.0
# interfaces
ansible_net_all_ipv4_addresses:
description: All IPv4 addresses configured on the device.
- returned: I(gather_subset) contains C(interfaces)
+ returned: O(gather_subset) contains V(interfaces)
type: list
ansible_net_all_ipv6_addresses:
description: All IPv6 addresses configured on the device.
- returned: I(gather_subset) contains C(interfaces)
+ returned: O(gather_subset) contains V(interfaces)
type: list
ansible_net_interfaces:
description: A hash of all interfaces running on the system.
- returned: I(gather_subset) contains C(interfaces)
+ returned: O(gather_subset) contains V(interfaces)
type: dict
ansible_net_neighbors:
description: The list of neighbors from the remote device.
- returned: I(gather_subset) contains C(interfaces)
+ returned: O(gather_subset) contains V(interfaces)
type: dict
# routing
ansible_net_bgp_peer:
description: A dictionary with BGP peer information.
- returned: I(gather_subset) contains C(routing)
+ returned: O(gather_subset) contains V(routing)
type: dict
ansible_net_bgp_vpnv4_route:
description: A dictionary with BGP vpnv4 route information.
- returned: I(gather_subset) contains C(routing)
+ returned: O(gather_subset) contains V(routing)
type: dict
ansible_net_bgp_instance:
description: A dictionary with BGP instance information.
- returned: I(gather_subset) contains C(routing)
+ returned: O(gather_subset) contains V(routing)
type: dict
ansible_net_route:
description: A dictionary for routes in all routing tables.
- returned: I(gather_subset) contains C(routing)
+ returned: O(gather_subset) contains V(routing)
type: dict
ansible_net_ospf_instance:
description: A dictionary with OSPF instances.
- returned: I(gather_subset) contains C(routing)
+ returned: O(gather_subset) contains V(routing)
type: dict
ansible_net_ospf_neighbor:
description: A dictionary with OSPF neighbors.
- returned: I(gather_subset) contains C(routing)
+ returned: O(gather_subset) contains V(routing)
type: dict
"""
import re
@@ -311,7 +311,7 @@ class Config(FactsBase):
'/export',
]
- RM_DATE_RE = re.compile(r'^# [a-z0-9/][a-z0-9/]* [0-9:]* by RouterOS')
+ RM_DATE_RE = re.compile(r'^# [a-z0-9/-][a-z0-9/-]* [0-9:]* by RouterOS')
def populate(self):
super(Config, self).populate()