--- - name: Ansible resource module example for sonic_ip_neighbor hosts: datacenter gather_facts: False connection: httpapi collections: - dellemc.enterprise_sonic tasks: - name: Delete all sonic_ip_neighbor: config: state: deleted - name: Merge some ip_neighbor configuration sonic_ip_neighbor: config: ipv4_arp_timeout: 1200 ipv4_drop_neighbor_aging_time: 600 ipv6_drop_neighbor_aging_time: 600 ipv6_nd_cache_expiry: 1200 num_local_neigh: 1000 state: merged - name: Override some ip_neighbor configuration sonic_ip_neighbor: config: ipv4_arp_timeout: 1800 ipv4_drop_neighbor_aging_time: 800 num_local_neigh: 1100 state: overridden - name: Replace some ip_neighbor configuration sonic_ip_neighbor: config: ipv4_drop_neighbor_aging_time: 800 ipv6_drop_neighbor_aging_time: 800 state: replaced - name: Delete some ip_neighbor configuration sonic_ip_neighbor: config: ipv4_arp_timeout: 0 ipv4_drop_neighbor_aging_time: 0 state: deleted