mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
meraki/meraki_network - Enable/disable VLANs on network (#48820)
* Redo branch to fix merge commit * Add changelog fragment * Make VLAN settings idempotent * Fix conflict * Change `version_added` to 2.9 instead of 2.8.
This commit is contained in:
committed by
Nathaniel Case
parent
23ddc7738b
commit
a89a2cf33f
@@ -56,7 +56,69 @@
|
||||
type: appliance
|
||||
delegate_to: localhost
|
||||
register: create_net_appliance_no_tz
|
||||
|
||||
|
||||
- name: Enable VLAN support on appliance network
|
||||
meraki_network:
|
||||
auth_key: '{{ auth_key }}'
|
||||
state: present
|
||||
org_name: '{{ test_org_name }}'
|
||||
net_name: IntTestNetworkAppliance
|
||||
enable_vlans: yes
|
||||
delegate_to: localhost
|
||||
register: enable_vlan
|
||||
|
||||
- debug:
|
||||
msg: '{{ enable_vlan }}'
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- enable_vlan.data.enabled == True
|
||||
|
||||
- name: Enable VLAN support on appliance network with idempotency
|
||||
meraki_network:
|
||||
auth_key: '{{ auth_key }}'
|
||||
state: present
|
||||
org_name: '{{ test_org_name }}'
|
||||
net_name: IntTestNetworkAppliance
|
||||
enable_vlans: yes
|
||||
delegate_to: localhost
|
||||
register: enable_vlan_idempotent
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- enable_vlan_idempotent is not changed
|
||||
|
||||
- name: Disable VLAN support on appliance network
|
||||
meraki_network:
|
||||
auth_key: '{{ auth_key }}'
|
||||
state: present
|
||||
org_name: '{{ test_org_name }}'
|
||||
net_name: IntTestNetworkAppliance
|
||||
enable_vlans: no
|
||||
delegate_to: localhost
|
||||
register: disable_vlan
|
||||
|
||||
- debug:
|
||||
msg: '{{ disable_vlan }}'
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- disable_vlan.data.enabled == False
|
||||
|
||||
- name: Disable VLAN support on appliance network with idempotency
|
||||
meraki_network:
|
||||
auth_key: '{{ auth_key }}'
|
||||
state: present
|
||||
org_name: '{{ test_org_name }}'
|
||||
net_name: IntTestNetworkAppliance
|
||||
enable_vlans: no
|
||||
delegate_to: localhost
|
||||
register: disable_vlan_idempotent
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- disable_vlan_idempotent is not changed
|
||||
|
||||
- name: Create network with type wireless
|
||||
meraki_network:
|
||||
auth_key: '{{ auth_key }}'
|
||||
@@ -216,7 +278,6 @@
|
||||
that:
|
||||
- 'net_query_one.data.name == "IntTestNetworkSwitch"'
|
||||
- 'query_config_template.data.name == "{{ test_template_name }}"'
|
||||
|
||||
|
||||
#############################################################################
|
||||
# Tear down starts here
|
||||
|
||||
Reference in New Issue
Block a user