mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Add aggregate for junos modules and sub spec validation (#27726)
* Add aggregate for junos modules and sub spec validation * aggregate support of junos modules * aggregate sub spec validation * relevant changes to junos integration test * junos module boilerplate changes * Add new boilerplate for junos modules * Fix CI issues
This commit is contained in:
@@ -122,3 +122,35 @@
|
||||
that:
|
||||
- "result.changed == true"
|
||||
- "'<console>' not in config.xml"
|
||||
|
||||
- name: Configure file logging using aggregate
|
||||
net_logging:
|
||||
aggregate:
|
||||
- {dest: file, name: test-1, facility: pfe, level: critical, active: True}
|
||||
- {dest: file, name: test-2, facility: kernel, level: emergency, active: True}
|
||||
provider: "{{ netconf }}"
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- 'result.changed == true'
|
||||
- result.diff.prepared | search("\+ *file test-1")
|
||||
- result.diff.prepared | search("\+ *pfe critical")
|
||||
- result.diff.prepared | search("\+ *file test-2")
|
||||
- result.diff.prepared | search("\+ *kernel emergency")
|
||||
|
||||
- name: Delete file logging using aggregate
|
||||
net_logging:
|
||||
aggregate:
|
||||
- {dest: file, name: test-1, facility: pfe, level: critical, state: absent}
|
||||
- {dest: file, name: test-2, facility: kernel, level: emergency, state: absent}
|
||||
provider: "{{ netconf }}"
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- 'result.changed == true'
|
||||
- result.diff.prepared | search("\- *file test-1")
|
||||
- result.diff.prepared | search("\- *pfe critical")
|
||||
- result.diff.prepared | search("\- *file test-2")
|
||||
- result.diff.prepared | search("\- *kernel emergency")
|
||||
|
||||
Reference in New Issue
Block a user