Skip to content

Commit

Permalink
New Template: alcatel_sros_show_router_rsvp_interface (networktocode#884
Browse files Browse the repository at this point in the history
)
  • Loading branch information
h4ndzdatm0ld authored and cppmonkey committed Oct 25, 2023
1 parent 9f89dd8 commit 4947aaa
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 0 deletions.
26 changes: 26 additions & 0 deletions templates/alcatel_sros_show_router_rsvp_interface.textfsm
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Value Required INTERFACE (\S+)
Value Required TOTAL_SESSIONS (\d+|-)
Value Required ACTIVE_SESSIONS (\d+|-)
Value Required TOTAL_BW (\d+|-)
Value Required RESV_BW (\d+|-)
Value Required ADMIN_STATE (Up|Dwn|Down)
Value Required OPER_STATE (Up|Dwn|Down)

Start
^=+
^RSVP\s+Interfaces
^Interface\s+Total\s+Active\s+Total\s+BW\s+Resv\s+BW\s+Adm\s+Opr\s*$$
^\s+Sessions\s+Sessions\s+\(Mbps\)\s+\(Mbps\)
^-+ -> Interface
^\s*$$
^. -> Error

Interface
^${INTERFACE}\s*${TOTAL_SESSIONS}\s*${ACTIVE_SESSIONS}\s*${TOTAL_BW}\s*${RESV_BW}\s*${ADMIN_STATE}\s*${OPER_STATE} -> Record
^Interfaces
^=+
^-+ -> Done
^\s*$$
^. -> Error

Done
1 change: 1 addition & 0 deletions templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ alcatel_sros_show_router_bgp_summary_family.textfsm, .*, alcatel_sros, sh[[ow]]
alcatel_sros_show_router_isis_adjacency.textfsm, .*, alcatel_sros, sh[[ow]] router isis adj[[acency]]
alcatel_sros_show_router_isis_interface.textfsm, .*, alcatel_sros, sh[[ow]] router isis int[[erface]]
alcatel_sros_show_router_mpls_interface.textfsm, .*, alcatel_sros, sh[[ow]] router mpls int[[erface]]
alcatel_sros_show_router_rsvp_interface.textfsm, .*, alcatel_sros, sh[[ow]] router rsvp int[[erface]]
alcatel_sros_show_router_ldp_interface.textfsm, .*, alcatel_sros, sh[[ow]] router ldp int[[erface]]
alcatel_sros_show_router_pim_interface.textfsm, .*, alcatel_sros, sh[[ow]] router pim int[[erface]]
alcatel_sros_show_service_id_base.textfsm, .*, alcatel_sros, sh[[ow]] serv[[ice]] id ba[[se]]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
===============================================================================
RSVP Interfaces
===============================================================================
Interface Total Active Total BW Resv BW Adm Opr
Sessions Sessions (Mbps) (Mbps)
-------------------------------------------------------------------------------
system - - - - Up Up
TO_IOSXR 0 0 10000 0 Dwn Dwn
TO_R1 0 0 10000 0 Up Up
TO_R4 0 0 10000 0 Up Up
-------------------------------------------------------------------------------
Interfaces : 4
===============================================================================
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
parsed_sample:
- active_sessions: "-"
admin_state: "Up"
interface: "system"
oper_state: "Up"
resv_bw: "-"
total_bw: "-"
total_sessions: "-"
- active_sessions: "0"
admin_state: "Dwn"
interface: "TO_IOSXR"
oper_state: "Dwn"
resv_bw: "0"
total_bw: "10000"
total_sessions: "0"
- active_sessions: "0"
admin_state: "Up"
interface: "TO_R1"
oper_state: "Up"
resv_bw: "0"
total_bw: "10000"
total_sessions: "0"
- active_sessions: "0"
admin_state: "Up"
interface: "TO_R4"
oper_state: "Up"
resv_bw: "0"
total_bw: "10000"
total_sessions: "0"

0 comments on commit 4947aaa

Please sign in to comment.