-
Notifications
You must be signed in to change notification settings - Fork 1
/
.infrahub.yml
44 lines (41 loc) · 1.29 KB
/
.infrahub.yml
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
---
check_definitions:
- name: "BGP transit session check"
file_path: "./checks/check_bgp_transit_session.py"
# parameters:
# targets:
class_name: "SpBGPSessionCheck"
artifact_definitions:
- name: "Openconfig Interface for Arista devices"
artifact_name: "openconfig-interfaces"
parameters:
device: "name__value"
content_type: "application/json"
targets: "arista_devices"
transformation: "OCInterfaces"
- name: "Openconfig BGP for Artista devices"
artifact_name: "openconfig-bgp"
parameters:
device: "name__value"
content_type: "application/json"
targets: "arista_devices"
transformation: "OCBGPNeighbors"
- name: "Config for Arista devices"
artifact_name: "config-arista"
parameters:
device: "name__value"
content_type: "text/plain"
targets: "arista_devices"
transformation: "arista_config"
python_transforms:
- name: OCInterfaces
class_name: OCInterfaces
file_path: "transforms/openconfig.py"
- name: OCBGPNeighbors
class_name: OCBGPNeighbors
file_path: "transforms/openconfig.py"
jinja2_transforms:
- name: "arista_config"
description: "Template to generate startup configuration for arista routers"
query: "arista_router_config"
template_path: "templates/arista_router_config.j2"