Skip to content

Commit

Permalink
Made changes to documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
shrsr authored and lhercot committed Dec 10, 2020
1 parent 279aaff commit 8f33143
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 5 deletions.
10 changes: 5 additions & 5 deletions plugins/modules/aci_node_mgmt_epg.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
required: true
bd:
description:
- The in-band bridge domain which is used when type is in band
- The in-band bridge domain which is used when type is in_band
type: str
encap:
description:
- The in-band access encapsulation which is used when type is in band
- The in-band access encapsulation which is used when type is in_band
type: str
state:
description:
Expand Down Expand Up @@ -76,7 +76,7 @@
username: admin
password: SomeSecretePassword
epg: default
band_type: in_band
type: in_band
encap: vlan-1
bd: bd1
state: query
Expand All @@ -87,7 +87,7 @@
host: "Host IP"
username: admin
password: SomeSecretePassword
band_type: in_band
type: in_band
state: query
delegate_to: localhost
Expand All @@ -96,7 +96,7 @@
host: "Host IP"
username: admin
password: SomeSecretePassword
band_type: out_of_band
type: out_of_band
state: query
delegate_to: localhost
Expand Down
24 changes: 24 additions & 0 deletions tests/integration/targets/aci_node_mgmt_epg/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,26 @@
state: present
register: add_nm_outofband_2

- name: Add another node mgmt in_band epg in normal mode with change made to bd
aci_node_mgmt_epg:
<<: *aci_info
type: in_band
epg: ansible-inband-2
encap: vlan-2
bd: bd4
state: present
register: add_nm_inband_bd4

- name: Add another node mgmt in_band epg in normal mode with change made to encap
aci_node_mgmt_epg:
<<: *aci_info
type: in_band
epg: ansible-inband-2
encap: vlan-4
bd: bd4
state: present
register: add_nm_inband_encap4

- name: Verify add operations
assert:
that:
Expand All @@ -133,6 +153,10 @@
- add_nm_inband_2.current.0.mgmtInB.children.0.mgmtRsMgmtBD.attributes.tnFvBDName == 'bd2'
- add_nm_outofband_2 is changed
- add_nm_outofband_2.current.0.mgmtOoB.attributes.name == 'ansible-outofband-2'
- add_nm_inband_bd4 is changed
- add_nm_inband_bd4.current.0.mgmtInB.children.0.mgmtRsMgmtBD.attributes.tnFvBDName == 'bd4'
- add_nm_inband_encap4 is changed
- add_nm_inband_encap4.current.0.mgmtInB.attributes.encap == 'vlan-4'

# Query operations
- name: Query node mgmt in_band epg
Expand Down

0 comments on commit 8f33143

Please sign in to comment.