mirror of https://github.com/ansible/ansible.git
Handling of configurations blocks with end-* at the end of the block (#39843)
* Handling of configurations blocks with end-* at the end of the block (#39673)
* handle end-policy issue
* revert changes in iosxr cliconf
* fix trailing parents not included in difference
* Moving fix to platform specific fix
* pep 8 issues
(cherry picked from commit ef577b71cc
)
* changelog entry
pull/39852/head
parent
4b979742fa
commit
54a229adb9
@ -0,0 +1,2 @@
|
||||
bugfixes:
|
||||
- iosxr_config - handle configuration block with mis-indented sublevel command
|
@ -0,0 +1,7 @@
|
||||
prefix-set ebpg_filter
|
||||
192.168.0.0/16 ge 15 le 30
|
||||
end-set
|
||||
|
||||
interface Loopback999
|
||||
description this is a test interface for prefix-set
|
||||
|
@ -0,0 +1,3 @@
|
||||
prefix-set ebpg_filter
|
||||
192.168.0.0/16 ge 17 le 30
|
||||
end-set
|
@ -0,0 +1,27 @@
|
||||
---
|
||||
- debug: msg="START cli/misplaced_sublevel.yaml on connection={{ ansible_connection }}"
|
||||
|
||||
- name: setup
|
||||
iosxr_config:
|
||||
src: basic/init_prefix_set.j2
|
||||
ignore_errors: yes
|
||||
|
||||
- name: Change prefix-set and new command after prefix-set
|
||||
iosxr_config:
|
||||
src: basic/change_prefix_set.j2
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- "result.changed == true"
|
||||
|
||||
- name: Play same config again to verify no diff in prefix-set also works
|
||||
iosxr_config:
|
||||
src: basic/change_prefix_set.j2
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- "result.changed == true"
|
||||
|
||||
- debug: msg="END cli/misplaced_sublevel.yaml on connection={{ ansible_connection }}"
|
Loading…
Reference in New Issue