Skip to content

Commit

Permalink
Add Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mikewiebe committed Oct 30, 2024
1 parent b9667e2 commit 9677e5b
Show file tree
Hide file tree
Showing 9 changed files with 635 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This collection is intended for use with the following release versions:
<!--start requires_ansible-->
## Ansible version compatibility

This collection has been tested against following Ansible versions: **>=2.9.10**.
This collection has been tested against following Ansible versions: **>=2.15.0**.

For collections that support Ansible 2.9, please ensure you update your `network_os` to use the
fully qualified collection name (for example, `cisco.ios.ios`).
Expand All @@ -34,13 +34,15 @@ Name | Description
### Modules
Name | Description
--- | ---
[cisco.dcnm.dcnm_bootflash](https://github.com/CiscoDevNet/ansible-dcnm/blob/main/docs/cisco.dcnm.dcnm_bootflash_module.rst)|Bootflash management for Nexus switches.
[cisco.dcnm.dcnm_fabric](https://github.com/CiscoDevNet/ansible-dcnm/blob/main/docs/cisco.dcnm.dcnm_fabric_module.rst)|Manage creation and configuration of NDFC fabrics.
[cisco.dcnm.dcnm_image_policy](https://github.com/CiscoDevNet/ansible-dcnm/blob/main/docs/cisco.dcnm.dcnm_image_policy_module.rst)|Image policy management for Nexus Dashboard Fabric Controller
[cisco.dcnm.dcnm_image_upgrade](https://github.com/CiscoDevNet/ansible-dcnm/blob/main/docs/cisco.dcnm.dcnm_image_upgrade_module.rst)|Image management for Nexus switches
[cisco.dcnm.dcnm_image_upload](https://github.com/CiscoDevNet/ansible-dcnm/blob/main/docs/cisco.dcnm.dcnm_image_upload_module.rst)|DCNM Ansible Module for managing images.
[cisco.dcnm.dcnm_interface](https://github.com/CiscoDevNet/ansible-dcnm/blob/main/docs/cisco.dcnm.dcnm_interface_module.rst)|DCNM Ansible Module for managing interfaces.
[cisco.dcnm.dcnm_inventory](https://github.com/CiscoDevNet/ansible-dcnm/blob/main/docs/cisco.dcnm.dcnm_inventory_module.rst)|Add and remove Switches from a DCNM managed VXLAN fabric.
[cisco.dcnm.dcnm_links](https://github.com/CiscoDevNet/ansible-dcnm/blob/main/docs/cisco.dcnm.dcnm_links_module.rst)|DCNM ansible module for managing Links.
[cisco.dcnm.dcnm_maintenance_mode](https://github.com/CiscoDevNet/ansible-dcnm/blob/main/docs/cisco.dcnm.dcnm_maintenance_mode_module.rst)|Manage Maintenance Mode Configuration of NX-OS Switches.
[cisco.dcnm.dcnm_network](https://github.com/CiscoDevNet/ansible-dcnm/blob/main/docs/cisco.dcnm.dcnm_network_module.rst)|Add and remove Networks from a DCNM managed VXLAN fabric.
[cisco.dcnm.dcnm_policy](https://github.com/CiscoDevNet/ansible-dcnm/blob/main/docs/cisco.dcnm.dcnm_policy_module.rst)|DCNM Ansible Module for managing policies.
[cisco.dcnm.dcnm_resource_manager](https://github.com/CiscoDevNet/ansible-dcnm/blob/main/docs/cisco.dcnm.dcnm_resource_manager_module.rst)|DCNM ansible module for managing resources.
Expand Down
330 changes: 330 additions & 0 deletions docs/cisco.dcnm.dcnm_bootflash_module.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,330 @@
.. _cisco.dcnm.dcnm_bootflash_module:


*************************
cisco.dcnm.dcnm_bootflash
*************************

**Bootflash management for Nexus switches.**


Version added: 3.5.0

.. contents::
:local:
:depth: 1


Synopsis
--------
- Delete, query bootflash files.




Parameters
----------

.. raw:: html

<table border=0 cellpadding=0 class="documentation-table">
<tr>
<th colspan="4">Parameter</th>
<th>Choices/<font color="blue">Defaults</font></th>
<th width="100%">Comments</th>
</tr>
<tr>
<td colspan="4">
<div class="ansibleOptionAnchor" id="parameter-"></div>
<b>config</b>
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
<div style="font-size: small">
<span style="color: purple">dictionary</span>
/ <span style="color: red">required</span>
</div>
</td>
<td>
</td>
<td>
<div>Configuration parameters for the module.</div>
</td>
</tr>
<tr>
<td class="elbow-placeholder"></td>
<td colspan="3">
<div class="ansibleOptionAnchor" id="parameter-"></div>
<b>switches</b>
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
<div style="font-size: small">
<span style="color: purple">list</span>
/ <span style="color: purple">elements=dictionary</span>
</div>
</td>
<td>
</td>
<td>
<div>List of dictionaries containing switches on which query or delete operations are executed.</div>
</td>
</tr>
<tr>
<td class="elbow-placeholder"></td>
<td class="elbow-placeholder"></td>
<td colspan="2">
<div class="ansibleOptionAnchor" id="parameter-"></div>
<b>ip_address</b>
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
<div style="font-size: small">
<span style="color: purple">string</span>
/ <span style="color: red">required</span>
</div>
</td>
<td>
</td>
<td>
<div>The ip address of a switch.</div>
</td>
</tr>
<tr>
<td class="elbow-placeholder"></td>
<td class="elbow-placeholder"></td>
<td colspan="2">
<div class="ansibleOptionAnchor" id="parameter-"></div>
<b>targets</b>
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
<div style="font-size: small">
<span style="color: purple">list</span>
/ <span style="color: purple">elements=dictionary</span>
</div>
</td>
<td>
<b>Default:</b><br/><div style="color: blue">[]</div>
</td>
<td>
<div>List of dictionaries containing options for files to be deleted or queried.</div>
</td>
</tr>
<tr>
<td class="elbow-placeholder"></td>
<td class="elbow-placeholder"></td>
<td class="elbow-placeholder"></td>
<td colspan="1">
<div class="ansibleOptionAnchor" id="parameter-"></div>
<b>filepath</b>
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
<div style="font-size: small">
<span style="color: purple">string</span>
/ <span style="color: red">required</span>
</div>
</td>
<td>
</td>
<td>
<div>The path to the file to be deleted or queried. Only files in the root directory of the partition are currently supported.</div>
</td>
</tr>
<tr>
<td class="elbow-placeholder"></td>
<td class="elbow-placeholder"></td>
<td class="elbow-placeholder"></td>
<td colspan="1">
<div class="ansibleOptionAnchor" id="parameter-"></div>
<b>supervisor</b>
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
<div style="font-size: small">
<span style="color: purple">string</span>
</div>
</td>
<td>
<ul style="margin: 0; padding: 0"><b>Choices:</b>
<li><div style="color: blue"><b>active</b>&nbsp;&larr;</div></li>
<li>standby</li>
</ul>
</td>
<td>
<div>Either active or standby. The supervisor containing the filepath.</div>
</td>
</tr>


<tr>
<td class="elbow-placeholder"></td>
<td colspan="3">
<div class="ansibleOptionAnchor" id="parameter-"></div>
<b>targets</b>
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
<div style="font-size: small">
<span style="color: purple">list</span>
/ <span style="color: purple">elements=dictionary</span>
</div>
</td>
<td>
<b>Default:</b><br/><div style="color: blue">[]</div>
</td>
<td>
<div>List of dictionaries containing options for files to be deleted or queried.</div>
</td>
</tr>
<tr>
<td class="elbow-placeholder"></td>
<td class="elbow-placeholder"></td>
<td colspan="2">
<div class="ansibleOptionAnchor" id="parameter-"></div>
<b>filepath</b>
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
<div style="font-size: small">
<span style="color: purple">string</span>
/ <span style="color: red">required</span>
</div>
</td>
<td>
</td>
<td>
<div>The path to the file to be deleted or queried.</div>
</td>
</tr>
<tr>
<td class="elbow-placeholder"></td>
<td class="elbow-placeholder"></td>
<td colspan="2">
<div class="ansibleOptionAnchor" id="parameter-"></div>
<b>supervisor</b>
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
<div style="font-size: small">
<span style="color: purple">string</span>
</div>
</td>
<td>
<ul style="margin: 0; padding: 0"><b>Choices:</b>
<li><div style="color: blue"><b>active</b>&nbsp;&larr;</div></li>
<li>standby</li>
</ul>
</td>
<td>
<div>Either active or standby. The supervisor containing the filepath.</div>
</td>
</tr>


<tr>
<td colspan="4">
<div class="ansibleOptionAnchor" id="parameter-"></div>
<b>state</b>
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
<div style="font-size: small">
<span style="color: purple">string</span>
</div>
</td>
<td>
<ul style="margin: 0; padding: 0"><b>Choices:</b>
<li>deleted</li>
<li><div style="color: blue"><b>query</b>&nbsp;&larr;</div></li>
</ul>
</td>
<td>
<div>The state of the feature or object after module completion</div>
</td>
</tr>
</table>
<br/>




Examples
--------

.. code-block:: yaml
# This module supports the following states:
#
# deleted:
# Delete files from the bootflash of one or more switches.
#
# If an image is in use by a device, the module will fail. Use
# dcnm_image_upgrade module, state deleted, to detach image policies
# containing images to be deleted.
#
# query:
#
# Return information for one or more files.
#
# Delete two files from each of three switches.
- name: Delete two files from each of two switches
cisco.dcnm.dcnm_bootflash:
state: deleted
config:
targets:
- filepath: bootflash:/foo.txt
supervisor: active
- filepath: bootflash:/bar.txt
supervisor: standby
switches:
- ip_address: 192.168.1.1
- ip_address: 192.168.1.2
- ip_address: 192.168.1.3
# Delete two files from switch 192.168.1.1 and switch 192.168.1.2:
# - foo.txt on the active supervisor's bootflash: device.
# - bar.txt on the standby supervisor's bootflash: device.
# Delete potentially multiple files from switch 192.168.1.3:
# - All txt files on the standby supervisor's bootflash: device
# that match the pattern 202401??.txt, e.g. 20240123.txt.
# Delete potentially multiple files from switch 192.168.1.4:
# - All txt files on all flash devices on active supervisor.
- name: Delete files
cisco.dcnm.dcnm_bootflash:
state: deleted
config:
targets:
- filepath: bootflash:/foo.txt
supervisor: active
- filepath: bootflash:/bar.txt
supervisor: standby
switches:
- ip_address: 192.168.1.1
- ip_address: 192.168.1.2
- ip_address: 192.168.1.3
targets:
- filepath: bootflash:/202401??.txt
supervisor: standby
- ip_address: 192.168.1.4
targets:
- filepath: "*:/*.txt"
supervisor: active
register: result
- name: print result
ansible.builtin.debug:
var: result
# Query the controller for information about one file on three switches.
# Since the default for supervisor is "active", the module will query the
# active supervisor's bootflash: device.
- name: Query file on three switches
cisco.dcnm.dcnm_bootflash:
state: query
config:
targets:
- filepath: bootflash:/foo.txt
switches:
- ip_address: 192.168.1.1
- ip_address: 192.168.1.2
- ip_address: 192.168.1.3
register: result
- name: print result
ansible.builtin.debug:
var: result
Status
------


Authors
~~~~~~~

- Allen Robel (@quantumonion)
3 changes: 3 additions & 0 deletions docs/cisco.dcnm.dcnm_fabric_module.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6454,6 +6454,9 @@ Examples
BGP_AS: 65000
ANYCAST_GW_MAC: 0001.aabb.ccdd
UNDERLAY_IS_V6: false
EXTRA_CONF_LEAF: |
interface Ethernet1/1-16
description managed by NDFC
DEPLOY: false
- FABRIC_NAME: MSD_Fabric
FABRIC_TYPE: VXLAN_EVPN_MSD
Expand Down
1 change: 1 addition & 0 deletions docs/cisco.dcnm.dcnm_image_policy_module.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ Parameters
</div>
</td>
<td>
<b>Default:</b><br/><div style="color: blue">[]</div>
</td>
<td>
<div>List of dictionaries containing image policy parameters</div>
Expand Down
1 change: 1 addition & 0 deletions docs/cisco.dcnm.dcnm_image_upload_module.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ Parameters
</div>
</td>
<td>
<b>Default:</b><br/><div style="color: blue">[]</div>
</td>
<td>
<div>A dictionary of images and other related information that is required to download the same.</div>
Expand Down
1 change: 1 addition & 0 deletions docs/cisco.dcnm.dcnm_interface_module.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ Parameters
</div>
</td>
<td>
<b>Default:</b><br/><div style="color: blue">[]</div>
</td>
<td>
<div>A dictionary of interface operations</div>
Expand Down
1 change: 1 addition & 0 deletions docs/cisco.dcnm.dcnm_links_module.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ Parameters
</div>
</td>
<td>
<b>Default:</b><br/><div style="color: blue">[]</div>
</td>
<td>
<div>A list of dictionaries containing Links information.</div>
Expand Down
Loading

0 comments on commit 9677e5b

Please sign in to comment.