-
Notifications
You must be signed in to change notification settings - Fork 742
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing bug related to Huawei SmartAX template description
- Loading branch information
1 parent
5455e9f
commit cc318d9
Showing
3 changed files
with
27 additions
and
13 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
22 changes: 15 additions & 7 deletions
22
ntc_templates/templates/huawei_smartax_display_ont_info_description.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,14 +1,22 @@ | ||
Value Required FSP (\w+\/\s\w+\/\w+) | ||
Value Key,Required FSP (\w+\/\s\w+\/\w+) | ||
Value Key ONT_ID (\d+) | ||
Value DESCRIPTION (.+?) | ||
|
||
|
||
Start | ||
^\s+F\/S\/P\s+(ONT|ONT-ID)\s+Description -> Descriptions | ||
^\s+- | ||
^\s+F\/S\/P\s+ONT\s+SN\s+Control\s+Run\s+Config\s+Match\s+Protect | ||
^\s+ID\s+flag\s+state\s+state\s+state\s+side -> SNs | ||
^. -> Error | ||
|
||
SNs | ||
^\s+- | ||
^\s*\w+\/\s\w+\/\w+\s*\d+\s*([A-Z0-9]{16})\s*(active|deactive|configuring)\s*(-|online|offline)\s*(-|normal|mismatch|failing|online|initial)\s*(-|initial|mismatch|match)\s*(no|yes)\s* | ||
^\s*F\/S\/P\s+(ONT|ONT-ID)\s+Description -> Descriptions | ||
^\s*$$ | ||
^.-> Error | ||
|
||
Descriptions | ||
^\s+ID | ||
^\s+- | ||
^\s+${FSP}\s+${ONT_ID}\s+${DESCRIPTION}\s*$$ -> Record | ||
^\s+In\s+port\s+\w+\/\s*\w+\/\w+\s*,\s+the\s+total(\s*number)?\s+of\s+ONTs\s+(is|are):\s+\w+(\,\s*online:\s*\w+)?(\,\s*offline:\s*\w+)? -> EOF | ||
^. -> Error | ||
^\s+${FSP}\s+${ONT_ID}\s+${DESCRIPTION}\s*$$ | ||
^\s+In\s+port\s+\w+\/\s*\w+\/\w+\s*,\s+the\s+total(\s*number)?\s+of\s+ONTs\s+(is|are):\s+\w+(\,\s*online:\s*\w+)?(\,\s*offline:\s*\w+)? -> 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