This repository has been archived by the owner on May 15, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 46
/
interfaces.yaml
72 lines (72 loc) · 2.34 KB
/
interfaces.yaml
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
---
metadata:
processor: TextTree
execute:
- method: cli
kwargs:
commands: ["show running-config all"]
interfaces:
_process: unnecessary
interface:
_process:
- path: interface
regexp: "^(?P<value>(\\w|-)*\\d+(\\/\\d+)*)$"
from: root_interfaces.0
name:
_process: unnecessary
hold-time:
_process: not_implemented
config:
_process: not_implemented
down:
_process: not_implemented
up:
_process: not_implemented
config:
_process: unnecessary
name:
_process: unnecessary
type:
_process:
- pre: "{{ interface_key }}"
regexp: "^(?P<value>.*?)\\s|\\d"
map:
fastethernet: ethernetCsmacd
gigabitethernet: ethernetCsmacd
management: ethernetCsmacd
loopback: softwareLoopback
port-channel: ieee8023adLag
vlan: l3ipvlan
enabled:
_process:
- path: "shutdown"
present: no
description:
_process:
- path: description
mtu:
_process:
- path: ip.mtu
subinterfaces:
_process: unnecessary
subinterface:
_process:
- path: interface
regexp: "{{interface_key}}\\.(?P<value>\\d+)"
from: root_interfaces.0
index:
_process: unnecessary
config:
_process: unnecessary
index:
_process: unnecessary
name:
_process:
- pre: "{{ interface_key }}.{{ subinterface_key}}"
enabled:
_process:
- path: "shutdown"
present: no
description:
_process:
- path: description