1--- 2- debug: 3 msg: Start eos_route_maps replaced integration tests ansible_connection={{ 4 ansible_connection }} 5 6- include_tasks: _remove_config.yaml 7 8- include_tasks: _populate.yaml 9 10- block: 11 12 - name: replace device configuration with given route-map configuration 13 become: true 14 register: result 15 arista.eos.eos_route_maps: &id001 16 config: 17 - route_map: "mapmerge" 18 entries: 19 - action: "permit" 20 sequence: 10 21 match: 22 ipv6: 23 resolved_next_hop: "listr" 24 - action: "deny" 25 sequence: 90 26 set: 27 extcommunity: 28 rt: 29 vpn: "22:11" 30 delete: true 31 ip: 32 unchanged: true 33 state: replaced 34 35 - become: true 36 arista.eos.eos_facts: 37 gather_network_resources: route_maps 38 39 - assert: 40 that: 41 - result.commands|length == 7 42 - result.changed == true 43 - result.commands|symmetric_difference(replaced.commands) == [] 44 - result.after|symmetric_difference(ansible_facts['network_resources']['route_maps']) == [] 45 46 - name: Idempotency check 47 become: true 48 register: result 49 arista.eos.eos_route_maps: *id001 50 51 - assert: 52 that: 53 - result.commands|length == 0 54 - result.changed == false 55 always: 56 57 - include_tasks: _remove_config.yaml 58