Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Template: alcatel_sros_show_router_rsvp_interface #884

Merged
merged 8 commits into from
Mar 11, 2021
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
h4ndzdatm0ld marked this conversation as resolved.
Show resolved Hide resolved

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"