|
|
|
@ -9,18 +9,21 @@
|
|
|
|
|
- name: "Enable feature BGP"
|
|
|
|
|
nxos_feature:
|
|
|
|
|
feature: bgp
|
|
|
|
|
provider: "{{ connection }}"
|
|
|
|
|
state: enabled
|
|
|
|
|
ignore_errors: yes
|
|
|
|
|
|
|
|
|
|
- name: "Enable feature nv overlay"
|
|
|
|
|
nxos_feature:
|
|
|
|
|
feature: nv overlay
|
|
|
|
|
provider: "{{ connection }}"
|
|
|
|
|
state: enabled
|
|
|
|
|
ignore_errors: yes
|
|
|
|
|
|
|
|
|
|
- name: "Setup"
|
|
|
|
|
nxos_bgp: &remove
|
|
|
|
|
asn: 65535
|
|
|
|
|
provider: "{{ connection }}"
|
|
|
|
|
state: absent
|
|
|
|
|
ignore_errors: yes
|
|
|
|
|
|
|
|
|
@ -38,6 +41,7 @@
|
|
|
|
|
afi: ipv4
|
|
|
|
|
safi: unicast
|
|
|
|
|
advertise_l2vpn_evpn: "{{advertise_l2vpn_evpn|default(omit)}}"
|
|
|
|
|
provider: "{{ connection }}"
|
|
|
|
|
state: present
|
|
|
|
|
register: result
|
|
|
|
|
|
|
|
|
@ -59,6 +63,7 @@
|
|
|
|
|
vrf: testing
|
|
|
|
|
afi: ipv4
|
|
|
|
|
safi: unicast
|
|
|
|
|
provider: "{{ connection }}"
|
|
|
|
|
state: absent
|
|
|
|
|
register: result
|
|
|
|
|
|
|
|
|
@ -77,6 +82,7 @@
|
|
|
|
|
additional_paths_send: true
|
|
|
|
|
client_to_client: False
|
|
|
|
|
default_information_originate: true
|
|
|
|
|
provider: "{{ connection }}"
|
|
|
|
|
state: present
|
|
|
|
|
with_items: "{{ vrfs }}"
|
|
|
|
|
register: result
|
|
|
|
@ -103,6 +109,7 @@
|
|
|
|
|
additional_paths_send: False
|
|
|
|
|
client_to_client: True
|
|
|
|
|
default_information_originate: False
|
|
|
|
|
provider: "{{ connection }}"
|
|
|
|
|
state: present
|
|
|
|
|
with_items: "{{ vrfs }}"
|
|
|
|
|
register: result
|
|
|
|
@ -122,6 +129,7 @@
|
|
|
|
|
vrf: "{{ item }}"
|
|
|
|
|
afi: ipv4
|
|
|
|
|
safi: unicast
|
|
|
|
|
provider: "{{ connection }}"
|
|
|
|
|
state: absent
|
|
|
|
|
with_items: "{{ vrfs }}"
|
|
|
|
|
register: result
|
|
|
|
@ -145,6 +153,7 @@
|
|
|
|
|
suppress_inactive: true
|
|
|
|
|
table_map: RouteMap
|
|
|
|
|
table_map_filter: true
|
|
|
|
|
provider: "{{ connection }}"
|
|
|
|
|
state: present
|
|
|
|
|
with_items: "{{ vrfs }}"
|
|
|
|
|
register: result
|
|
|
|
@ -175,6 +184,7 @@
|
|
|
|
|
suppress_inactive: False
|
|
|
|
|
table_map: default
|
|
|
|
|
table_map_filter: False
|
|
|
|
|
provider: "{{ connection }}"
|
|
|
|
|
state: present
|
|
|
|
|
with_items: "{{ vrfs }}"
|
|
|
|
|
register: result
|
|
|
|
@ -209,6 +219,7 @@
|
|
|
|
|
inject_map: [['lax_inject_map', 'lax_exist_map'], ['nyc_inject_map', 'nyc_exist_map', 'copy-attributes'], ['fsd_inject_map', 'fsd_exist_map']]
|
|
|
|
|
networks: [['10.0.0.0/16', 'routemap_LA'], ['192.168.1.1/32', 'Chicago'], ['192.168.2.0/24'], ['192.168.3.0/24', 'routemap_NYC']]
|
|
|
|
|
redistribute: [['direct', 'rm_direct'], ['lisp', 'rm_lisp']]
|
|
|
|
|
provider: "{{ connection }}"
|
|
|
|
|
state: present
|
|
|
|
|
with_items: "{{ vrfs }}"
|
|
|
|
|
register: result
|
|
|
|
@ -236,6 +247,7 @@
|
|
|
|
|
inject_map: [['fsd_inject_map', 'fsd_exist_map']]
|
|
|
|
|
networks: [['192.168.2.0/24']]
|
|
|
|
|
redistribute: [['lisp', 'rm_lisp']]
|
|
|
|
|
provider: "{{ connection }}"
|
|
|
|
|
state: present
|
|
|
|
|
with_items: "{{ vrfs }}"
|
|
|
|
|
register: result
|
|
|
|
@ -263,6 +275,7 @@
|
|
|
|
|
inject_map: default
|
|
|
|
|
networks: default
|
|
|
|
|
redistribute: default
|
|
|
|
|
provider: "{{ connection }}"
|
|
|
|
|
state: present
|
|
|
|
|
with_items: "{{ vrfs }}"
|
|
|
|
|
register: result
|
|
|
|
@ -299,11 +312,13 @@
|
|
|
|
|
- name: "Disable feature bgp"
|
|
|
|
|
nxos_feature: &disable_bgp
|
|
|
|
|
feature: bgp
|
|
|
|
|
provider: "{{ connection }}"
|
|
|
|
|
state: disabled
|
|
|
|
|
|
|
|
|
|
- name: "Disable feature nv overlay"
|
|
|
|
|
nxos_feature: &disable_nvoverlay
|
|
|
|
|
feature: nv overlay
|
|
|
|
|
provider: "{{ connection }}"
|
|
|
|
|
state: disabled
|
|
|
|
|
ignore_errors: yes
|
|
|
|
|
|
|
|
|
|