Skip to content
Snippets Groups Projects
Commit 95ab1711 authored by ME's avatar ME
Browse files

check

parent 68c36249
No related branches found
No related tags found
No related merge requests found
...@@ -66,9 +66,10 @@ ...@@ -66,9 +66,10 @@
- name: Compare the number of advertised routes - name: Compare the number of advertised routes
ansible.builtin.assert: ansible.builtin.assert:
that: that:
- "((pre_check.{{ check_id }}.bgp_adv_routes - post_check.{{ check_id }}.bgp_adv_routes) / pre_check.{{ check_id }}.bgp_adv_routes) * 100 | abs <= 5" - "((pre_check.{{ check_id }}.bgp_adv_routes - post_check.{{ check_id }}.bgp_adv_routes) / pre_check.{{ check_id }}.bgp_adv_routes) * 100 | abs <= 5"
fail_msg: "FAIL: the number of advertised routes isn't within 5% of difference" fail_msg: "FAIL: the number of advertised routes isn't within 5% of difference"
success_msg: "PASS: the number of advertised routes is within 5% of difference" success_msg: "PASS: the number of advertised routes is within 5% of difference"
failed_when: false
- name: Compare the number of received routes - name: Compare the number of received routes
ansible.builtin.assert: ansible.builtin.assert:
...@@ -76,3 +77,4 @@ ...@@ -76,3 +77,4 @@
- "((pre_check.{{ check_id }}.bgp_rec_routes - post_check.{{ check_id }}.bgp_rec_routes) / pre_check.{{ check_id }}.bgp_rec_routes) * 100 | abs <= 5" - "((pre_check.{{ check_id }}.bgp_rec_routes - post_check.{{ check_id }}.bgp_rec_routes) / pre_check.{{ check_id }}.bgp_rec_routes) * 100 | abs <= 5"
fail_msg: "FAIL: the number of received routes isn't within 5% of difference" fail_msg: "FAIL: the number of received routes isn't within 5% of difference"
success_msg: "PASS: the number of received routes is within 5% of difference" success_msg: "PASS: the number of received routes is within 5% of difference"
failed_when: false
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment