ios aggregate and common argument support (#28316)

*  ios aggregate spec validation
*  ios common argument for aggregate support
This commit is contained in:
Ganesh Nalawade 2017-08-17 12:07:08 +05:30 committed by GitHub
commit 403f6db53f
7 changed files with 201 additions and 108 deletions

View file

@ -107,11 +107,27 @@
- 'result.changed == true'
- '"logging buffered 8000" in result.commands'
- name: Change logging parameters using aggregate
ios_logging:
aggregate:
- { dest: console, level: notifications }
- { dest: buffered, size: 9000 }
authorize: yes
provider: "{{ cli }}"
register: result
- assert:
that:
- 'result.changed == true'
- '"logging buffered 9000" in result.commands'
- '"logging console notifications" in result.commands'
- name: remove logging as collection tearDown
ios_logging:
aggregate:
- { dest: console, level: warnings, state: absent }
- { dest: buffered, size: 8000, state: absent }
- { dest: console, level: notifications }
- { dest: buffered, size: 9000 }
state: absent
authorize: yes
provider: "{{ cli }}"
register: result