-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure_bgp.yaml
79 lines (60 loc) · 1.78 KB
/
configure_bgp.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
- name: Configure BGP on Cisco NX-OS router nxos-02
hosts: nxos-01
gather_facts: false
tasks:
- name: configuring bgp in nxos-01
cisco.nxos.nxos_bgp_global:
config:
router_id: "1.1.1.1"
as_number: 65000
neighbors:
- neighbor_address: 192.168.255.189
remote_as: 65001
- name: Configure BGP on Cisco NX-OS router nxos-02
hosts: nxos-02
gather_facts: no
tasks:
- name: config bgp in nxos-02
cisco.nxos.nxos_bgp_global:
config:
router_id: "2.2.2.2"
as_number: 65001
neighbors:
- neighbor_address: 192.168.255.201
remote_as: 65000
- name: configure address family in bgp
hosts: nx_os
gather_facts: no
tasks:
- name: config
cisco.nxos.nxos_bgp_address_family:
config:
address_family:
- afi: ipv4
safi: unicast
- name: configuring neighbor address family in nxos-01
hosts: nxos-01
gather_facts: false
tasks:
- name: config address family in neighbor
cisco.nxos.nxos_bgp_neighbor_address_family:
config:
as_number: 65000
neighbors:
- neighbor_address: 192.168.255.189
address_family:
- afi: ipv4
safi: unicast
- name: configuring neighbor address family in nxos-02
hosts: nxos-02
gather_facts: no
tasks:
- name: config address family in neighbor
cisco.nxos.nxos_bgp_neighbor_address_family:
config:
as_number: 65001
neighbors:
- neighbor_address: 192.168.255.201
address_family:
- afi: ipv4
safi: unicast