pre cleanup services (#66188)

Signed-off-by: rohitthakur2590 <rohitthakur2590@outlook.com>
This commit is contained in:
Rohit 2020-01-06 16:20:36 +05:30 committed by GitHub
parent 6b1dff64d0
commit 8ae5e34127
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,6 +25,12 @@
that:
- "result.changed == false"
- name: Delete services
vyos_config: &del
lines:
- delete service lldp
- delete protocols static
- name: Configuring when commands starts with whitespaces
vyos_config:
src: "{{ role_path }}/tests/cli/config.cfg"
@ -36,18 +42,8 @@
- '"set service lldp" in result.commands'
- '"set protocols static" in result.commands'
- name: Delete description
vyos_config:
lines:
- delete service lldp
- delete protocols static
register: result
- assert:
that:
- "result.changed == true"
- '"delete service lldp" in result.commands'
- '"delete protocols static" in result.commands'
- name: Delete services
vyos_config: *del
- name: teardown
vyos_config: