-
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.
Updating template for Huawei SmartAX:
display ont info summary ont
- Loading branch information
1 parent
7cbb9e7
commit f8cb39c
Showing
8 changed files
with
137 additions
and
10 deletions.
There are no files selected for viewing
19 changes: 12 additions & 7 deletions
19
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,22 @@ | ||
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+ID\s+\(m\)\s+\(dBm\) | ||
^. -> 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
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.