-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #176 from CiscoDevNet/2.3.0
Release 2.3.0
- Loading branch information
Showing
7 changed files
with
282 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
tests/integration/targets/dcnm_network/tests/dcnm/self-contained-tests/sm_mcast_params.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
- name: Setup - Remove all existing networks | ||
cisco.dcnm.dcnm_network: | ||
fabric: "{{ ansible_it_fabric }}" | ||
state: deleted | ||
|
||
- name: Test mcast parameters for state merged | ||
cisco.dcnm.dcnm_network: | ||
fabric: "{{ ansible_it_fabric }}" | ||
state: merged | ||
config: | ||
- net_name: ansible-net13 | ||
vrf_name: ansible-vrf-int1 | ||
net_id: 7009 | ||
vlan_id: 3505 | ||
gw_ip_subnet: '152.168.30.1/24' | ||
mtu_l3intf: 7600 | ||
arp_suppress: False | ||
int_desc: 'test interface' | ||
is_l2only: False | ||
vlan_name: testvlan | ||
multicast_group_address: '224.5.5.5' | ||
attach: | ||
- ip_address: "{{ ansible_switch1 }}" | ||
ports: [] | ||
deploy: True | ||
register: result | ||
|
||
- assert: | ||
that: | ||
- 'result.changed == true' | ||
|
||
- name: Query fabric state until networkStatus transitions to DEPLOYED state | ||
cisco.dcnm.dcnm_network: | ||
fabric: "{{ ansible_it_fabric }}" | ||
state: query | ||
register: result | ||
until: | ||
- "result.response[0].parent.networkStatus is search('DEPLOYED')" | ||
retries: 30 | ||
delay: 2 | ||
|
||
- assert: | ||
that: | ||
- "result.response[0].parent.networkTemplateConfig.mcastGroup is search('224.5.5.5')" |
76 changes: 76 additions & 0 deletions
76
tests/integration/targets/dcnm_network/tests/dcnm/self-contained-tests/sm_mcast_update.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
- name: Setup - Remove all existing networks | ||
cisco.dcnm.dcnm_network: | ||
fabric: "{{ ansible_it_fabric }}" | ||
state: deleted | ||
|
||
- name: Create network with initial DEFAULT mcast parameter value | ||
cisco.dcnm.dcnm_network: | ||
fabric: "{{ ansible_it_fabric }}" | ||
state: merged | ||
config: | ||
- net_name: ansible-net13 | ||
vrf_name: ansible-vrf-int1 | ||
net_id: 7009 | ||
vlan_id: 3505 | ||
gw_ip_subnet: '152.168.30.1/24' | ||
mtu_l3intf: 7600 | ||
arp_suppress: False | ||
int_desc: 'test interface' | ||
is_l2only: False | ||
vlan_name: testvlan | ||
dhcp_loopback_id: 0 | ||
attach: | ||
- ip_address: "{{ ansible_switch1 }}" | ||
ports: [] | ||
deploy: True | ||
register: result | ||
|
||
- name: Query fabric state until networkStatus transitions to DEPLOYED state | ||
cisco.dcnm.dcnm_network: | ||
fabric: "{{ ansible_it_fabric }}" | ||
state: query | ||
register: result | ||
until: | ||
- "result.response[0].parent.networkStatus is search('DEPLOYED')" | ||
retries: 30 | ||
delay: 2 | ||
|
||
- assert: | ||
that: | ||
- "result.response[0].parent.networkTemplateConfig.mcastGroup is search('239.1.1.1')" | ||
|
||
- name: Change mcast parameter values | ||
cisco.dcnm.dcnm_network: | ||
fabric: "{{ ansible_it_fabric }}" | ||
state: merged | ||
config: | ||
- net_name: ansible-net13 | ||
vrf_name: ansible-vrf-int1 | ||
net_id: 7009 | ||
vlan_id: 3505 | ||
gw_ip_subnet: '152.168.30.1/24' | ||
mtu_l3intf: 7600 | ||
arp_suppress: False | ||
int_desc: 'test interface' | ||
is_l2only: False | ||
vlan_name: testvlan | ||
multicast_group_address: '230.55.24.155' | ||
attach: | ||
- ip_address: "{{ ansible_switch1 }}" | ||
ports: [] | ||
deploy: True | ||
register: result | ||
|
||
- name: Query fabric state until networkStatus transitions to DEPLOYED state | ||
cisco.dcnm.dcnm_network: | ||
fabric: "{{ ansible_it_fabric }}" | ||
state: query | ||
register: result | ||
until: | ||
- "result.response[0].parent.networkStatus is search('DEPLOYED')" | ||
retries: 30 | ||
delay: 2 | ||
|
||
- assert: | ||
that: | ||
- "result.response[0].parent.networkTemplateConfig.mcastGroup is search('230.55.24.155')" |
Oops, something went wrong.