-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpb.batfish.validate_facts.yml
More file actions
37 lines (33 loc) · 1.12 KB
/
pb.batfish.validate_facts.yml
File metadata and controls
37 lines (33 loc) · 1.12 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
---
- hosts: localhost
connection: local
gather_facts: no
roles:
- batfish.base
tasks:
- name: "SETUP CONNECTION TO BATFISH SERVICE"
bf_session:
host: "{{ batfish_host }}"
name: "ci_batfish"
- name: "INITIALIZE THE GENERATED CONFIGS"
bf_init_snapshot:
network: "ci_network"
snapshot: "ci_snapshot"
snapshot_data: "."
overwrite: yes
- name: "VALIDATE FACTS"
bf_validate_facts:
expected_facts: "ci/expected_facts/"
- name: "VALIDATE BASIC TOPOLOGY QUESTIONS PASS"
bf_assert:
assertions:
- type: "assert_no_undefined_references"
name: "Confirm we have no undefined references"
- type: "assert_no_forwarding_loops"
name: "Confirm no routing loops"
- type: "assert_no_incompatible_bgp_sessions"
name: "Confirm no incompatible BGP sessions"
- type: "assert_no_incompatible_ospf_sessions"
name: "Confirm no incompatible OSPF sessions"
- type: "assert_no_unestablished_bgp_sessions"
name: "Confirm no unestablished BGP sessions"