Skip to content

Instantly share code, notes, and snippets.

@NilashishC
Created December 26, 2019 08:31
Show Gist options
  • Save NilashishC/eea773491d39fe80812bcc84510a2606 to your computer and use it in GitHub Desktop.
Save NilashishC/eea773491d39fe80812bcc84510a2606 to your computer and use it in GitHub Desktop.
---
- hosts: nxos
gather_facts: no
tasks:
- nxos_l3_interfaces:
state: deleted
tags:
- deleted
- nxos_l3_interfaces:
config:
- name: Ethernet1/8
ipv4:
- address: 192.0.2.1/24
tag: 5
- address: 192.0.3.1/24
tag: 7
secondary: True
- name: Ethernet1/9
ipv4:
- address: 192.0.4.1/24
state: merged
tags:
- merged
- nxos_l3_interfaces:
config:
- name: Ethernet1/8
ipv6:
- address: fd5d:12c9:2201:2::1/64
tag: 14
state: replaced
tags:
- replaced
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment