-
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.
Merge branch 'networktocode:master' into master
- Loading branch information
Showing
15 changed files
with
359 additions
and
84 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
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
20 changes: 13 additions & 7 deletions
20
ntc_templates/templates/huawei_smartax_display_ont_info_summary_ont.textfsm
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 |
---|---|---|
@@ -1,17 +1,23 @@ | ||
Value Filldown PORT (\S+) | ||
Value Key ONT_ID (\d+) | ||
Value RUN_STATE (\w+) | ||
Value Required RUN_STATE (\w+) | ||
Value LAST_UPTIME (\S+\s*\S+) | ||
Value LAST_DOWNTIME (\S+\s*\S+) | ||
Value LAST_DOWNCAUSE (\S+) | ||
|
||
Start | ||
^\s+- | ||
^\s+ONT\s+Run\s+Last\s+Last\s+Last | ||
^\s+ID\s+State\s+UpTime\s+DownTime\s+DownCause -> ONTs | ||
^\s*Command\s*is\s*being\s*executed\.\s*Please\s*wait\s*$$ | ||
^\s*- | ||
^\s+ID\s+State\s+UpTime\s+DownTime\s+DownCause\s*$$ -> ONTs | ||
^\s+ONT\s+Run\s+Last\s+Last\s+Last\s*$$ | ||
^\s*In\s*port\s*${PORT},\s*the\s*total\s*of\s*ONTs\s*are:\s*\d+,\s*online:\s*\d+\s*$$ | ||
^\s*\d+\s*\S+\s*(-|\S+)\s*(-|\d+)\s+(-?\d+\.\d+\/-?\d+\.\d+|\S+)\s+(\S.+\S)\s*$$ | ||
^\s+ID\s+\(m\)\s+\(dBm\) | ||
^\s*$$ | ||
^. -> Error | ||
|
||
ONTs | ||
^\s*-+\s*$$ | ||
^\s+${ONT_ID}\s+${RUN_STATE}\s+(-|${LAST_UPTIME})\s*(-|${LAST_DOWNTIME})\s+(-|${LAST_DOWNCAUSE}) -> Record | ||
^\s+- | ||
^\s+ONT\s+SN\s+Type\s+Distance\s+Rx\/Tx\s+power\s+Description | ||
^\s+ID\s+\(m\)\s+\(dBm\) -> EOF | ||
^\s+ONT\s+SN\s+Type\s+Distance\s+Rx\/Tx\s+power\s+Description\s*$$ -> Start | ||
^. -> Error |
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
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
8 changes: 8 additions & 0 deletions
8
tests/alcatel_aos/show_interfaces_port/alcatel_aos_show_interfaces_port_R6_2.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,8 @@ | ||
Chas/ | ||
Slot/ Admin Link WTR WTS Alias | ||
Port Status Status (sec) (msec) | ||
--------+----------+---------+----------+----------+----------------------- | ||
1/1/1 enable up 0 0 "This is a test" | ||
1/1/2 enable up 0 0 "This_is_a_test" | ||
1/1/3 enable up 0 0 "This" | ||
1/1/4 enable up 0 0 "" |
46 changes: 46 additions & 0 deletions
46
tests/alcatel_aos/show_interfaces_port/alcatel_aos_show_interfaces_port_R6_2.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,46 @@ | ||
--- | ||
parsed_sample: | ||
- admin_status: "enable" | ||
alias: "This is a test" | ||
link_status: "up" | ||
permanent_shutdown: "" | ||
port: "1/1/1" | ||
recovery_max: "" | ||
recovery_time: "" | ||
violations: "" | ||
wait_to_shutdown: "0" | ||
wtr_running: "" | ||
wtr_time: "0" | ||
- admin_status: "enable" | ||
alias: "This_is_a_test" | ||
link_status: "up" | ||
permanent_shutdown: "" | ||
port: "1/1/2" | ||
recovery_max: "" | ||
recovery_time: "" | ||
violations: "" | ||
wait_to_shutdown: "0" | ||
wtr_running: "" | ||
wtr_time: "0" | ||
- admin_status: "enable" | ||
alias: "This" | ||
link_status: "up" | ||
permanent_shutdown: "" | ||
port: "1/1/3" | ||
recovery_max: "" | ||
recovery_time: "" | ||
violations: "" | ||
wait_to_shutdown: "0" | ||
wtr_running: "" | ||
wtr_time: "0" | ||
- admin_status: "enable" | ||
alias: "" | ||
link_status: "up" | ||
permanent_shutdown: "" | ||
port: "1/1/4" | ||
recovery_max: "" | ||
recovery_time: "" | ||
violations: "" | ||
wait_to_shutdown: "0" | ||
wtr_running: "" | ||
wtr_time: "0" |
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
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
Oops, something went wrong.