| 1 |
.. _dellemc.enterprise_sonic.sonic_facts_module: |
| 2 |
|
| 3 |
|
| 4 |
************************************ |
| 5 |
dellemc.enterprise_sonic.sonic_facts |
| 6 |
************************************ |
| 7 |
|
| 8 |
**Collects facts on devices running Enterprise SONiC** |
| 9 |
|
| 10 |
|
| 11 |
Version added: 1.0.0 |
| 12 |
|
| 13 |
.. contents:: |
| 14 |
:local: |
| 15 |
:depth: 1 |
| 16 |
|
| 17 |
|
| 18 |
Synopsis |
| 19 |
-------- |
| 20 |
- Collects facts from devices running Enterprise SONiC Distribution by Dell Technologies. This module places the facts gathered in the fact tree keyed by the respective resource name. The facts module always collects a base set of facts from the device and can enable or disable collection of additional facts. |
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
Parameters |
| 26 |
---------- |
| 27 |
|
| 28 |
.. raw:: html |
| 29 |
|
| 30 |
<table border=0 cellpadding=0 class="documentation-table"> |
| 31 |
<tr> |
| 32 |
<th colspan="1">Parameter</th> |
| 33 |
<th>Choices/<font color="blue">Defaults</font></th> |
| 34 |
<th width="100%">Comments</th> |
| 35 |
</tr> |
| 36 |
<tr> |
| 37 |
<td colspan="1"> |
| 38 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 39 |
<b>gather_network_resources</b> |
| 40 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 41 |
<div style="font-size: small"> |
| 42 |
<span style="color: purple">list</span> |
| 43 |
/ <span style="color: purple">elements=string</span> |
| 44 |
</div> |
| 45 |
</td> |
| 46 |
<td> |
| 47 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 48 |
<li>all</li> |
| 49 |
<li>vlans</li> |
| 50 |
<li>interfaces</li> |
| 51 |
<li>l2_interfaces</li> |
| 52 |
<li>l3_interfaces</li> |
| 53 |
<li>ipv6_router_advertisement</li> |
| 54 |
<li>lag_interfaces</li> |
| 55 |
<li>bgp</li> |
| 56 |
<li>bgp_af</li> |
| 57 |
<li>bgp_neighbors</li> |
| 58 |
<li>bgp_neighbors_af</li> |
| 59 |
<li>bgp_as_paths</li> |
| 60 |
<li>bgp_communities</li> |
| 61 |
<li>bgp_ext_communities</li> |
| 62 |
<li>ospfv2_interfaces</li> |
| 63 |
<li>ospfv2</li> |
| 64 |
<li>ospfv3</li> |
| 65 |
<li>ospfv3_area</li> |
| 66 |
<li>ospfv3_interfaces</li> |
| 67 |
<li>mclag</li> |
| 68 |
<li>prefix_lists</li> |
| 69 |
<li>vlan_mapping</li> |
| 70 |
<li>vrfs</li> |
| 71 |
<li>vrrp</li> |
| 72 |
<li>vxlans</li> |
| 73 |
<li>users</li> |
| 74 |
<li>system</li> |
| 75 |
<li>port_breakout</li> |
| 76 |
<li>pms</li> |
| 77 |
<li>aaa</li> |
| 78 |
<li>ldap</li> |
| 79 |
<li>tacacs_server</li> |
| 80 |
<li>radius_server</li> |
| 81 |
<li>static_routes</li> |
| 82 |
<li>ntp</li> |
| 83 |
<li>logging</li> |
| 84 |
<li>pki</li> |
| 85 |
<li>ip_neighbor</li> |
| 86 |
<li>ip_neighbor_interfaces</li> |
| 87 |
<li>port_group</li> |
| 88 |
<li>dhcp_relay</li> |
| 89 |
<li>acl_interfaces</li> |
| 90 |
<li>l2_acls</li> |
| 91 |
<li>l3_acls</li> |
| 92 |
<li>lldp_global</li> |
| 93 |
<li>ptp_default_ds</li> |
| 94 |
<li>mac</li> |
| 95 |
<li>bfd</li> |
| 96 |
<li>copp</li> |
| 97 |
<li>route_maps</li> |
| 98 |
<li>lldp_interfaces</li> |
| 99 |
<li>stp</li> |
| 100 |
<li>poe</li> |
| 101 |
<li>dhcp_snooping</li> |
| 102 |
<li>sflow</li> |
| 103 |
<li>fips</li> |
| 104 |
<li>roce</li> |
| 105 |
<li>qos_buffer</li> |
| 106 |
<li>qos_pfc</li> |
| 107 |
<li>qos_maps</li> |
| 108 |
<li>qos_scheduler</li> |
| 109 |
<li>qos_wred</li> |
| 110 |
<li>qos_interfaces</li> |
| 111 |
<li>pim_global</li> |
| 112 |
<li>pim_interfaces</li> |
| 113 |
<li>login_lockout</li> |
| 114 |
<li>mgmt_servers</li> |
| 115 |
<li>ospf_area</li> |
| 116 |
<li>ssh</li> |
| 117 |
<li>lst</li> |
| 118 |
<li>ptp_port_ds</li> |
| 119 |
<li>fbs_classifiers</li> |
| 120 |
<li>fbs_groups</li> |
| 121 |
<li>fbs_policies</li> |
| 122 |
<li>ars</li> |
| 123 |
<li>network_policy</li> |
| 124 |
<li>br_l2pt</li> |
| 125 |
<li>dcbx</li> |
| 126 |
<li>mirroring</li> |
| 127 |
<li>mfa</li> |
| 128 |
<li>drop_counter</li> |
| 129 |
<li>evpn_esi_multihome</li> |
| 130 |
<li>ssh_server</li> |
| 131 |
<li>ecmp_load_share</li> |
| 132 |
<li>fbs_interfaces</li> |
| 133 |
</ul> |
| 134 |
</td> |
| 135 |
<td> |
| 136 |
<div>When supplied, this argument restricts the facts collected to a given subset. Possible values for this argument include all and the resources like 'all', 'interfaces', 'vlans', 'lag_interfaces', 'l2_interfaces', 'l3_interfaces'. Can specify a list of values to include a larger subset. Values can also be used with an initial '!' to specify that a specific subset should not be collected.</div> |
| 137 |
</td> |
| 138 |
</tr> |
| 139 |
<tr> |
| 140 |
<td colspan="1"> |
| 141 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 142 |
<b>gather_subset</b> |
| 143 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 144 |
<div style="font-size: small"> |
| 145 |
<span style="color: purple">list</span> |
| 146 |
/ <span style="color: purple">elements=string</span> |
| 147 |
</div> |
| 148 |
</td> |
| 149 |
<td> |
| 150 |
<b>Default:</b><br/><div style="color: blue">"!config"</div> |
| 151 |
</td> |
| 152 |
<td> |
| 153 |
<div>When supplied, this argument restricts the facts collected to a given subset. Possible values for this argument include all, min, hardware, config, legacy, and interfaces. Can specify a list of values to include a larger subset. Values can also be used with an initial '!' to specify that a specific subset should not be collected.</div> |
| 154 |
</td> |
| 155 |
</tr> |
| 156 |
</table> |
| 157 |
<br/> |
| 158 |
|
| 159 |
|
| 160 |
Notes |
| 161 |
----- |
| 162 |
|
| 163 |
.. note:: |
| 164 |
- Tested against Enterprise SONiC Distribution by Dell Technologies. |
| 165 |
- Supports ``check_mode``. |
| 166 |
|
| 167 |
|
| 168 |
|
| 169 |
Examples |
| 170 |
-------- |
| 171 |
|
| 172 |
.. code-block:: yaml |
| 173 |
|
| 174 |
- name: Gather all facts |
| 175 |
dellemc.enterprise_sonic.sonic_facts: |
| 176 |
gather_subset: all |
| 177 |
gather_network_resources: all |
| 178 |
- name: Collects VLAN and interfaces facts |
| 179 |
dellemc.enterprise_sonic.sonic_facts: |
| 180 |
gather_subset: |
| 181 |
- min |
| 182 |
gather_network_resources: |
| 183 |
- vlans |
| 184 |
- interfaces |
| 185 |
- name: Do not collects VLAN and interfaces facts |
| 186 |
dellemc.enterprise_sonic.sonic_facts: |
| 187 |
gather_network_resources: |
| 188 |
- "!vlans" |
| 189 |
- "!interfaces" |
| 190 |
- name: Collects VLAN and minimal default facts |
| 191 |
dellemc.enterprise_sonic.sonic_facts: |
| 192 |
gather_subset: min |
| 193 |
gather_network_resources: vlans |
| 194 |
- name: Collect lag_interfaces and minimal default facts |
| 195 |
dellemc.enterprise_sonic.sonic_facts: |
| 196 |
gather_subset: min |
| 197 |
gather_network_resources: lag_interfaces |
| 198 |
|
| 199 |
|
| 200 |
|
| 201 |
|
| 202 |
Status |
| 203 |
------ |
| 204 |
|
| 205 |
|
| 206 |
Authors |
| 207 |
~~~~~~~ |
| 208 |
|
| 209 |
- Mohamed Javeed (@javeedf) |
| 210 |
- Abirami N (@abirami-n) |