-
Notifications
You must be signed in to change notification settings - Fork 735
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New Template: alcatel_sros_show_router_rsvp_interface (#884)
- Loading branch information
1 parent
7eaaaa9
commit 431ddec
Showing
4 changed files
with
70 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
tests/alcatel_sros/show_router_rsvp_interface/show_router_rsvp_interface.raw
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
=============================================================================== |
30 changes: 30 additions & 0 deletions
30
tests/alcatel_sros/show_router_rsvp_interface/show_router_rsvp_interface.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |