forked from opsmill/infrahub-demo-edge
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.infrahub.yml
89 lines (79 loc) · 2.69 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
---
jinja2_transforms:
- name: "device_startup"
description: "Template to generate startup configuration for network devices"
query: "device_startup_info"
template_path: "templates/device_startup_config.tpl.j2"
- name: "clab_topology"
query: "topology_info"
template_path: "topology/topology.tpl.j2"
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: "Startup Config for Edge devices"
artifact_name: "startup-config"
parameters:
device: "name__value"
content_type: "text/plain"
targets: "edge_router"
transformation: "device_startup"
check_definitions:
- name: backbone_link_redundancy
class_name: InfrahubCheckBackboneLinkRedundancy
file_path: "checks/check_backbone_link_redundancy.py"
python_transforms:
- name: OCInterfaces
class_name: OCInterfaces
file_path: "transforms/openconfig.py"
- name: oc_bgp_neighbors
class_name: OCBGPNeighbors
file_path: "transforms/openconfig.py"
generator_definitions:
- name: update_upstream_interfaces_description
file_path: "generators/upstream_interfaces.py"
targets: upstream_interfaces
query: upstream_interfaces
parameters:
id: "id"
- name: create_circuit_endpoints
file_path: "generators/circuit_endpoints.py"
targets: provisioning_circuits
query: circuit_endpoints
parameters:
circuit_id: "circuit_id__value"
- name: drained_circuit_bgp_sessions
file_path: "generators/drained_circuit_bgp_sessions.py"
targets: maintenance_circuits
query: drained_circuit_bgp_sessions
parameters:
circuit_id: "circuit_id__value"
- name: backbone_service
file_path: "generators/backbone_service.py"
targets: backbone_services
query: backbone_service
parameters:
name: "name__value"
queries:
- name: topology_info
file_path: "topology/topology_info.gql"
- name: check_backbone_link_redundancy
file_path: "checks/check_backbone_link_redundancy.gql"
- name: oc_bgp_neighbors
file_path: "transforms/oc_bgp_neighbors.gql"
- name: oc_interfaces
file_path: "transforms/oc_interfaces.gql"
- name: device_startup_info
file_path: "templates/device_startup_info.gql"
- name: upstream_interfaces
file_path: "generators/upstream_interfaces.gql"
- name: drained_circuit_bgp_sessions
file_path: "generators/drained_circuit_bgp_sessions.gql"
- name: circuit_endpoints
file_path: "generators/circuit_endpoints.gql"
- name: backbone_service
file_path: "generators/backbone_service.gql"