Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mikewiebe committed Oct 22, 2021
1 parent 768a5ee commit fe9da0a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 5 deletions.
24 changes: 21 additions & 3 deletions docs/cisco.dcnm.dcnm_rest_module.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Parameters
<tr>
<td colspan="1">
<div class="ansibleOptionAnchor" id="parameter-"></div>
<b>json_data</b>
<b>data</b>
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
<div style="font-size: small">
<span style="color: purple">-</span>
Expand All @@ -45,7 +45,8 @@ Parameters
<td>
</td>
<td>
<div>Additional JSON data to include with the REST API call</div>
<div>Additional data in JSON or TEXT to include with the REST API call</div>
<div style="font-size: small; color: darkgreen"><br/>aliases: json_data</div>
</td>
</tr>
<tr>
Expand Down Expand Up @@ -76,7 +77,7 @@ Parameters
<b>path</b>
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
<div style="font-size: small">
<span style="color: purple">-</span>
<span style="color: purple">string</span>
/ <span style="color: red">required</span>
</div>
</td>
Expand Down Expand Up @@ -108,6 +109,23 @@ Examples
method: GET
path: /rest/control/fabrics

- name: Set deployment to false in lanAttachList for vrf
dcnm_rest:
method: POST
path: /rest/top-down/fabrics/fabric1/vrfs/attachments
json_data: '[{"vrfName":"sales66_vrf1","lanAttachList":[{"fabric":"fabric1","vrfName":"sales66_vrf1","serialNumber":"FDO21392QKM","vlan":2000,"freeformConfig":"","deployment":false,"extensionValues":"","instanceValues":"{"loopbackId":"","loopbackIpAddress":"","loopbackIpV6Address":""}"}]}]'

# Read payload data from file and validate a template
- set_fact:
data: "{{ lookup('file', 'validate_payload') }}"

- name: Validate a template
cisco.dcnm.dcnm_rest:
method: POST
path: /fm/fmrest/config/templates/validate
json_data: "{{ data }}"
register: result



Return Values
Expand Down
4 changes: 2 additions & 2 deletions docs/cisco.dcnm.dcnm_vrf_module.rst
Original file line number Diff line number Diff line change
Expand Up @@ -521,8 +521,8 @@ Examples
- ip_address: 192.168.1.224
- ip_address: 192.168.1.225
vrf_lite:
# All parameters under vrf_lite except peer_vrf are optional and
# will be supplied by DCNM when omitted in the playbook
# All parameters under vrf_lite except peer_vrf are optional and
# will be supplied by DCNM when omitted in the playbook
- peer_vrf: test_vrf_1 # peer_vrf is mandatory
interface: Ethernet1/16 # optional
ipv4_addr: 10.33.0.2/30 # optional
Expand Down

0 comments on commit fe9da0a

Please sign in to comment.