-
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.
Updates for Huawei VRP
- Loading branch information
Showing
31 changed files
with
3,478 additions
and
134 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
2 changes: 1 addition & 1 deletion
2
ntc_templates/templates/huawei_vrp_display_ip_routing-table_verbose.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
14 changes: 14 additions & 0 deletions
14
ntc_templates/templates/huawei_vrp_display_ip_vpn-instance.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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Value Required NAME (\S+) | ||
Value RD (\d+:\d+) | ||
Value ADDRESS_FAMILY (\S+) | ||
|
||
Start | ||
^\s*VPN-Instance Name -> VPNInstances | ||
^\s*Total | ||
^\s*$$ | ||
^. -> Error | ||
|
||
VPNInstances | ||
^\s*${NAME}\s+${RD}\s+${ADDRESS_FAMILY}\s* -> Record | ||
^\s*$$ | ||
^. -> Error |
15 changes: 15 additions & 0 deletions
15
ntc_templates/templates/huawei_vrp_display_ip_vpn-instance_interface.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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Value Required NAME (\S+) | ||
Value Required ID (\d+) | ||
Value List INTERFACE_LIST ([^,]+) | ||
|
||
Start | ||
^\s*Total | ||
^\s*$$ | ||
^\s*VPN-Instance -> Continue.Record | ||
^\s*VPN-Instance\s+Name\s+and\s+ID\s*:\s+${NAME}, ${ID} | ||
^\s+Interface\s+Number | ||
^\s+Interface\s+list\s*:\s+${INTERFACE_LIST},* | ||
^\s{6,}${INTERFACE_LIST},* | ||
^\s*Total | ||
^\s*$$ | ||
^. -> 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
12 changes: 12 additions & 0 deletions
12
ntc_templates/templates/huawei_vrp_display_mac-address.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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Value DESTINATION_ADDRESS ([0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}) | ||
Value DESTINATION_PORT ([^,\s]+) | ||
Value TYPE (\S+) | ||
Value VLAN_ID (\d+) | ||
|
||
Start | ||
^-+$$ | ||
^\s+$$ | ||
^MAC\s+Address | ||
^${DESTINATION_ADDRESS}\s+${VLAN_ID}/([^/]+)/([^/]+)\s+${DESTINATION_PORT}\s+${TYPE} -> Record | ||
^Total\s+items | ||
^. -> Error |
Oops, something went wrong.