forked from networktocode/ntc-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add template: Huawei vrp display telnet server status (networktocode#…
- Loading branch information
1 parent
06cfd16
commit b31d24d
Showing
4 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
ntc_templates/templates/huawei_vrp_display_telnet_server_status.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,16 @@ | ||
Value TELNET_IPV4_SERVER (\S+) | ||
Value TELNET_IPV6_SERVER (\S+) | ||
Value TELNET_SERVICE_PORT (\d+) | ||
Value TELNET_SERVER_SOURCE_ADDRESS (\S+) | ||
Value ACL4_NUMBER (\d+) | ||
Value ACL6_NUMBER (\d+) | ||
|
||
Start | ||
^\s*TELNET\s*IPv4\s*server\s*:\s*${TELNET_IPV4_SERVER} | ||
^\s*TELNET\s*IPv6\s*server\s*:\s*${TELNET_IPV6_SERVER} | ||
^\s*TELNET\s*server\s*port\s*:\s*${TELNET_SERVICE_PORT} | ||
^\s*TELNET\s*server\s*source\s*address\s*:\s*${TELNET_SERVER_SOURCE_ADDRESS} | ||
^\s*ACL4\s*number\s*:\s*${ACL4_NUMBER} | ||
^\s*ACL6\s*number\s*:\s*${ACL6_NUMBER} | ||
^\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
6 changes: 6 additions & 0 deletions
6
tests/huawei_vrp/display_telnet_server_status/huawei_vrp_display_telnet_server_status.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,6 @@ | ||
TELNET IPv4 server :Disable | ||
TELNET IPv6 server :Disable | ||
TELNET server port :23 | ||
TELNET server source address :0.0.0.0 | ||
ACL4 number :0 | ||
ACL6 number :0 |
8 changes: 8 additions & 0 deletions
8
tests/huawei_vrp/display_telnet_server_status/huawei_vrp_display_telnet_server_status.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,8 @@ | ||
--- | ||
parsed_sample: | ||
- acl4_number: "0" | ||
acl6_number: "0" | ||
telnet_ipv4_server: "Disable" | ||
telnet_ipv6_server: "Disable" | ||
telnet_server_source_address: "0.0.0.0" | ||
telnet_service_port: "23" |