-
Notifications
You must be signed in to change notification settings - Fork 716
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add template: Huawei vrp display telnet server status #1857
Open
evilmonkey19
wants to merge
4
commits into
networktocode:master
Choose a base branch
from
evilmonkey19:huawei_vrp_display_telnet_server_status
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
df42e0d
Updated templated with one more use case
evilmonkey19 06c6b87
Added template: huawei VRP display http server
evilmonkey19 8d8c7f4
Added template: huawei_vrp_telnet_server_status
evilmonkey19 4054f04
Merge branch 'master' into huawei_vrp_display_telnet_server_status
evilmonkey19 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
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,27 @@ | ||
Value HTTP_SERVER_STATUS (\S+) | ||
Value HTTP_SERVER_PORT (\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 (\d+\(\d+\)) | ||
Value HTTP_SSL_POLICY (\S+) | ||
Value HTTP_IPV6_SERVER_STATUS (\S+) | ||
Value HTTP_IPV6_SERVER_PORT (\d+\(\d+\)) | ||
Value HTTPS_IPV6_STATUS (\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} | ||
14 changes: 14 additions & 0 deletions
14
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,14 @@ | ||||||||
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} | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
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: "80(80)" | ||
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" |
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" |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.