From 8f3314329cb7a4e7cf60d686cd97399e90d678fd Mon Sep 17 00:00:00 2001 From: ssrish Date: Thu, 10 Dec 2020 10:54:43 -0800 Subject: [PATCH] Made changes to documentation --- plugins/modules/aci_node_mgmt_epg.py | 10 ++++---- .../targets/aci_node_mgmt_epg/tasks/main.yml | 24 +++++++++++++++++++ 2 files changed, 29 insertions(+), 5 deletions(-) diff --git a/plugins/modules/aci_node_mgmt_epg.py b/plugins/modules/aci_node_mgmt_epg.py index f86d06bda..3e59275df 100644 --- a/plugins/modules/aci_node_mgmt_epg.py +++ b/plugins/modules/aci_node_mgmt_epg.py @@ -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: @@ -76,7 +76,7 @@ username: admin password: SomeSecretePassword epg: default - band_type: in_band + type: in_band encap: vlan-1 bd: bd1 state: query @@ -87,7 +87,7 @@ host: "Host IP" username: admin password: SomeSecretePassword - band_type: in_band + type: in_band state: query delegate_to: localhost @@ -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 diff --git a/tests/integration/targets/aci_node_mgmt_epg/tasks/main.yml b/tests/integration/targets/aci_node_mgmt_epg/tasks/main.yml index 059a44c23..5f0f7e9d9 100644 --- a/tests/integration/targets/aci_node_mgmt_epg/tasks/main.yml +++ b/tests/integration/targets/aci_node_mgmt_epg/tasks/main.yml @@ -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: @@ -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