Skip to content

Commit

Permalink
Merge pull request #34 from beatrizbonafe/main
Browse files Browse the repository at this point in the history
Templates to Timos 19
  • Loading branch information
laimaretto authored Aug 26, 2022
2 parents 985f4a6 + 5babf26 commit 7a20a6f
Show file tree
Hide file tree
Showing 13 changed files with 219 additions and 0 deletions.
15 changes: 15 additions & 0 deletions TemplatesTimos/19/sh_card.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#Command: /show card
#Timos: 19
#Version: 1.0.0
Value NAME (\S+)
Value Required Slot_ID (\S+)
Value Prov_Type (\S+)
Value Eq_Type (\S+)
Value Adm ([uU][pP]|[Dd][oO]?[wW][nN])
Value Opr (\S+)
Value Comments (\S+)

Start
^.?\w:${NAME}(#|>) /show card
^${Slot_ID}\s+${Prov_Type}\s+${Adm}\s+${Opr}\s+${Comments}? -> Continue.Record
^${Slot_ID}\s+${Prov_Type}\s+${Eq_Type}\s+${Adm}\s+${Opr}\s+(\d+\s+)?(\d+\s+)?${Comments}? -> Continue.Record
15 changes: 15 additions & 0 deletions TemplatesTimos/19/sh_mda.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#Command: /show mda
#Timos: 19
#Version: 1.0.0
Value NAME (\S+)
Value Filldown Slot_ID (\S+)
Value Required MDA (\S+)
Value Prov_Type (\S+)
Value Eq_Type (\S+)
Value Adm ([uU][pP]|[Dd][oO]?[wW][nN])
Value Opr (\S+)

Start
^.?\w:${NAME}(#|>) /show mda
^${Slot_ID}\s+${MDA}\s+${Prov_Type}\s+${Adm}\s+${Opr} -> Continue.Record
^\s+${MDA}\s+${Prov_Type}\s+${Adm}\s+${Opr}-> Continue.Record
21 changes: 21 additions & 0 deletions TemplatesTimos/19/sh_port.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#Command: /show port
#Timos: 19
#Version: 1.0.0
Value Filldown NAME (\S+)
Value Filldown Slot (\S+)
Value Required PortID (\S+)
Value AdminState ([uU][pP]|[Dd][oO][wW][nN])
Value Link ((No)|(Yes))
Value PortState (\S+)
Value CfgMTU (\d+)
Value OperMTU (\d+)
Value Lag_Bndl (\S+)
Value PortMode (\S+)
Value PortEncp (\S+)
Value PortType (\S+)
Value SPF_XPF_MDIMDX (.+?)

Start
^.?\w:${NAME}(#|>) /?show port
^Ports on Slot ${Slot}
^${PortID}\s+${AdminState}\s+${Link}\s+${PortState}(\s+${CfgMTU}\s+${OperMTU}\s+${Lag_Bndl}\s+${PortMode}\s+${PortEncp}\s+${PortType}\s+${SPF_XPF_MDIMDX}?\s+?)? -> Continue.Record
26 changes: 26 additions & 0 deletions TemplatesTimos/19/sh_rtr_bgp_summ.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#Command: /show router bgp summary
#Timos: 19
#Version: 1.0.0
Value Filldown NAME (\S+)
Value BGP_ROUTER_ID ([0-9]{1,3}[.][0-9]{1,3}[.][0-9]{1,3}[.][0-9]{1,3})
Value BGP_AS ([0-9]{1,1500})
Value BGP_LOCAL_AS ([0-9]{1,1500})
Value BGP_ADMIN_STATE ([uU][pP]|[Dd][oO][wW][nN])
Value BGP_OPER_STATE ([uU][pP]|[Dd][oO][wW][nN])
Value BGP_TOTAL_PEERS_GROUPS ([0-9]{1,1500})
Value BGP_TOTAL_PEERS ([0-9]{1,1500})
Value Required BGP_NEIGHBOR ([0-9]{1,3}[.][0-9]{1,3}[.][0-9]{1,3}[.][0-9]{1,3})
Value Required BGP_STATE (\S+)
Value BGP_STATUS_NEIGHBOR (\S+)

Start
^\w:${NAME}(#|>) /show router bgp summary
^.\w:${NAME}(#|>) /show router bgp summary
^\sBGP\sRouter\sID:${BGP_ROUTER_ID}\s+AS:${BGP_AS}\s+Local\sAS:${BGP_LOCAL_AS}
^BGP\sAdmin\sState\s+:\s${BGP_ADMIN_STATE}\s+BGP\sOper\sState\s+:\s${BGP_OPER_STATE}
^Total\sPeer\sGroups\s+:\s${BGP_TOTAL_PEERS_GROUPS}\s+Total\sPeers\s+:\s${BGP_TOTAL_PEERS}
^${BGP_NEIGHBOR}
^\s+\S+\s+[0-9]{1,1500}\s+\S+\s[\w]{1,12}\s+${BGP_STATE}\s${BGP_STATUS_NEIGHBOR} -> Record
^\s+\S+\s+[0-9]{1,1500}.\s+\S+\s[\w]{1,12}\s+${BGP_STATE}\s${BGP_STATUS_NEIGHBOR} -> Continue.Record
^\s+\S+\s+[0-9]{1,1500}\s+\S+\s[\w]{1,12}\s+${BGP_STATE} -> Continue.Record
^\s+\S+\s+[0-9]{1,1500}.\s+\S+\s[\w]{1,12}\s+${BGP_STATE} -> Continue.Record
21 changes: 21 additions & 0 deletions TemplatesTimos/19/sh_rtr_iface.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#Command: /show router interface
#Timos: 19
#Version: 1.0.0
Value Filldown NAME (\S+)
Value Required INTERFACE_NAME (.+?)
Value Filldown PLANE (Base)
Value Required INTERFACE_ADM ([uU][pP]|[Dd][oO][wW][nN])
Value Required INTERFACE_OPR_IPV4 ([uU][pP]|[Dd][oO][wW][nN])
Value Required INTERFACE_OPR_IPV6 ([uU][pP]|[Dd][oO][wW][nN])
Value Required INTERFACE_MODE (\S+)
Value Required INTERFACE_PORT (\S+)
Value Required INTERFACE_IP ([0-9]{1,3}[.][0-9]{1,3}[.][0-9]{1,3}[.][0-9]{1,3}/[0-9]{1,2})
Value PfxState (\S+)

Start
^\w:${NAME}(#|>) /show router interface
^.\w:${NAME}(#|>) /?show router interface
^Interface\sTable\s.Router.\s${PLANE}.
^${INTERFACE_NAME}\s+?${INTERFACE_ADM}\s+${INTERFACE_OPR_IPV4}.${INTERFACE_OPR_IPV6}\s+${INTERFACE_MODE}\s+${INTERFACE_PORT} -> Continue
^\s+${INTERFACE_IP}\s+${PfxState} -> Record

14 changes: 14 additions & 0 deletions TemplatesTimos/19/sh_rtr_isis_adj.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#Command: /show router isis adjacency
#Timos: 19
#Version: 1.0.0
Value NAME (\S+)
Value Required System_ID (\S+)
Value Usage (\S+)
Value State ([uU][pP]|[Dd][oO]?[wW][nN])
Value Hold (\S+)
Value Interface (\S+)

Start
^\w:${NAME}(#|>) /show router isis adjacency
^.?\w:${NAME}(#|>) /?show router isis adjacency
^${System_ID}\s+${Usage}\s+${State}\s+${Hold}\s+${Interface}(\s+\S+)? -> Continue.Record
15 changes: 15 additions & 0 deletions TemplatesTimos/19/sh_rtr_isis_iface.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#Command: /show router isis interface
#Timos: 19
#Version: 1.0.0
Value NAME (\S+)
Value Filldown Instance (\S+)
Value Required Interface (\S+)
Value Level (\S+)
Value CircID (\S+)
Value Oper_state ([uU][pP]|[Dd][oO]?[wW][nN])
Value L1_L2_Metric (.+)

Start
^.?\w:${NAME}(#|>) /?show router isis ${Instance} interface
^Rtr Base ISIS Instance ${Instance} Interfaces
^${Interface}\s+${Level}\s+${CircID}\s+${Oper_state}\s+${L1_L2_Metric} -> Continue.Record
12 changes: 12 additions & 0 deletions TemplatesTimos/19/sh_rtr_ldp_iface.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#Command: /show router ldp interface
#Timos: 19
#Version: 1.0.0
Value NAME (\S+)
Value Required Interface (\S+)
Value Required Adm ([uU][pP]|[Dd][oO]?[wW]?[nN])
Value Required Opr ([uU][pP]|[Dd][oO]?[wW]?[nN])

Start
^\w:${NAME}(#|>) /show router ldp interface
^.?\w:${NAME}(#|>) /?show router ldp interface
^${Interface}\s+${Adm}.${Opr} -> Continue.Record
14 changes: 14 additions & 0 deletions TemplatesTimos/19/sh_rtr_mpls_iface.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#Command: /show router mpls interface
#Timos: 19
#Version: 1.0.0
Value NAME (\S+)
Value Required Interface (.+?)
Value Port_ID (.+?)
Value Required Adm ([uU][pP]|[Dd][oO][wW][nN])
Value Required Opr_v4v6 (\S+)
Value TE_Metric (\S+)

Start
^\w:${NAME}(#|>) /show router mpls interface
^.?\w:${NAME}(#|>) /?show router mpls interface
^${Interface}\s{2}\s+${Port_ID}\s{2}\s+${Adm}\s+${Opr_v4v6}\s+${TE_Metric}? -> Continue.Record
17 changes: 17 additions & 0 deletions TemplatesTimos/19/sh_rtr_mpls_lsp.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#Command: /show router mpls lsp
#Timos: 19
#Version: 1.0.0
Value NAME (\S+)
Value Required LSP_name (.+?)
Value Required Adm ([uU][pP]|[Dd][oO]?[wW][nN])
Value Required Opr ([uU][pP]|[Dd][oO]?[wW][nN])
Value To (\d+\.\d+\.\d+\.\d+)


Start
^\w:${NAME}(#|>) /show router mpls lsp
^.?\w:${NAME}(#|>) /?show router mpls lsp
^${LSP_name}\s{2}\s+${To}\s+\S+\s+${Adm}\s+${Opr} -> Record
^${LSP_name}\s+${To}\s+\S+\s+\S+\s+${Adm}\s+${Opr} -> Continue.Record
^${LSP_name}\s+\S+\s+\S+\s+${Adm}\s+${Opr}
^\s+${To}.+ -> Continue.Record
19 changes: 19 additions & 0 deletions TemplatesTimos/19/sh_srv_sap_using.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#Command: /show service sap-using
#Timos: 19
#Version: 1.0.0
Value Filldown NAME (\S+)
Value Required PortId (\S+)
Value Required SvcId ([0-9]{1,15})
Value Required IngQoS (\S+)
Value Required IngFltr (\S+)
Value EgrQoS (\S+)
Value EgrFltr (\S+)
Value Required Adm ([uU][pP]|[Dd][oO][wW][nN])
Value Required Opr ([uU][pP]|[Dd][oO][wW][nN])

Start
^\w:${NAME}(#|>) /show service sap-using
^.\w:${NAME}(#|>) /show service sap-using
^${PortId}\s+${SvcId}\s+${IngQoS}\s+${IngFltr}\s+${EgrFltr}\s+${Adm}\s+${Opr} -> Record
^${PortId}\s+${SvcId}\s+${IngQoS}\s+${IngFltr}\s+${EgrQoS}\s+${EgrFltr}\s+${Adm}\s+${Opr} -> Record

16 changes: 16 additions & 0 deletions TemplatesTimos/19/sh_srv_sdp_using.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#Command: /show service sdp-using
#Timos: 19
#Version: 1.0.0
Value Filldown NAME (\S+)
Value Required SDP_SVC_ID ([0-9]{1,12})
Value Required SDP_IDU ([0-9]{1,12}:[0-9]{1,12})
Value Required SDP_TYPE (\S+)
Value Required SDP_FAR_END ([0-9]{1,3}[.][0-9]{1,3}[.][0-9]{1,3}[.][0-9]{1,3})
Value Required SDP_OPR_STATE ([uU][pP]|[Dd][oO][wW][nN])

Start
^\w:${NAME}(#|>) /show service sdp-using
^.\w:${NAME}(#|>) /show service sdp-using
^${SDP_SVC_ID}\s+${SDP_IDU}\s+${SDP_TYPE}\s+${SDP_FAR_END}\s+${SDP_OPR_STATE} -> Record

EOF
14 changes: 14 additions & 0 deletions TemplatesTimos/19/sh_srv_srv_using.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#Command: /show service service-using
#Timos: 19
#Version: 1.0.0
Value Filldown NAME (\S+)
Value Required ServiceId ([0-9]{1,15})
Value Type (\S+)
Value Adm ([uU][pP]|[Dd][oO][wW][nN])
Value Opr ([uU][pP]|[Dd][oO][wW][nN])
Value CustomerId ([0-9]{1,15})

Start
^\w:${NAME}(#|>) /show service service-using
^.\w:${NAME}(#|>) /show service service-using
^${ServiceId}\s+${Type}\s+${Adm}\s+${Opr}\s+${CustomerId} -> Record

0 comments on commit 7a20a6f

Please sign in to comment.