Skip to content

Commit

Permalink
juniper_junos_show_chassis_cluster_interfaces: Add new template (#296)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkraszewski authored and jmcgill298 committed Dec 31, 2018
1 parent 115d920 commit 2183d09
Show file tree
Hide file tree
Showing 10 changed files with 812 additions and 0 deletions.
1 change: 1 addition & 0 deletions templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ hp_procurve_show_system.template, .*, hp_procurve, sh[[ow]] syst[[em]]
hp_procurve_show_vlans.template, .*, hp_procurve, sh[[ow]] vl[[ans]]
hp_procurve_show_arp.template, .*, hp_procurve, sh[[ow]] ar[[p]]

juniper_junos_show_chassis_cluster_interfaces.template, .*, juniper_junos, sh[[ow]] ch[[assis]] c[[luster]] i[[nterface]]
juniper_junos_show_chassis_cluster_status.template, .*, juniper_junos, sh[[ow]] ch[[assis]] c[[luster]] s[[tatus]]
juniper_junos_show_chassis_firmware.template, .*, juniper_junos, sh[[ow]] ch[[assis]] fi[[rmware]]
juniper_junos_show_arp_no-resolve.template, .*, juniper_junos, sh[[ow]] a[[rp]] n[[o-resolve]]
Expand Down
90 changes: 90 additions & 0 deletions templates/juniper_junos_show_chassis_cluster_interfaces.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
Value Filldown CONTROL_LINK_STATUS (\S+)
Value Filldown FABRIC_LINK_STATUS (\S+)
Value Filldown LINK_TYPE (\S+)
Value INDEX (\d+)
Value INTERFACE (\S+)
Value STATUS ((\S+\s*\/\s*\S+|\S+))
Value SECURITY (\S+)
Value CHILD_INTERFACE (\S+)
Value REDUNDANCY_GROUP (\d+|[Nn]ot\s+[Cc]onfigured)
Value WEIGHT (\d+)


Start
^[Cc]ontrol\s+[Ll]ink\s+[Ss]tatus:\s+${CONTROL_LINK_STATUS}\s*$$ -> Control
^[Ff]abric\s+[Ll]ink\s+[Ss]tatus:\s+${FABRIC_LINK_STATUS}\s*$$ -> Fabric
^${LINK_TYPE}\s+Information:\s*$$ -> Continue
^[Rr]edundant-ethernet -> RedEth
^[Rr]edundant-pseudo -> RedPse
^[Ii]nterface\s+[Mm]onitoring -> IntMon
^\s*$$
^. -> Error

Control
^${LINK_TYPE}\s+interfaces:\s*$$
^\s*Index\s+Interface\s+Monitored-Status\s+Security\s*$$
^\s*Index\s+Interface\s+Monitored-Status\s+Internal-SA\s*$$
^\s*Index\s+Interface\s+Status\s+Internal-SA\s*$$
^\s*${INDEX}\s+${INTERFACE}\s+${STATUS}\s+${SECURITY}\s*$$ -> Record
^\S+ -> Continue.Clearall
^[Ff]abric\s+[Ll]ink\s+[Ss]tatus:\s+${FABRIC_LINK_STATUS}\s*$$ -> Fabric
^${LINK_TYPE}\s+Information:\s*$$ -> Continue
^[Rr]edundant-ethernet -> RedEth
^[Rr]edundant-pseudo -> RedPse
^Interface\s+[Mm]onitoring -> IntMon
^\s*$$
^. -> Error

Fabric
^${LINK_TYPE}\s+interfaces:\s*$$
^\s*Name\s+Child-interface\s+Status\s+Security\s*$$
^\s*Name\s+Child-interface\s+Status\s*$$
^\s*\(Physical\/Monitored\)\s*$$
^\s*${INTERFACE}\s+${CHILD_INTERFACE}\s+${STATUS}\s+${SECURITY}\s*$$ -> Record
^\s*${INTERFACE}\s+${CHILD_INTERFACE}\s+${STATUS}\s*$$ -> Record
^\s*\S+\s*$$
^\s+\w+\d+\s*$$
^\S+ -> Continue.Clearall
^${LINK_TYPE}\s+Information:\s*$$ -> Continue
^[Rr]edundant-ethernet -> RedEth
^[Rr]edundant-pseudo -> RedPse
^Interface\s+[Mm]onitoring -> IntMon
^\s*$$
^Control\s+[Ll]ink\s+[Ss]tatus:\s+${CONTROL_LINK_STATUS}\s*$$ - Control
^. -> Error

RedEth
^\s*Name\s+Status\s+Redundancy-group\s*$$
^\s*${INTERFACE}\s+${STATUS}\s+${REDUNDANCY_GROUP}\s*$$ -> Record
^\S+ -> Continue.Clearall
^${LINK_TYPE}\s+Information -> Continue
^[Rr]edundant-pseudo -> RedPse
^Interface\s+[Mm]onitoring -> IntMon
^\s*$$
^Control\s+[Ll]ink\s+[Ss]tatus:\s+${CONTROL_LINK_STATUS}\s*$$ - Control
^[Ff]abric\s+[Ll]ink\s+[Ss]tatus:\s+${FABRIC_LINK_STATUS}\s*$$ -> Fabric
^. -> Error

RedPse
^\s*Name\s+Status\s+Redundancy-group\s*$$
^\s*${INTERFACE}\s+${STATUS}\s+${REDUNDANCY_GROUP}\s*$$ -> Record
^\S+ -> Continue.Clearall
^${LINK_TYPE}\s+Information -> Continue
^[Ii]nterface\s+[Mm]onitoring -> IntMon
^\s*$$
^Control\s+[Ll]ink\s+[Ss]tatus:\s+${CONTROL_LINK_STATUS}\s*$$ - Control
^[Ff]abric\s+[Ll]ink\s+[Ss]tatus:\s+${FABRIC_LINK_STATUS}\s*$$ -> Fabric
^[Rr]edundant-ethernet -> RedEth
^. -> Error

IntMon
^\s*Interface\s+Weight\s+Status\s+Redundancy-group\s*$$
^\s*${INTERFACE}\s+${WEIGHT}\s+${STATUS}(?:\s+${REDUNDANCY_GROUP}|)\s*$$ -> Record
^\s*$$
^\S+ -> Continue.Clearall
^${LINK_TYPE}\s+Information:\s*$$ -> Continue
^Control\s+[Ll]ink\s+[Ss]tatus:\s+${CONTROL_LINK_STATUS}\s*$$ - Control
^[Ff]abric\s+[Ll]ink\s+[Ss]tatus:\s+${FABRIC_LINK_STATUS}\s*$$ -> Fabric
^[Rr]edundant-ethernet -> RedEth
^[Rr]edundant-pseudo -> RedPse
^. -> Error
Original file line number Diff line number Diff line change
@@ -0,0 +1,192 @@
---
parsed_sample:
- control_link_status: "Up"
fabric_link_status: ""
link_type: "Control"
index: "0"
interface: "em0"
status: "Up"
security: "Disabled"
child_interface: ""
redundancy_group: ""
weight: ""
- control_link_status: "Up"
fabric_link_status: ""
link_type: "Control"
index: "1"
interface: "em1"
status: "Down"
security: "Disabled"
child_interface: ""
redundancy_group: ""
weight: ""
- control_link_status: ""
fabric_link_status: "Up"
link_type: "Fabric"
index: ""
interface: "fab0"
status: "Up / Down"
security: ""
child_interface: "ge-0/1/0"
redundancy_group: ""
weight: ""
- control_link_status: ""
fabric_link_status: "Up"
link_type: "Fabric"
index: ""
interface: "fab1"
status: "Up/Down"
security: ""
child_interface: "ge-6/1/0"
redundancy_group: ""
weight: ""
- control_link_status: ""
fabric_link_status: ""
link_type: "Redundant-ethernet"
index: ""
interface: "reth0"
status: "Up"
security: ""
child_interface: ""
redundancy_group: "1"
weight: ""
- control_link_status: ""
fabric_link_status: ""
link_type: "Redundant-ethernet"
index: ""
interface: "reth1"
status: "Up"
security: ""
child_interface: ""
redundancy_group: "2"
weight: ""
- control_link_status: ""
fabric_link_status: ""
link_type: "Redundant-ethernet"
index: ""
interface: "reth2"
status: "Down"
security: ""
child_interface: ""
redundancy_group: "Not configured"
weight: ""
- control_link_status: ""
fabric_link_status: ""
link_type: "Redundant-ethernet"
index: ""
interface: "reth3"
status: "Down"
security: ""
child_interface: ""
redundancy_group: "Not configured"
weight: ""
- control_link_status: ""
fabric_link_status: ""
link_type: "Redundant-ethernet"
index: ""
interface: "reth4"
status: "Down"
security: ""
child_interface: ""
redundancy_group: "Not configured"
weight: ""
- control_link_status: ""
fabric_link_status: ""
link_type: "Redundant-ethernet"
index: ""
interface: "reth5"
status: "Down"
security: ""
child_interface: ""
redundancy_group: "Not configured"
weight: ""
- control_link_status: ""
fabric_link_status: ""
link_type: "Redundant-ethernet"
index: ""
interface: "reth6"
status: "Down"
security: ""
child_interface: ""
redundancy_group: "Not configured"
weight: ""
- control_link_status: ""
fabric_link_status: ""
link_type: "Redundant-ethernet"
index: ""
interface: "reth7"
status: "Down"
security: ""
child_interface: ""
redundancy_group: "Not configured"
weight: ""
- control_link_status: ""
fabric_link_status: ""
link_type: "Redundant-ethernet"
index: ""
interface: "reth8"
status: "Down"
security: ""
child_interface: ""
redundancy_group: "Not configured"
weight: ""
- control_link_status: ""
fabric_link_status: ""
link_type: "Redundant-ethernet"
index: ""
interface: "reth9"
status: "Down"
security: ""
child_interface: ""
redundancy_group: "Not configured"
weight: ""
- control_link_status: ""
fabric_link_status: ""
link_type: "Redundant-ethernet"
index: ""
interface: "reth10"
status: "Down"
security: ""
child_interface: ""
redundancy_group: "Not configured"
weight: ""
- control_link_status: ""
fabric_link_status: ""
link_type: "Redundant-ethernet"
index: ""
interface: "reth11"
status: "Down"
security: ""
child_interface: ""
redundancy_group: "Not configured"
weight: ""
- control_link_status: ""
fabric_link_status: ""
link_type: "Redundant-pseudo-interface"
index: ""
interface: "lo0"
status: "Up"
security: ""
child_interface: ""
redundancy_group: "1"
weight: ""
- control_link_status: ""
fabric_link_status: ""
link_type: ""
index: ""
interface: "ge-0/1/9"
status: "Up"
security: ""
child_interface: ""
redundancy_group: "0"
weight: "100"
- control_link_status: ""
fabric_link_status: ""
link_type: ""
index: ""
interface: "ge-0/1/9"
status: "Up"
security: ""
child_interface: ""
redundancy_group: ""
weight: "100"
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
Control link status: Up

Control interfaces:
Index Interface Monitored-Status Internal-SA
0 em0 Up Disabled
1 em1 Down Disabled

Fabric link status: Up

Fabric interfaces:
Name Child-interface Status
(Physical/Monitored)
fab0 ge-0/1/0 Up / Down
fab0
fab1 ge-6/1/0 Up/Down
fab1

Redundant-ethernet Information:
Name Status Redundancy-group
reth0 Up 1
reth1 Up 2
reth2 Down Not configured
reth3 Down Not configured
reth4 Down Not configured
reth5 Down Not configured
reth6 Down Not configured
reth7 Down Not configured
reth8 Down Not configured
reth9 Down Not configured
reth10 Down Not configured
reth11 Down Not configured

Redundant-pseudo-interface Information:
Name Status Redundancy-group
lo0 Up 1

Interface Monitoring:
Interface Weight Status Redundancy-group
ge-0/1/9 100 Up 0
ge-0/1/9 100 Up
Loading

0 comments on commit 2183d09

Please sign in to comment.