-
Notifications
You must be signed in to change notification settings - Fork 59
Expand file tree
/
Copy pathrouterdynamicrouting_info.yaml
More file actions
49 lines (44 loc) · 1.46 KB
/
routerdynamicrouting_info.yaml
File metadata and controls
49 lines (44 loc) · 1.46 KB
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
---
- name: Sample routerdynamicrouting_info playbook
hosts: demo_netscalers
gather_facts: false
tasks:
- name: Get BGP routing summary
delegate_to: localhost
netscaler.adc.routerdynamicrouting_info:
nsip: "{{ nsip }}"
nitro_user: "{{ nitro_user }}"
nitro_pass: "{{ nitro_pass }}"
nitro_protocol: "{{ nitro_protocol }}"
validate_certs: false
commandstring: "show ip bgp summary"
register: bgp_summary
- name: Display BGP summary
ansible.builtin.debug:
var: bgp_summary.info
- name: Get IP routing table
delegate_to: localhost
netscaler.adc.routerdynamicrouting_info:
nsip: "{{ nsip }}"
nitro_user: "{{ nitro_user }}"
nitro_pass: "{{ nitro_pass }}"
nitro_protocol: "{{ nitro_protocol }}"
validate_certs: false
commandstring: "sh ip route"
register: ip_route
- name: Display routing table
ansible.builtin.debug:
var: ip_route.info
- name: Get OSPF neighbor information
delegate_to: localhost
netscaler.adc.routerdynamicrouting_info:
nsip: "{{ nsip }}"
nitro_user: "{{ nitro_user }}"
nitro_pass: "{{ nitro_pass }}"
nitro_protocol: "{{ nitro_protocol }}"
validate_certs: false
commandstring: "show ip ospf neighbor"
register: ospf_neighbors
- name: Display OSPF neighbors
ansible.builtin.debug:
var: ospf_neighbors.info