Skip to content

Commit

Permalink
New Template: hp_comware_display_lldp_neighbor-information_verbose (n…
Browse files Browse the repository at this point in the history
  • Loading branch information
xdai555 authored Mar 14, 2020
1 parent 1b50c77 commit 3bed288
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Value Required LOCAL_INTERFACE (\S+)
Value CHASSIS_ID (\S+)
Value NEIGHBOR_PORT_ID (.*)
Value NEIGHBOR_INTERFACE (.*)
Value NEIGHBOR (\S+)
Value MANAGEMENT_IP (\S+)
Value VLAN (\d+)

Start
^The\s+LLDP\s+service\s+is\s+not\s+running -> EOF
^LLDP\s+neighbor-information\s+of\s+port\s+\d+\[${LOCAL_INTERFACE}\]
^LLDP\s+agent\s+nearest-bridge:
^\s+LLDP\s+neighbor index\s+:.*
^\s+Update\s+time\s+:.*
^\s+Chassis\s+type\s+:.*
^\s+Chassis\s+ID\s+:\s+${CHASSIS_ID}
^\s+Port\s+ID\s+type\s+:.*
^\s+Port\s+ID\s+:\s+${NEIGHBOR_PORT_ID}
^\s+Time\s+to\s+live\d+:.*
^\s+Port\s+description\s+:\s+${NEIGHBOR_INTERFACE}
^\s+System\s+name\s+:\s+${NEIGHBOR}
^\s+Management\s+address\s+:\s+${MANAGEMENT_IP}
^\s+Management\s+address\s+interface\s+type
^\s+Management\s+address\s+interface\s+ID
^\s+Management\s+address\s+OID
^\s+Port\s+VLAN\s+ID\(PVID\)\s+:\s+${VLAN}
^\s+Maximum\s+frame\s+size -> Record Start
1 change: 1 addition & 0 deletions templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ fortinet_fortios_get_router_info_bgp_summary.textfsm, .*, fortinet_fortios, g[[e
fortinet_fortios_get_system_interface.textfsm, .*, fortinet_fortios, [[g]]et [[s]]ystem [[i]]nterface
fortinet_fortios_get_system_status.textfsm, .*, fortinet_fortios, [[g]]et [[s]]ystem [[s]]tatus

hp_comware_display_lldp_neighbor-information_verbose.textfsm, .*, hp_comware, di[[splay]] ll[[dp]] n[[eighbor-information]] v[[erbose]]
hp_comware_display_counters_bound_interface.textfsm, .*, hp_comware, di[[splay]] cou[[nters]] (\S+) i[[nterface]]
hp_comware_display_ip_interface.textfsm, .*, hp_comware, dis[[play]] ip i[[nterface]]
hp_comware_display_mac-address.textfsm, .*, hp_comware, di[[splay]] mac-ad[[dress]]
Expand Down

0 comments on commit 3bed288

Please sign in to comment.