diff --git a/templates/hp_procurve_show_lldp_info_remote-device_detail.textfsm b/templates/hp_procurve_show_lldp_info_remote-device_detail.textfsm new file mode 100644 index 0000000000..8d9cbe51ec --- /dev/null +++ b/templates/hp_procurve_show_lldp_info_remote-device_detail.textfsm @@ -0,0 +1,52 @@ +Value Required LOCAL_PORT (\S+) +Value NEIGHBOR_CHASSIS_TYPE (\S+) +Value NEIGHBOR_CHASSIS_ID ([a-f0-9]{6}-[a-f0-9]{6}|(?:[a-z0-9]{2}\s){5}[a-z0-9]{2}|\S+) +Value PORT_TYPE (\S+) +Value NEIGHBOR_PORTID (.*?) +Value NEIGHBOR_SYSNAME (.*?) +Value SYSTEM_DESCR (.*?) +Value PORT_DESCR (\S+|.*?) +Value PVID (\d+|.*?) +Value SYSTEM_CAPABILITIES_SUPPORTED (.*?) +Value SYSTEM_CAPABILITIES_ENABLED (.*?) +Value REMOTE_MANAGEMENT_ADDRESS (\S+|.*?) + +Start + ^\s*$$ + ^\s*LLDP\sRemote\sDevice\sInformation\sDetail -> LLDP + ^. -> Error + +LLDP + ^\s+Local\sPort\s+:\s${LOCAL_PORT}\s*$$ + ^\s+ChassisType\s+:\s${NEIGHBOR_CHASSIS_TYPE}\s*$$ + ^\s+ChassisId\s+:\s${NEIGHBOR_CHASSIS_ID}\s*$$ + ^\s+PortType\s+:\s${PORT_TYPE}\s*$$ + ^\s+PortId\s+:\s${NEIGHBOR_PORTID}\s*$$ + ^\s+SysName\s+:\s${NEIGHBOR_SYSNAME}\s*$$ + ^\s+System\sDescr\s:\s${SYSTEM_DESCR}\s*$$ + ^\s+PortDescr\s+:\s${PORT_DESCR}\s*$$ + ^\s+Pvid\s+:\s${PVID}\s*$$ + ^\s+System\s+Capabilities\s+Supported\s+:\s${SYSTEM_CAPABILITIES_SUPPORTED}\s*$$ + ^\s+System\s+Capabilities\s+Enabled\s+:\s${SYSTEM_CAPABILITIES_ENABLED}\s*$$ + ^\s+Remote\s+Management\s+Address\s*$$ + ^\s+Type.*$$ + ^\s+Address\s:\s${REMOTE_MANAGEMENT_ADDRESS} + ^\s+Poe\s+Plus\s+Information\s+Detail\s*$$ + ^\s+Poe\s+Device\s+Type.* + ^\s+Power\s+Source.* + ^\s+Power\s+Priority.* + ^\s+PD\s+Request\s+Power\s+Value.* + ^\s+PD\s+Requested\s+Power\s+Value.* + ^\s+Requested\s+Power\s+Value.* + ^\s+Actual\s+Power\s+Value.* + ^\s+PSE\s+Allocated\s+Power\s+Value.* + ^\s+MED\sInformation\sDetail\s*$$ + ^\s+EndpointClass.* + ^\s+Poe\s+Device\s+Type.* + ^\s+Power\s+Requested.* + ^\s+Power\s+Source.* + ^\s+Power\s+Priority.* + ^\s*$$ + ^\S+\#\s*$$ -> Record + ^\s*-*$$ -> Record + ^. -> Error diff --git a/templates/index b/templates/index index 3d81e76da1..12e049e690 100644 --- a/templates/index +++ b/templates/index @@ -347,6 +347,7 @@ hp_comware_display_vlan_brief.textfsm, .*, hp_comware, di[[splay]] v[[lan]] b[[r hp_comware_display_clock.textfsm, .*, hp_comware, di[[splay]] clo[[ck]] hp_comware_display_arp.textfsm, .*, hp_comware, di[[splay]] a[[rp]] +hp_procurve_show_lldp_info_remote-device_detail.textfsm, .*, hp_procurve, sh[[ow]] ll[[dp]] i[[nfo]] r[[emote-device]] .+ hp_procurve_show_tech_buffers.textfsm, .*, hp_procurve, sh[[ow]] tec[[h]] buf[[ffers]] hp_procurve_show_mac-address.textfsm, .*, hp_procurve, sh[[ow]] mac-a[[ddress]] hp_procurve_show_system.textfsm, .*, hp_procurve, sh[[ow]] syst[[em]] diff --git a/tests/hp_procurve/show_lldp_info_remote-device_detail/hp_procurve_show_lldp_info_remote-device_detail.raw b/tests/hp_procurve/show_lldp_info_remote-device_detail/hp_procurve_show_lldp_info_remote-device_detail.raw new file mode 100644 index 0000000000..b6030a5ddb --- /dev/null +++ b/tests/hp_procurve/show_lldp_info_remote-device_detail/hp_procurve_show_lldp_info_remote-device_detail.raw @@ -0,0 +1,183 @@ + + LLDP Remote Device Information Detail + + Local Port : 1 + ChassisType : mac-address + ChassisId : 3821c7-c1cd00 + PortType : local + PortId : 1 + SysName : 65432p-swi006-abcd-srvroom-4asd + System Descr : Aruba JL357A 2540-48G-PoE+-4SFP+ Switch, revision YC.16.0... + PortDescr : 1 + Pvid : 0 + + System Capabilities Supported : bridge, router + System Capabilities Enabled : bridge + + Remote Management Address + Type : ipv4 + Address : 192.168.130.100 + + Poe Plus Information Detail + + Poe Device Type : Type2 PSE + Power Source : Unknown + Power Priority : Unknown + PD Requested Power Value : 0.0 Watts + PSE Allocated Power Value : 0.0 Watts + +------------------------------------------------------------------------------ + Local Port : 3 + ChassisType : mac-address + ChassisId : 3ce1a1-2218f0 + PortType : mac-address + PortId : 3c e1 a1 22 18 f0 + SysName : + System Descr : + PortDescr : + Pvid : + + System Capabilities Supported : + System Capabilities Enabled : + + Remote Management Address + + MED Information Detail + EndpointClass :Class1 + +------------------------------------------------------------------------------ + Local Port : 7 + ChassisType : mac-address + ChassisId : bcf310-1f8b40 + PortType : interface-name + PortId : mgt0 + SysName : AH-cust-AP21 + System Descr : + PortDescr : + Pvid : + + System Capabilities Supported : bridge, wlan-access-point + System Capabilities Enabled : bridge, wlan-access-point + + Remote Management Address + Type : ipv4 + Address : 192.168.100.55 + + MED Information Detail + EndpointClass :Class1 + Poe Device Type :PD + Power Requested :17.5 W + Power Source :From PSE + Power Priority :Critical + + Poe Plus Information Detail + + Poe Device Type : Type2 PD + Power Source : Unknown + Power Priority : Critical + PD Requested Power Value : 17.5 Watts + PSE Allocated Power Value : 17.5 Watts + +------------------------------------------------------------------------------ + Local Port : 25 + ChassisType : mac-address + ChassisId : d8cb8a-6d303c + PortType : mac-address + PortId : d8 cb 8a 6d 30 3c + SysName : + System Descr : + PortDescr : + Pvid : + + System Capabilities Supported : + System Capabilities Enabled : + + Remote Management Address + + MED Information Detail + EndpointClass :Class1 + +------------------------------------------------------------------------------ + Local Port : 29 + ChassisType : mac-address + ChassisId : 484d7e-e66c42 + PortType : mac-address + PortId : 48 4d 7e e6 6c 42 + SysName : + System Descr : + PortDescr : + Pvid : + + System Capabilities Supported : + System Capabilities Enabled : + + Remote Management Address + + MED Information Detail + EndpointClass :Class1 + +------------------------------------------------------------------------------ + Local Port : 36 + ChassisType : mac-address + ChassisId : 603197-7aa548 + PortType : local + PortId : 1 + SysName : NAP203 + System Descr : ZLD 6.00(###.8)B1 (cannon) + PortDescr : UPLINK + Pvid : + + System Capabilities Supported : bridge, wlan-access-point, router + System Capabilities Enabled : bridge, wlan-access-point, router + + Remote Management Address + Type : ipv4 + Address : 192.168.100.50 + + Poe Plus Information Detail + + Poe Device Type : Type2 PD + Power Source : Unknown + Power Priority : High + PD Requested Power Value : 16.0 Watts + PSE Allocated Power Value : 16.0 Watts + +------------------------------------------------------------------------------ + Local Port : 37 + ChassisType : mac-address + ChassisId : b00cd1-359a98 + PortType : mac-address + PortId : b0 0c d1 35 9a 98 + SysName : + System Descr : + PortDescr : + Pvid : + + System Capabilities Supported : + System Capabilities Enabled : + + Remote Management Address + + MED Information Detail + EndpointClass :Class1 + +------------------------------------------------------------------------------ + Local Port : 42 + ChassisType : mac-address + ChassisId : d8cb8a-894644 + PortType : mac-address + PortId : d8 cb 8a 89 46 44 + SysName : + System Descr : + PortDescr : + Pvid : + + System Capabilities Supported : + System Capabilities Enabled : + + Remote Management Address + + MED Information Detail + EndpointClass :Class1 + + diff --git a/tests/hp_procurve/show_lldp_info_remote-device_detail/hp_procurve_show_lldp_info_remote-device_detail.yml b/tests/hp_procurve/show_lldp_info_remote-device_detail/hp_procurve_show_lldp_info_remote-device_detail.yml new file mode 100644 index 0000000000..90ea5ad185 --- /dev/null +++ b/tests/hp_procurve/show_lldp_info_remote-device_detail/hp_procurve_show_lldp_info_remote-device_detail.yml @@ -0,0 +1,98 @@ +--- +parsed_sample: + - local_port: "1" + neighbor_chassis_type: "mac-address" + neighbor_chassis_id: "3821c7-c1cd00" + neighbor_portid: "1" + neighbor_sysname: "65432p-swi006-abcd-srvroom-4asd" + port_descr: "1" + port_type: "local" + pvid: "0" + remote_management_address: "192.168.130.100" + system_capabilities_enabled: "bridge" + system_capabilities_supported: "bridge, router" + system_descr: "Aruba JL357A 2540-48G-PoE+-4SFP+ Switch, revision YC.16.0..." + - local_port: "3" + neighbor_chassis_type: "mac-address" + neighbor_chassis_id: "3ce1a1-2218f0" + neighbor_portid: "3c e1 a1 22 18 f0" + neighbor_sysname: "" + port_descr: "" + port_type: "mac-address" + pvid: "" + remote_management_address: "" + system_capabilities_enabled: "" + system_capabilities_supported: "" + system_descr: "" + - local_port: "7" + neighbor_chassis_type: "mac-address" + neighbor_chassis_id: "bcf310-1f8b40" + neighbor_portid: "mgt0" + neighbor_sysname: "AH-cust-AP21" + port_descr: "" + port_type: "interface-name" + pvid: "" + remote_management_address: "192.168.100.55" + system_capabilities_enabled: "bridge, wlan-access-point" + system_capabilities_supported: "bridge, wlan-access-point" + system_descr: "" + - local_port: "25" + neighbor_chassis_type: "mac-address" + neighbor_chassis_id: "d8cb8a-6d303c" + neighbor_portid: "d8 cb 8a 6d 30 3c" + neighbor_sysname: "" + port_descr: "" + port_type: "mac-address" + pvid: "" + remote_management_address: "" + system_capabilities_enabled: "" + system_capabilities_supported: "" + system_descr: "" + - local_port: "29" + neighbor_chassis_type: "mac-address" + neighbor_chassis_id: "484d7e-e66c42" + neighbor_portid: "48 4d 7e e6 6c 42" + neighbor_sysname: "" + port_descr: "" + port_type: "mac-address" + pvid: "" + remote_management_address: "" + system_capabilities_enabled: "" + system_capabilities_supported: "" + system_descr: "" + - local_port: "36" + neighbor_chassis_type: "mac-address" + neighbor_chassis_id: "603197-7aa548" + neighbor_portid: "1" + neighbor_sysname: "NAP203" + port_descr: "UPLINK" + port_type: "local" + pvid: "" + remote_management_address: "192.168.100.50" + system_capabilities_enabled: "bridge, wlan-access-point, router" + system_capabilities_supported: "bridge, wlan-access-point, router" + system_descr: "ZLD 6.00(###.8)B1 (cannon)" + - local_port: "37" + neighbor_chassis_type: "mac-address" + neighbor_chassis_id: "b00cd1-359a98" + neighbor_portid: "b0 0c d1 35 9a 98" + neighbor_sysname: "" + port_descr: "" + port_type: "mac-address" + pvid: "" + remote_management_address: "" + system_capabilities_enabled: "" + system_capabilities_supported: "" + system_descr: "" + - local_port: "42" + neighbor_chassis_type: "mac-address" + neighbor_chassis_id: "d8cb8a-894644" + neighbor_portid: "d8 cb 8a 89 46 44" + neighbor_sysname: "" + port_descr: "" + port_type: "mac-address" + pvid: "" + remote_management_address: "" + system_capabilities_enabled: "" + system_capabilities_supported: "" + system_descr: ""