6629b9feef
* acl_interfaces
39 lines
1,018 B
YAML
39 lines
1,018 B
YAML
---
|
|
- debug:
|
|
msg: "Start ios_acl_interfaces rendered integration tests ansible_connection={{ ansible_connection }}"
|
|
|
|
- block:
|
|
|
|
- name: Render the commands for provided configuration
|
|
ios_acl_interfaces:
|
|
config:
|
|
- name: GigabitEthernet0/1
|
|
access_groups:
|
|
- afi: ipv4
|
|
acls:
|
|
- name: 110
|
|
direction: in
|
|
- name: 123
|
|
direction: out
|
|
- afi: ipv6
|
|
acls:
|
|
- name: test_v6
|
|
direction: out
|
|
- name: temp_v6
|
|
direction: in
|
|
- name: GigabitEthernet0/2
|
|
access_groups:
|
|
- afi: ipv4
|
|
acls:
|
|
- name: 110
|
|
direction: in
|
|
- name: 123
|
|
direction: out
|
|
state: rendered
|
|
become: yes
|
|
register: result
|
|
|
|
- assert:
|
|
that:
|
|
- "result.changed == false"
|
|
- "result.rendered|symmetric_difference(merged.commands) == []"
|