Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion roles/run/tasks/health_checks/eos.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
- name: Parse bgp summary
ansible.utils.cli_parse:
command: "show ip bgp summary"
command: show ip bgp summary
parser:
name: ansible.netcommon.content_templates
set_fact: bgp_health
Expand Down
2 changes: 1 addition & 1 deletion roles/run/tasks/health_checks/ios.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
- name: Parse bgp summary
ansible.utils.cli_parse:
command: "show bgp summary"
command: show bgp summary
parser:
name: ansible.netcommon.content_templates
set_fact: bgp_health
2 changes: 1 addition & 1 deletion roles/run/tasks/health_checks/iosxr.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
- name: Parse bgp summary
ansible.utils.cli_parse:
command: "show bgp summary"
command: show bgp summary
parser:
name: ansible.netcommon.content_templates
set_fact: bgp_health
3 changes: 1 addition & 2 deletions roles/run/tasks/health_checks/junos.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
---
- name: Parse bgp summary
ansible.utils.cli_parse:
command: "show bgp summary"
command: show bgp summary
parser:
name: ansible.netcommon.content_templates
set_fact: bgp_health


- name: Show Summary facts
ansible.builtin.debug:
msg: "{{ bgp_health }}"
2 changes: 1 addition & 1 deletion roles/run/tasks/health_checks/nxos.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
- name: Parse bgp summary
ansible.utils.cli_parse:
command: "show ip bgp summary"
command: show ip bgp summary
parser:
name: ansible.netcommon.content_templates
set_fact: bgp_health
2 changes: 1 addition & 1 deletion roles/run/tasks/health_checks/vyos.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
- name: Parse bgp summary
ansible.utils.cli_parse:
command: "show ip bgp summary"
command: show ip bgp summary
parser:
name: ansible.netcommon.content_templates
set_fact: bgp_health
2 changes: 1 addition & 1 deletion roles/run/tasks/includes/configure.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
ansible.builtin.include_role:
name: network.base.resource_manager
vars:
operation: 'configure'
operation: configure
2 changes: 1 addition & 1 deletion roles/run/tasks/includes/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
ansible.builtin.include_role:
name: network.base.resource_manager
vars:
operation: 'deploy'
operation: deploy
resources: "{{ bgp_resources }}"
4 changes: 2 additions & 2 deletions roles/run/tasks/includes/detect.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
ansible.builtin.include_role:
name: network.base.resource_manager
vars:
operation: 'detect'
state: 'replaced'
operation: detect
state: replaced
resources: "{{ bgp_resources }}"
2 changes: 1 addition & 1 deletion roles/run/tasks/includes/gather.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
ansible.builtin.include_role:
name: network.base.resource_manager
vars:
operation: 'gather'
operation: gather
resources: "{{ bgp_resources }}"
4 changes: 2 additions & 2 deletions roles/run/tasks/includes/health_check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

- name: Set health checks fact
ansible.builtin.set_fact:
health_checks: "{{ bgp_health | network.bgp.health_check_view(operation) }}"
health_checks: "{{ bgp_health | network.bgp.health_check_view(operation) }}"

- name: BGP health checks
ansible.builtin.debug:
var: health_checks
var: health_checks
failed_when: "'unsuccessful' == health_checks.status"
2 changes: 1 addition & 1 deletion roles/run/tasks/includes/health_checks/eos.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
- name: Parse bgp summary
ansible.utils.cli_parse:
command: "show ip bgp summary"
command: show ip bgp summary
parser:
name: ansible.netcommon.content_templates
set_fact: bgp_health
2 changes: 1 addition & 1 deletion roles/run/tasks/includes/health_checks/ios.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
- name: Parse bgp summary
ansible.utils.cli_parse:
command: "show bgp summary"
command: show bgp summary
parser:
name: ansible.netcommon.content_templates
set_fact: bgp_health
2 changes: 1 addition & 1 deletion roles/run/tasks/includes/health_checks/iosxr.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
- name: Parse bgp summary
ansible.utils.cli_parse:
command: "show bgp summary"
command: show bgp summary
parser:
name: ansible.netcommon.content_templates
set_fact: bgp_health
3 changes: 1 addition & 2 deletions roles/run/tasks/includes/health_checks/junos.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
---
- name: Parse bgp summary
ansible.utils.cli_parse:
command: "show bgp summary"
command: show bgp summary
parser:
name: ansible.netcommon.content_templates
set_fact: bgp_health


- name: Show Summary facts
ansible.builtin.debug:
msg: "{{ bgp_health }}"
2 changes: 1 addition & 1 deletion roles/run/tasks/includes/health_checks/nxos.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
- name: Parse bgp summary
ansible.utils.cli_parse:
command: "show ip bgp summary"
command: show ip bgp summary
parser:
name: ansible.netcommon.content_templates
set_fact: bgp_health
2 changes: 1 addition & 1 deletion roles/run/tasks/includes/health_checks/vyos.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
- name: Parse bgp summary
ansible.utils.cli_parse:
command: "show ip bgp summary"
command: show ip bgp summary
parser:
name: ansible.netcommon.content_templates
set_fact: bgp_health
2 changes: 1 addition & 1 deletion roles/run/tasks/includes/list.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
ansible.builtin.include_role:
name: network.base.resource_manager
vars:
operation: 'list'
operation: list
2 changes: 1 addition & 1 deletion roles/run/tasks/includes/persist.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
ansible.builtin.include_role:
name: network.base.resource_manager
vars:
operation: 'persist'
operation: persist
resources: "{{ bgp_resources }}"
ignore_empty: "{{ persist_empty | default(true) }}"
4 changes: 2 additions & 2 deletions roles/run/tasks/includes/remediate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
ansible.builtin.include_role:
name: network.base.resource_manager
vars:
operation: 'remediate'
state: 'replaced'
operation: remediate
state: replaced
resources: "{{ bgp_resources }}"
10 changes: 5 additions & 5 deletions roles/run/tasks/includes/resources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
- name: Set resources
ansible.builtin.set_fact:
bgp_resources:
- 'bgp_global'
- 'bgp_address_family'
- 'bgp_neighbor_address_family'
- bgp_global
- bgp_address_family
- bgp_neighbor_address_family
when: ansible_network_os == 'cisco.nxos.nxos'

- name: Set resources
ansible.builtin.set_fact:
bgp_resources:
- 'bgp_global'
- 'bgp_address_family'
- bgp_global
- bgp_address_family
when: ansible_network_os != 'cisco.nxos.nxos'