Skip to content

Commit

Permalink
Add template: Huawei vrp display telnet server status (networktocode#…
Browse files Browse the repository at this point in the history
  • Loading branch information
evilmonkey19 authored Oct 3, 2024
1 parent 06cfd16 commit b31d24d
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 0 deletions.
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
1 change: 1 addition & 0 deletions ntc_templates/templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,7 @@ huawei_vrp_display_ip_vpn-instance_interface.textfsm, .*, huawei_vrp, di[[splay]
huawei_vrp_display_snmp-agent_community_read.textfsm, .*, huawei_vrp, dis[[play]] snm[[p-agent]] c[[ommunity]] (r[[ead]]|w[[rite]])
huawei_vrp_display_ip_routing-table_verbose.textfsm, .*, huawei_vrp, dis[[play]] ip(v6)? routi[[ng-table]] ve[[rbose]]
huawei_vrp_display_interface_description.textfsm, .*, huawei_vrp, dis[[play]] inter[[face]] des[[cription]]
huawei_vrp_display_telnet_server_status.textfsm, .*, huawei_vrp, di[[splay]] t[[elnet]] s[[erver]] s[[tatus]]
huawei_vrp_display_service-set_id_id.textfsm, .*, huawei_vrp, dis[[play]] service-set (id|name) \S+
huawei_vrp_display_interface_brief.textfsm, .*, huawei_vrp, dis[[play]] inter[[face]] br[[ief]]
huawei_vrp_display_ip_vpn-instance.textfsm, .*, huawei_vrp, di[[splay]] ip vpn[[-instance]]
Expand Down
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
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"

0 comments on commit b31d24d

Please sign in to comment.