Skip to content

Commit 3075359

Browse files
committed
added chassis, cpu lp and memory textsfm templates
remove naplam from requirements
1 parent f16bbed commit 3075359

File tree

4 files changed

+54
-2
lines changed

4 files changed

+54
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
Value NAME (.*)
2+
Value STATUS (.*)
3+
Value SPEED (\S+)
4+
Value VALUE (\S+)
5+
Value VALUE2 (.*)
6+
Value TEMP ([0-9]*\.[0-9]*\S+)
7+
Value TEMP2 ([0-9]*\.[0-9]*\S+)
8+
Value Filldown RKEY (POWER|FAN|TEMP)
9+
10+
Start
11+
^---\s*${RKEY}S --- -> Continue
12+
^--- ${RKEY} -> Continue
13+
^Power\s+${NAME}:\s+.*AC\s+${VALUE}\):\s+Installed\s+\(${STATUS}\) -> Next.Record
14+
^Power\s+${NAME}:\s+${STATUS} -> Next.Record
15+
^Total\s+Power\s.*${NAME}\s+=\s+.${VALUE} -> Next.Record
16+
^${NAME}\s+.*type=${VALUE2}=${VALUE} -> Next.Record
17+
^--- ${RKEY}S -> Fans
18+
19+
Fans
20+
^${NAME}:\s+Status = ${STATUS},\s+Speed = ${SPEED}\s+ -> Next.Record
21+
^--- ${RKEY}ERA -> Temp
22+
23+
Temp
24+
^${NAME}\s+Module:\s+${TEMP}\s+${TEMP2} -> Next.Record
25+
^${NAME}\s:{VALUE2}:${TEMP} -> Next.Record
26+
^${NAME}:\s+${TEMP} -> Next.Record
27+
^--- -> End
28+
29+
End
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Value SLOT (\d+)
2+
Value UTIL (\d+)
3+
4+
Start
5+
^SLOT\s+ -> Continue
6+
^\s+${SLOT}:\s+\d+\s+\d+\s+\d+\s+${UTIL} -> Next.Record
7+
8+
EOF
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Value Filldown NAME (\S+)
2+
Value Filldown STATE (\S+)
3+
Value Filldown MODULE (\S+)
4+
Value AVAIL_RAM (\d+)
5+
Value TOTAL_RAM (\d+)
6+
Value AVAIL_RAM_PCT (\d+)
7+
8+
Start
9+
^.*\s+${STATE}\s+${MODULE}\s+slot\s+${NAME}: -> Continue
10+
^.*\s+${MODULE}\s+SL\s+${NAME}: -> Continue
11+
^Total\s+SDRAM\s+:\s+${TOTAL_RAM}\s+bytes -> Continue
12+
^Available\s+Memory\s+:\s+${AVAIL_RAM}\s+bytes -> Continue
13+
^Available\s+Memory\s+\(%\):\s+${AVAIL_RAM_PCT}\s+percent -> Next.Record
14+
15+
EOF

requirements.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
netmiko
1+
netmiko>=1.4.3
22
netaddr
3-
napalm>=2.0.0
3+
napalm_base>=0.25.0

0 commit comments

Comments
 (0)