-
Notifications
You must be signed in to change notification settings - Fork 726
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New template: Huawei vrp display http server (#1856)
- Loading branch information
1 parent
a4a5c3b
commit 3cf08dc
Showing
4 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
ntc_templates/templates/huawei_vrp_display_http_server.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,29 @@ | ||
Value HTTP_SERVER_STATUS (\S+) | ||
Value HTTP_SERVER_PORT (disabled|\d+\(\d+\)) | ||
Value HTTP_TIMEOUT_INTERVAL (\d+) | ||
Value CURRENT_ONLINE_USERS (\d+) | ||
Value MAXIMUM_USERS_ALLOWED (\d+) | ||
Value HTTPS_SERVER_STATUS (\S+) | ||
Value HTTPS_SERVER_PORT (disabled|\d+\(\d+\)) | ||
Value HTTP_SSL_POLICY (\S+) | ||
Value HTTP_IPV6_SERVER_STATUS (\S+) | ||
Value HTTP_IPV6_SERVER_PORT (disabled|\d+\(\d+\)) | ||
Value HTTPS_IPV6_STATUS (disabled|\d+\(\d+\)) | ||
Value HTTP_SERVER_SOURCE_ADDRESS (\S+) | ||
|
||
Start | ||
^\s*HTTP\s*Server\s*Status\s*:\s*${HTTP_SERVER_STATUS} | ||
^\s*HTTP\s*Server\s*Port\s*:\s*${HTTP_SERVER_PORT} | ||
^\s*HTTP\s*Timeout\s*Interval\s*:\s*${HTTP_TIMEOUT_INTERVAL} | ||
^\s*Current\s*Online\s*Users\s*:\s*${CURRENT_ONLINE_USERS} | ||
^\s*Maximum\s*Users\s*Allowed\s*:\s*${MAXIMUM_USERS_ALLOWED} | ||
^\s*HTTP\s*Secure-server\s*Status\s*:\s*${HTTPS_SERVER_STATUS} | ||
^\s*HTTP\s*Secure-server\s*Port\s*:\s*${HTTPS_SERVER_PORT} | ||
^\s*HTTP\s*SSL\s*Policy\s*:\s*${HTTP_SSL_POLICY} | ||
^\s*HTTP\s*IPv6\s*Server\s*Status\s*:\s*${HTTP_IPV6_SERVER_STATUS} | ||
^\s*HTTP\s*IPv6\s*Server\s*Port\s*:\s*${HTTP_IPV6_SERVER_PORT} | ||
^\s*HTTP\s*IPv6\s*Secure-server\s*Status\s*:\s*${HTTP_IPV6_SERVER_PORT} | ||
^\s*HTTP\s*IPv6\s*Secure-server\s*Port\s*:\s*${HTTPS_IPV6_STATUS} | ||
^\s*HTTP\s*server\s*source\s*address\s*:\s*${HTTP_SERVER_SOURCE_ADDRESS} | ||
^\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
13 changes: 13 additions & 0 deletions
13
tests/huawei_vrp/display_http_server/huawei_vrp_display_http_server.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,13 @@ | ||
HTTP Server Status : disabled | ||
HTTP Server Port : 80(80) | ||
HTTP Timeout Interval : 20 | ||
Current Online Users : 0 | ||
Maximum Users Allowed : 1 | ||
HTTP Secure-server Status : disabled | ||
HTTP Secure-server Port : 443(443) | ||
HTTP SSL Policy : Default | ||
HTTP IPv6 Server Status : disabled | ||
HTTP IPv6 Server Port : 80(80) | ||
HTTP IPv6 Secure-server Status : disabled | ||
HTTP IPv6 Secure-server Port : 443(443) | ||
HTTP server source address : 0.0.0.0 |
14 changes: 14 additions & 0 deletions
14
tests/huawei_vrp/display_http_server/huawei_vrp_display_http_server.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,14 @@ | ||
--- | ||
parsed_sample: | ||
- current_online_users: "0" | ||
http_ipv6_server_port: "disabled" | ||
http_ipv6_server_status: "disabled" | ||
http_server_port: "80(80)" | ||
http_server_source_address: "0.0.0.0" | ||
http_server_status: "disabled" | ||
http_ssl_policy: "Default" | ||
http_timeout_interval: "20" | ||
https_ipv6_status: "443(443)" | ||
https_server_port: "443(443)" | ||
https_server_status: "disabled" | ||
maximum_users_allowed: "1" |