diff --git a/ntc_templates/templates/huawei_vrp_display_lldp_neighbor.textfsm b/ntc_templates/templates/huawei_vrp_display_lldp_neighbor.textfsm index ab11c9e925..73664770fa 100644 --- a/ntc_templates/templates/huawei_vrp_display_lldp_neighbor.textfsm +++ b/ntc_templates/templates/huawei_vrp_display_lldp_neighbor.textfsm @@ -1,7 +1,8 @@ -Value Required,Key LOCAL_INTERFACE (\S.+\S) +Value LOCAL_INTERFACE (\S.+\S) Value CHASSIS_TYPE (\S.+\S) Value CHASSIS_ID (\S.+\S) Value PORT_ID_TYPE (\S.+\S) +Value PORT_ID_SUBTYPE (\S.+\S) Value MANUFACTURER (.*?) Value PLATFORM (.*?) Value NEIGHBOR_PORT_ID (.*?) @@ -14,33 +15,93 @@ Value MGMT_ADDRESS_TYPE (\S+) Value MGMT_ADDRESS (\S+) Value EXPIRED_TIME (\d+) Value VLAN_ID (\d+) -Value VLAN_1_NAME (\S.+\S) +Value VLAN_ID_AND_PROTOCOL (\S+|\S.+\S) +Value VLAN_NAME (\S.+\S) Value SERIAL (\S+) Value OID (\S+) Value AUTONEGOTIATION_SUPPORTED (\S+) Value AUTONEGOTIATION_ENABLED (\S+) Value OPERATION_MODE (\S.+\S) Value POWER_PORT_CLASS (\S+) +Value PSE_POWER_PAIRSX (\S+|\S.+\S) Value PSE_POWER_SUPPORTED (\S+) Value PSE_POWER_ENABLED (\S+) Value PSE_PAIRS_CONTROL_ABILITY (\S+) Value POWER_PAIRS (\S+) +Value POWER_CLASS (\S+|\S.+\S) +Value POWER_CLASS_EXT (\S+|\S.+\S) +Value POWER_EXT_TYPE (\S+|\S.+\S) +Value PSE_ALLOCATED_MODE_POWER_A (\S+|\S.+\S) +Value PSE_ALLOCATED_MODE_POWER_B (\S+|\S.+\S) +Value PSE_POWERING_STATUS (\S+|\S.+\S) +Value PSE_AUTOCLASS_SUPPORT (\S+|\S.+\S) +Value PD_4PID (\S+|\S.+\S) +Value PD_LOAD (\S+|\S.+\S) +Value PD_POWERED_STATUS (\S+|\S.+\S) +Value DUAL_SIGNATURE_POWER_CLASSX_MODE_A (\S+|\S.+\S) +Value DUAL_SIGNATURE_POWER_CLASSX_MODE_B (\S+|\S.+\S) +Value AUTOCLASS_COMPLETED (\S+|\S.+\S) +Value AUTOCLASS_REQUEST (\S+|\S.+\S) +Value POWER_DOWN_REQUEST (\S+|\S.+\S) +Value POWER_DOWN_TIME (\S+|\S.+\S) +Value POWER_DOWN (\S+|\S.+\S) +Value POWER_CAPABILITY (\S+|\S.+\S) +Value POWER_UP_MODE (\S+|\S.+\S) Value PORT_POWER_CLASSIFICATION (\S+) Value LINK_AGGREGATION_SUPPORTED (\S+) Value LINK_AGGREGATION_ENABLED (\S+) Value AGGREGATION_PORT_ID (\d+) +Value PORT_IDENTITY (\S+|\S.+\S) +Value DISCOVERED_TIME (\S+|\S.+\S) +Value ENERGY_EFFICIENT_ETHERNET_SUPPORT (\S+|\S.+\S) +Value TRANSMIT_TW (\S+|\S.+\S) +Value RECEIVE_TW (\S+|\S.+\S) +Value FALLBACK_RECEIVE_TW (\S+|\S.+\S) +Value ECHO_TRANSMIT_TW (\S+|\S.+\S) +Value ECHO_RECEIVE_TW (\S+|\S.+\S) +Value NETWORK_CARD_ID (\S+|\S.+\S) Value MAXIMUM_FRAME_SIZE (\d+) +Value MED_CAPABILITY (\S+|\S.+\S) +Value MED_DEVICE_TYPE (\S+|\S.+\S) Value MED_DEVICE_CLASS (\S.+\S) Value FIRMWARE_REVISION (\S.+\S) Value HARDWARE_REVISION (\S.+\S) +Value SOFTWARE_REVISION (\S.+\S) +Value SERIAL_NUMBER (\S.+\S) +Value MANUFACTURER_NAME (\S.+\S) +Value MODEL_NAME (\S.+\S) +Value ASSET_TRACKING_IDENTIFIER (\S.+\S) +Value MEDIA_POLICY_TYPE (\S.+\S) +Value UNKNOWN_POLICY (\S.+\S) +Value VLAN_TAGGED (\S+) +Value MEDIA_POLICY_VLAN_ID (\d+) +Value MEDIA_POLICY_L2_PRIORITY (\d+) +Value MEDIA_POLICY_DSCP (\d+) +Value POWER_TYPE (\S+|\S.+\S) +Value POWER_SOURCE (\S+|\S.+\S) +Value POWER_PRIORITY (\S+|\S.+\S) +Value PD_REQUESTED_POWER (\S+|\S.+\S) +Value PSE_ALLOCATED_POWER (\S+|\S.+\S) +Value PD_REQUESTED_POWER_MODE_A (\S+|\S.+\S) +Value PD_REQUESTED_POWER_MODE_B (\S+|\S.+\S) +Value PSE_MAXIMUM_AVAILABLE_POWER (\S+|\S.+\S) +Value PSE_POWER_PAIRS_EXT (\S+|\S.+\S) +Value POE_PSE_POWER_SOURCE (\S.+\S) +Value PORT_PSE_PRIORITY (\S.+\S) +Value PORT_AVAILABLE_POWER_VALUE (\d+) +Value LOCATION_FORMAT (\S.+\S) +Value LOCATION_INFORMATION (\S.+\S) + Start + ^\s*(GigabitEthernet|GE) -> Continue.Record ^\s*${LOCAL_INTERFACE}\s+has\s+\d+\s+neighbor(s|\(s\)):\s*$$ ^\s*\S.+\S\s+has\s+\d+\s+neighbor(s|\(s\))\s*$$ ^\s*Neighbor\s+index\s*:\s*\d+\s*$$ ^\s*Chassis\s+type\s*:\s*${CHASSIS_TYPE}\s*$$ ^\s*Chassis\s+ID\s*:\s*${CHASSIS_ID}\s*$$ ^\s*Port\s+ID\s+type\s*:\s*${PORT_ID_TYPE}\s*$$ + ^\s*Port\s+ID\s+subtype\s*:\s*${PORT_ID_SUBTYPE}\s*$$ ^\s*Port\s+ID\s*:\s*${NEIGHBOR_PORT_ID}\s*$$ ^\s*Port\s+description\s*:\s*${NEIGHBOR_INTERFACE}?\s*$$ ^\s*System\s+name\s*:\s*${NEIGHBOR_NAME}?\s*$$ @@ -51,44 +112,89 @@ Start ^\s*Management\s+address\s*(value\s*)?:\s*${MGMT_ADDRESS}\s*$$ ^\s*OID\s*:\s*${OID}?\s*$$ ^\s*Expired\s+time\s*:\s*${EXPIRED_TIME}s\s*$$ - ^\s*Port\s+VLAN\s+ID\(PVID\)\s*:\s*${VLAN_ID}\s*$$ - ^\s*VLAN\s+name\s+of\s+VLAN\s*1\s*:\s*${VLAN_1_NAME}\s*$$ + ^\s*Port\s+VLAN\s+ID\(PVID\)\s*:\s*(--|${VLAN_ID})\s*$$ + ^\s*Port\s+and\s+Protocol\s+VLAN\s+(supported|enabled|ID\(PPVID\))\s*:\s*(--|${VLAN_ID_AND_PROTOCOL})\s*$$ + ^\s*VLAN\s+name\s+of\s+VLAN\s*(?:\d+\s*)?:\s*(--|${VLAN_NAME})\s*$$ ^\s*Protocol\s+identity ^\s*Auto-negotiation\s+supported\s*:\s*${AUTONEGOTIATION_SUPPORTED}\s*$$ ^\s*Auto-negotiation\s+enabled\s*:\s*${AUTONEGOTIATION_ENABLED}\s*$$ ^\s*OperMau\s*:\s*${OPERATION_MODE}\s*$$ ^\s*Power\s+port\s+class\s*:\s*${POWER_PORT_CLASS}\s*$$ + ^\s*PSE\s+power\s+pairsx\s*:\s*${PSE_POWER_PAIRSX}\s*$$ ^\s*PSE\s+power\s+supported\s*:\s*${PSE_POWER_SUPPORTED}\s*$$ ^\s*PSE\s+power\s+enabled\s*:\s*${PSE_POWER_ENABLED}\s*$$ ^\s*PSE\s+pairs\s+control\s+ability\s*:\s*${PSE_PAIRS_CONTROL_ABILITY}\s*$$ ^\s*Power\s+pairs\s*:\s*${POWER_PAIRS}\s*$$ + ^\s*Power\s+class\s*:\s*${POWER_CLASS}\s*$$ + ^\s*Power\s+class\s+ext\s*:\s*${POWER_CLASS_EXT}\s*$$ + ^\s*Power\s+(type|typex)(?:\s+ext)?\s*:\s*${POWER_EXT_TYPE}\s*$$ + ^\s*PSE\s+allocated\s+power\s+mode\s+A\s+value\s*:\s*${PSE_ALLOCATED_MODE_POWER_A}\s*$$ + ^\s*PSE\s+allocated\s+power\s+mode\s+B\s+value\s*:\s*${PSE_ALLOCATED_MODE_POWER_B}\s*$$ + ^\s*PSE\s+powering\s+status\s*:\s*${PSE_POWERING_STATUS}\s*$$ + ^\s*PSE\s+Autoclass\s+support\s*:\s*${PSE_AUTOCLASS_SUPPORT}\s*$$ + ^\s*PD\s+4PID\s*:\s*${PD_4PID}\s*$$ + ^\s*PD\s+Load\s*:\s*${PD_LOAD}\s*$$ + ^\s*PD\s+powered\s+status\s*:\s*${PD_POWERED_STATUS}\s*$$ + ^\s*Dual-signature\s+power\s+Classx\s+mode\s+A\s*:\s*${DUAL_SIGNATURE_POWER_CLASSX_MODE_A}\s*$$ + ^\s*Dual-signature\s+power\s+Classx\s+mode\s+B\s*:\s*${DUAL_SIGNATURE_POWER_CLASSX_MODE_B}\s*$$ + ^\s*Autoclass\s+completed\s*:\s*${AUTOCLASS_COMPLETED}\s*$$ + ^\s*Autoclass\s+request\s*:\s*${AUTOCLASS_REQUEST}\s*$$ + ^\s*Power\s+down\s+request\s*:\s*${POWER_DOWN_REQUEST}\s*$$ + ^\s*Power\s+down\s+time\s*:\s*${POWER_DOWN_TIME}\s*$$ + ^\s*Power\s+down\s*:\s*${POWER_DOWN}\s*$$ + ^\s*Power\s+capability\s*:\s*${POWER_CAPABILITY}\s*$$ + ^\s*Power-up\s+mode\s*:\s*${POWER_UP_MODE}\s*$$ ^\s*Port\s+power\s+classification\s*:\s*${PORT_POWER_CLASSIFICATION}\s*$$ ^\s*Link\s+aggregation\s+supported\s*:\s*${LINK_AGGREGATION_SUPPORTED}\s*$$ ^\s*Link\s+aggregation\s+enabled\s*:\s*${LINK_AGGREGATION_ENABLED}\s*$$ - ^\s*Aggregation\s+port\s+ID\s*:\s*${AGGREGATION_PORT_ID}\s*$$ - ^\s*Maximum\s+frame\s+Size\s*:\s*${MAXIMUM_FRAME_SIZE}\s*$$ + ^\s*Aggregation\s+port\s+ID\s*:\s*(--|${AGGREGATION_PORT_ID})\s*$$ + ^\s*Port\s+Identity\s*:\s*(--|${PORT_IDENTITY})\s*$$ + ^\s*Discovered\s+time\s*:\s*(--|${DISCOVERED_TIME})\s*$$ + ^\s*EEE\s+support\s*:\s*(--|${ENERGY_EFFICIENT_ETHERNET_SUPPORT})\s*$$ + ^\s*Transmit\s+Tw\s*:\s*(--|${TRANSMIT_TW})\s*$$ + ^\s*Receive\s+Tw\s*:\s*(--|${RECEIVE_TW})\s*$$ + ^\s*Fallback\s+Receive\s*Tw\s*:\s*(--|${FALLBACK_RECEIVE_TW})\s*$$ + ^\s*Echo\s+Transmit\s+Tw\s*:\s*(--|${ECHO_TRANSMIT_TW})\s*$$ + ^\s*Echo\s+Receive\s+Tw\s*:\s*(--|${ECHO_RECEIVE_TW})\s*$$ + ^\s*Network\s+Card\s+ID\s*:\s*(--|${NETWORK_CARD_ID})\s*$$ + ^\s*Maximum\s+frame\s+Size\s*:\s*(--|${MAXIMUM_FRAME_SIZE})\s*$$ + ^\s*Med\s+capability\s*:\s*(--|${MED_CAPABILITY})\s*$$ + ^\s*Med\s+device\s+type\s*:\s*(--|${MED_DEVICE_TYPE})\s*$$ ^\s*MED\s+Device\s+information\s*$$ ^\s*Device\s+class\s*:\s*${MED_DEVICE_CLASS}\s*$$ ^\s*HardwareRev\s*:\s*${HARDWARE_REVISION}\s*$$ - ^\s*FirmwareRev\s*:\s*(NA|${FIRMWARE_REVISION})\s*$$ -> Record - ^\s*SoftwareRev\s*:\s*(\S.+\S)\s*$$ - ^\s*SerialNum\s*:\s*(NA|\S.+\S)\s*$$ - ^\s*Manufacturer\s+name\s*:\s*(\S.+\S)\s*$$ - ^\s*Model\s+name\s*:\s*(\S.+\S)\s*$$ - ^\s*Asset\s+tracking\s+identifier\s*:\s*(NA|\S.+\S)\s*$$ - ^\s*Media\s+policy\s+type\s*:\s*(\S+)\s*$$ - ^\s*Unknown\s+Policy\s*:\s*(\S+)\s*$$ - ^\s*VLAN\s+tagged\s*:\s*(\S+)\s*$$ - ^\s*Media\s+policy\s+VlanID\s*:\s*(\d+)\s*$$ - ^\s*Media\s+policy\s+L2\s+priority\s*:\s*(\d+)\s*$$ - ^\s*Media\s+policy\s+Dscp\s*:\s*(\d+)\s*$$ - ^\s*Power\s+Type\s*:\s*(\S+)\s*$$ - ^\s*PoE\s+PSE\s+power\s+source\s*:\s*(\S+)\s*$$ - ^\s*Port\s+PSE\s+Priority\s*:\s*(\S+)\s*$$ - ^\s*Port\s+Available\s+power\s+value\s*:\s*(\d+)\s*$$ - ^\s*Location\s+format\s*:\s*(\S.+\S)\s*$$ - ^\s*Location\s+information\s*:\s*(\S.+\S)\s*$$ + ^\s*FirmwareRev\s*:\s*(NA|${FIRMWARE_REVISION})\s*$$ + ^\s*SoftwareRev\s*:\s*${SOFTWARE_REVISION}\s*$$ + ^\s*SerialNum\s*:\s*(NA|${SERIAL_NUMBER})\s*$$ + ^\s*Manufacturer\s+name\s*:\s*${MANUFACTURER_NAME}\s*$$ + ^\s*Model\s+name\s*:\s*${MODEL_NAME}\s*$$ + ^\s*Asset\s+tracking\s+identifier\s*:\s*(NA|${ASSET_TRACKING_IDENTIFIER})\s*$$ + ^\s*Media\s+policy\s+type\s*:\s*${MEDIA_POLICY_TYPE}\s*$$ + ^\s*Unknown\s+Policy\s*:\s*${UNKNOWN_POLICY}\s*$$ + ^\s*VLAN\s+tagged\s*:\s*${VLAN_TAGGED}\s*$$ + ^\s*Media\s+policy\s+VlanID\s*:\s*${MEDIA_POLICY_VLAN_ID}\s*$$ + ^\s*Media\s+policy\s+L2\s+priority\s*:\s*${MEDIA_POLICY_L2_PRIORITY}\s*$$ + ^\s*Media\s+policy\s+Dscp\s*:\s*${MEDIA_POLICY_DSCP}\s*$$ + ^\s*Power\s+(T|t)ype\s*:\s*${POWER_TYPE}\s*$$ + ^\s*Power\s+source\s*:\s*${POWER_SOURCE}\s*$$ + ^\s*Power\s+priority\s*:\s*${POWER_PRIORITY}\s*$$ + ^\s*PD\s+requested\s+power\s+value\s*:\s*${PD_REQUESTED_POWER}\s*$$ + ^\s*PSE\s+allocated\s+power\s+value\s*:\s*${PSE_ALLOCATED_POWER}\s*$$ + ^\s*PD\s+requested\s+power\s+mode\s+A\s+value\s*:\s*${PD_REQUESTED_POWER_MODE_A}\s*$$ + ^\s*PD\s+requested\s+power\s+mode\s+B\s+value\s*:\s*${PD_REQUESTED_POWER_MODE_B}\s*$$ + ^\s*PSE\s+maximum\s+available\s+power\s*:\s*${PSE_MAXIMUM_AVAILABLE_POWER}\s*$$ + ^\s*PSE\s+power\s+pairs\s+ext\s*:\s*${PSE_POWER_PAIRS_EXT}\s*$$ + ^\s*PoE\s+PSE\s+power\s+source\s*:\s*${POE_PSE_POWER_SOURCE}\s*$$ + ^\s*Port\s+PSE\s+Priority\s*:\s*${PORT_PSE_PRIORITY}s*$$ + ^\s*Port\s+Available\s+power\s+value\s*:\s*${PORT_AVAILABLE_POWER_VALUE}\s*$$ + ^\s*Location\s+format\s*:\s*${LOCATION_FORMAT}\s*$$ + ^\s*Location\s+information\s*:\s*${LOCATION_INFORMATION}\s*$$ ^\s*Ca\s+type\s+Ca\s+value\s*$$ + ^\s*Unrecognized\s+organizationally\s+defined\s+TLV\s*$$ + ^\s*TLV\s+OUI\s*:\s*(\S+|\S.+\S)\s*$$ + ^\s*TLV\s+subtype\s*:\s*(\S+|\S.+\S)\s*$$ + ^\s*Index\s*:\s*(\S+|\S.+\S)\s*$$ + ^\s*TLV\s+information\s*:\s*(\S+|\S.+\S)\s*$$ ^\s+$$ ^. -> Error diff --git a/ntc_templates/templates/huawei_vrp_display_lldp_neighbor2.textfsm b/ntc_templates/templates/huawei_vrp_display_lldp_neighbor2.textfsm deleted file mode 100644 index 6f9bf87bd3..0000000000 --- a/ntc_templates/templates/huawei_vrp_display_lldp_neighbor2.textfsm +++ /dev/null @@ -1,85 +0,0 @@ -Value Required,Key LOCAL_INTERFACE (\S.+\S) -Value SOFTWARE_REVISION (\S.+\S) -Value SERIAL_NUMBER (\S.+\S) -Value MANUFACTURER_NAME (\S.+\S) -Value MODEL_NAME (\S.+\S) -Value ASSET_TRACKING_IDENTIFIER (\S.+\S) -Value MEDIA_POLICY_TYPE (\S.+\S) -Value UNKNOWN_POLICY (\S.+\S) -Value VLAN_TAGGED (\S+) -Value MEDIA_POLICY_VLAN_ID (\d+) -Value MEDIA_POLICY_L2_PRIORITY (\d+) -Value MEDIA_POLICY_DSCP (\d+) -Value POWER_TYPE (\S.+\S) -Value POE_PSE_POWER_SOURCE (\S.+\S) -Value PORT_PSE_PRIORITY (\S.+\S) -Value PORT_AVAILABLE_POWER_VALUE (\d+) -Value LOCATION_FORMAT (\S.+\S) -Value LOCATION_INFORMATION (\S.+\S) - -Start - ^\s*${LOCAL_INTERFACE}\s+has\s+\d+\s+neighbor(s|\(s\)):\s*$$ - ^\s*\S.+\S\s+has\s+\d+\s+neighbor(s|\(s\))\s*$$ - ^\s*Neighbor\s+index\s*:\s*\d+\s*$$ - ^\s*Chassis\s+type\s*:\s*(\S.+\S)\s*$$ - ^\s*Chassis\s+ID\s*:\s*(\S.+\S)\s*$$ - ^\s*Port\s+ID\s+type\s*:\s*(\S.+\S)\s*$$ - ^\s*Port\s+ID\s*:\s*(.*?)\s*$$ - ^\s*Port\s+description\s*:\s*(?:\S.+\S)?\s*$$ - ^\s*System\s+name\s*:\s*(?:\S.+\S)?\s*$$ - ^\s*System\s+description\s*:\s*(\S.+\S)\s*$$ -> SystemDescription - ^\s*System\s+capabilities\s+supported\s*:\s*(\S.+\S)\s*$$ - ^\s*System\s+capabilities\s+enabled\s*:\s*(.*?)\s*$$ - ^\s*Management\s+address\s+type\s*:\s*(\S.+\S)\s*$$ - ^\s*Management\s+address\s*(value\s*)?:\s*(\S.+\S)\s*$$ - ^\s*OID\s*:\s*(\S.+\S)?\s*$$ - ^\s*Expired\s+time\s*:\s*(\d+)s\s*$$ - ^\s*Port\s+VLAN\s+ID\(PVID\)\s*:\s*(\d+)\s*$$ - ^\s*VLAN\s+name\s+of\s+VLAN\s*1\s*:\s*(\S.+\S)\s*$$ - ^\s*Protocol\s+identity - ^\s*Auto-negotiation\s+supported\s*:\s*(\S.+\S)\s*$$ - ^\s*Auto-negotiation\s+enabled\s*:\s*(\S.+\S)\s*$$ - ^\s*OperMau\s*:\s*(\S.+\S)\s*$$ - ^\s*Power\s+port\s+class\s*:\s*(\S+)\s*$$ - ^\s*PSE\s+power\s+supported\s*:\s*(\S+)\s*$$ - ^\s*PSE\s+power\s+enabled\s*:\s*(\S+)\s*$$ - ^\s*PSE\s+pairs\s+control\s+ability\s*:\s*(\S+)\s*$$ - ^\s*Power\s+pairs\s*:\s*(\S.+\S)\s*$$ - ^\s*Port\s+power\s+classification\s*:\s*(\S.+\S)\s*$$ - ^\s*Link\s+aggregation\s+supported\s*:\s*(\S+)\s*$$ - ^\s*Link\s+aggregation\s+enabled\s*:\s*(\S+)\s*$$ - ^\s*Aggregation\s+port\s+ID\s*:\s*(\d+)\s*$$ - ^\s*Maximum\s+frame\s+Size\s*:\s*(\d+)\s*$$ - ^\s*MED\s+Device\s+information\s*$$ - ^\s*Device\s+class\s*:\s*(\S.+\S)\s*$$ - ^\s*HardwareRev\s*:\s*(\S.+\S)\s*$$ - ^\s*FirmwareRev\s*:\s*(\S+)\s*$$ - ^\s*SoftwareRev\s*:\s*${SOFTWARE_REVISION}\s*$$ - ^\s*SerialNum\s*:\s*(NA|${SERIAL_NUMBER})\s*$$ - ^\s*Manufacturer\s+name\s*:\s*${MANUFACTURER_NAME}\s*$$ - ^\s*Model\s+name\s*:\s*${MODEL_NAME}\s*$$ - ^\s*Asset\s+tracking\s+identifier\s*:\s*(NA|${ASSET_TRACKING_IDENTIFIER})\s*$$ - ^\s*Media\s+policy\s+type\s*:\s*${MEDIA_POLICY_TYPE}\s*$$ - ^\s*Unknown\s+Policy\s*:\s*${UNKNOWN_POLICY}\s*$$ - ^\s*VLAN\s+tagged\s*:\s*${VLAN_TAGGED}\s*$$ - ^\s*Media\s+policy\s+VlanID\s*:\s*${MEDIA_POLICY_VLAN_ID}\s*$$ - ^\s*Media\s+policy\s+L2\s+priority\s*:\s*${MEDIA_POLICY_L2_PRIORITY}\s*$$ - ^\s*Media\s+policy\s+Dscp\s*:\s*${MEDIA_POLICY_DSCP}\s*$$ - ^\s*Power\s+Type\s*:\s*${POWER_TYPE}\s*$$ - ^\s*PoE\s+PSE\s+power\s+source\s*:\s*${POE_PSE_POWER_SOURCE}\s*$$ - ^\s*Port\s+PSE\s+Priority\s*:\s*${PORT_PSE_PRIORITY}\s*$$ - ^\s*Port\s+Available\s+power\s+value\s*:\s*${PORT_AVAILABLE_POWER_VALUE}\s*$$ - ^\s*Location\s+format\s*:\s*${LOCATION_FORMAT}\s*$$ - ^\s*Location\s+information\s*:\s*${LOCATION_INFORMATION}\s*$$ - ^\s*Ca\s+type\s+Ca\s+value\s*$$ -> Record - ^\s+$$ - ^. -> Error - -SystemDescription - ^\s*System\s+capabilities\s+supported\s*:\s*(\S.+\S)\s*$$ -> Start - ^\s*System\s+capabilities\s+enabled\s*:\s*(.*?)\s*$$ -> Start - ^\s*Management\s+address\s+type\s*:\s*(\S.+\S)\s*$$ -> Start - ^\s*Management\s+address\s*(value\s*)?:\s*(\S.+\S)\s*$$ -> Start - ^\s*Expired\s+time\s*:\s*(\d+)s\s*$$ -> Start - ^\s*(\S.+\S)\s*$$ - ^. -> Error diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index d2c8901a21..64710ccca4 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -738,7 +738,6 @@ huawei_smartax_display_mem.textfsm, .*, huawei_smartax, di[[splay]] mem[[ory]]\s huawei_smartax_port_vlan.textfsm, .*, huawei_smartax, port vlan\s* huawei_smartax_ont_add.textfsm, .*, huawei_smartax, ont add\s* -huawei_vrp_display_lldp_neighbor.textfsm:huawei_vrp_display_lldp_neighbor2.textfsm, .*, huawei_vrp, dis[[play]] lldp nei[[ghbor]] huawei_vrp_display_traffic-filter_applied-record.textfsm, .*, huawei_vrp, dis[[play]] traffic-filter applied-record huawei_vrp_display_ip_vpn-instance_interface.textfsm, .*, huawei_vrp, di[[splay]] ip vpn[[-instance]] interface huawei_vrp_display_snmp-agent_community_read.textfsm, .*, huawei_vrp, dis[[play]] snm[[p-agent]] c[[ommunity]] (r[[ead]]|w[[rite]]) @@ -751,6 +750,7 @@ huawei_vrp_display_ip_vpn-instance.textfsm, .*, huawei_vrp, di[[splay]] ip vpn[[ huawei_vrp_display_service-set_all.textfsm, .*, huawei_vrp, dis[[play]] service-set all huawei_vrp_display_ipv6_neighbors.textfsm, .*, huawei_vrp, dis[[play]] ipv6 n[[eighbors]] huawei_vrp_display_mpls_te_tunnel.textfsm, .*, huawei_vrp, dis[[play]] mpls te tunnel +huawei_vrp_display_lldp_neighbor.textfsm, .*, huawei_vrp, dis[[play]] lldp nei[[ghbor]] huawei_vrp_display_http_server.textfsm, .*, huawei_vrp, di[[splay]] h[[ttp]] s[[erver]] *$ huawei_vrp_display_mac-address.textfsm, .*, huawei_vrp, disp[[lay]] mac[[-address]] huawei_vrp_display_temperature.textfsm, .*, huawei_vrp, dis[[play]] tem[[perature]] diff --git a/tests/huawei_vrp/display_lldp_neighbor/huawei_vrp_display_lldp_neighbor.yml b/tests/huawei_vrp/display_lldp_neighbor/huawei_vrp_display_lldp_neighbor.yml index 3a8f68714c..24b30052f8 100644 --- a/tests/huawei_vrp/display_lldp_neighbor/huawei_vrp_display_lldp_neighbor.yml +++ b/tests/huawei_vrp/display_lldp_neighbor/huawei_vrp_display_lldp_neighbor.yml @@ -2,12 +2,21 @@ parsed_sample: - aggregation_port_id: "0" asset_tracking_identifier: "" + autoclass_completed: "" + autoclass_request: "" autonegotiation_enabled: "Yes" autonegotiation_supported: "Yes" capabilities: "bridge" chassis_id: "f55f-c2c5-e180" chassis_type: "macAddress" + discovered_time: "" + dual_signature_power_classx_mode_a: "" + dual_signature_power_classx_mode_b: "" + echo_receive_tw: "" + echo_transmit_tw: "" + energy_efficient_ethernet_support: "" expired_time: "102" + fallback_receive_tw: "" firmware_revision: "" hardware_revision: "WS-C2960S-48LPS-L (PowerPC):F0" link_aggregation_enabled: "No" @@ -18,7 +27,9 @@ parsed_sample: manufacturer: "" manufacturer_name: "Cisco Systems, Inc." maximum_frame_size: "0" + med_capability: "" med_device_class: "Network Connectivity" + med_device_type: "" media_policy_dscp: "0" media_policy_l2_priority: "0" media_policy_type: "Voice" @@ -27,44 +38,82 @@ parsed_sample: mgmt_address_type: "" model_name: "WS-C2960S-48LPS-L" neighbor_description: - - "Cisco IOS Software, C2960S Software (C2960S-UNIVERSALK9-M), Version 12.2(55)SE7,\ - \ RELEASE SOFTWARE (fc1)" + - "Cisco IOS Software, C2960S Software (C2960S-UNIVERSALK9-M), Version 12.2(55)SE7, RELEASE SOFTWARE (fc1)" - "Technical Support: http://www.cisco.com/techsupport" - "Copyright (c) 1986-2013 by Cisco Systems, Inc." - "Compiled Mon 28-Jan-13 10:28 by prod_rel_team" neighbor_interface: "GigabitEthernet1/0/1" neighbor_name: "tsa-2960-sw01" neighbor_port_id: "Gi1/0/1" + network_card_id: "" oid: "" operation_mode: "speed(1000)/duplex(Full)" + pd_4pid: "" + pd_load: "" + pd_powered_status: "" + pd_requested_power: "" + pd_requested_power_mode_a: "" + pd_requested_power_mode_b: "" platform: "" poe_pse_power_source: "PSE" port_available_power_value: "0" + port_id_subtype: "" port_id_type: "interfaceName" + port_identity: "" port_power_classification: "Unknown" port_pse_priority: "Low" + power_capability: "" + power_class: "" + power_class_ext: "" + power_down: "" + power_down_request: "" + power_down_time: "" + power_ext_type: "" power_pairs: "Unknown" power_port_class: "PD" + power_priority: "" + power_source: "" power_type: "PSE" + power_up_mode: "" + pse_allocated_mode_power_a: "" + pse_allocated_mode_power_b: "" + pse_allocated_power: "" + pse_autoclass_support: "" + pse_maximum_available_power: "" pse_pairs_control_ability: "No" pse_power_enabled: "No" + pse_power_pairs_ext: "" + pse_power_pairsx: "" pse_power_supported: "No" + pse_powering_status: "" + receive_tw: "" serial: "" serial_number: "" software_revision: "12.2(55)SE7" system_capabilities_supported: "bridge router" + transmit_tw: "" unknown_policy: "Unknown" - vlan_1_name: "" vlan_id: "1" + vlan_id_and_protocol: "" + vlan_name: "" vlan_tagged: "No" - aggregation_port_id: "0" asset_tracking_identifier: "" + autoclass_completed: "" + autoclass_request: "" autonegotiation_enabled: "Yes" autonegotiation_supported: "Yes" capabilities: "bridge" chassis_id: "f41f-c2c5-e180" chassis_type: "macAddress" + discovered_time: "" + dual_signature_power_classx_mode_a: "" + dual_signature_power_classx_mode_b: "" + echo_receive_tw: "" + echo_transmit_tw: "" + energy_efficient_ethernet_support: "" expired_time: "102" + fallback_receive_tw: "" firmware_revision: "" hardware_revision: "WS-C2960S-48LPS-L (PowerPC):F0" link_aggregation_enabled: "No" @@ -75,7 +124,9 @@ parsed_sample: manufacturer: "" manufacturer_name: "Cisco Systems, Inc." maximum_frame_size: "0" + med_capability: "" med_device_class: "Network Connectivity" + med_device_type: "" media_policy_dscp: "0" media_policy_l2_priority: "0" media_policy_type: "Voice" @@ -84,33 +135,62 @@ parsed_sample: mgmt_address_type: "" model_name: "WS-C2960S-48LPS-L" neighbor_description: - - "Cisco IOS Software, C2960S Software (C2960S-UNIVERSALK9-M), Version 12.2(55)SE7,\ - \ RELEASE SOFTWARE (fc1)" + - "Cisco IOS Software, C2960S Software (C2960S-UNIVERSALK9-M), Version 12.2(55)SE7, RELEASE SOFTWARE (fc1)" - "Technical Support: http://www.cisco.com/techsupport" - "Copyright (c) 1986-2013 by Cisco Systems, Inc." - "Compiled Mon 28-Jan-13 10:28 by prod_rel_team" neighbor_interface: "GigabitEthernet1/0/2" neighbor_name: "tsa-2960-sw01" neighbor_port_id: "Gi1/0/2" + network_card_id: "" oid: "" operation_mode: "speed(1000)/duplex(Full)" + pd_4pid: "" + pd_load: "" + pd_powered_status: "" + pd_requested_power: "" + pd_requested_power_mode_a: "" + pd_requested_power_mode_b: "" platform: "" poe_pse_power_source: "PSE" port_available_power_value: "0" + port_id_subtype: "" port_id_type: "interfaceName" + port_identity: "" port_power_classification: "Unknown" port_pse_priority: "Low" + power_capability: "" + power_class: "" + power_class_ext: "" + power_down: "" + power_down_request: "" + power_down_time: "" + power_ext_type: "" power_pairs: "Unknown" power_port_class: "PD" + power_priority: "" + power_source: "" power_type: "PSE" + power_up_mode: "" + pse_allocated_mode_power_a: "" + pse_allocated_mode_power_b: "" + pse_allocated_power: "" + pse_autoclass_support: "" + pse_maximum_available_power: "" pse_pairs_control_ability: "No" pse_power_enabled: "No" + pse_power_pairs_ext: "" + pse_power_pairsx: "" pse_power_supported: "No" + pse_powering_status: "" + receive_tw: "" serial: "" serial_number: "" software_revision: "12.2(55)SE7" system_capabilities_supported: "bridge router" + transmit_tw: "" unknown_policy: "Unknown" - vlan_1_name: "" vlan_id: "1" + vlan_id_and_protocol: "" + vlan_name: "" vlan_tagged: "No" diff --git a/tests/huawei_vrp/display_lldp_neighbor/huawei_vrp_display_lldp_neighbor1.yml b/tests/huawei_vrp/display_lldp_neighbor/huawei_vrp_display_lldp_neighbor1.yml index 1443d57eb0..21c9cc7a0b 100644 --- a/tests/huawei_vrp/display_lldp_neighbor/huawei_vrp_display_lldp_neighbor1.yml +++ b/tests/huawei_vrp/display_lldp_neighbor/huawei_vrp_display_lldp_neighbor1.yml @@ -2,12 +2,21 @@ parsed_sample: - aggregation_port_id: "0" asset_tracking_identifier: "" + autoclass_completed: "" + autoclass_request: "" autonegotiation_enabled: "Yes" autonegotiation_supported: "Yes" capabilities: "bridge router" chassis_id: "b8d6-f6ff-7390" chassis_type: "MAC address" + discovered_time: "" + dual_signature_power_classx_mode_a: "" + dual_signature_power_classx_mode_b: "" + echo_receive_tw: "" + echo_transmit_tw: "" + energy_efficient_ethernet_support: "" expired_time: "95" + fallback_receive_tw: "" firmware_revision: "" hardware_revision: "" link_aggregation_enabled: "No" @@ -18,7 +27,9 @@ parsed_sample: manufacturer: "" manufacturer_name: "" maximum_frame_size: "9216" + med_capability: "" med_device_class: "" + med_device_type: "" media_policy_dscp: "" media_policy_l2_priority: "" media_policy_type: "" @@ -34,25 +45,55 @@ parsed_sample: neighbor_interface: "XGigabitEthernet0/0/2" neighbor_name: "ROUTER2" neighbor_port_id: "XGigabitEthernet0/0/2" + network_card_id: "" oid: "0.6.15.43.6.1.4.1.2011.5.25.41.1.2.1.1.1." operation_mode: "speed(1000)/duplex(Full)" + pd_4pid: "" + pd_load: "" + pd_powered_status: "" + pd_requested_power: "" + pd_requested_power_mode_a: "" + pd_requested_power_mode_b: "" platform: "" poe_pse_power_source: "" port_available_power_value: "" + port_id_subtype: "" port_id_type: "Interface name" + port_identity: "" port_power_classification: "Unknown" port_pse_priority: "" + power_capability: "" + power_class: "" + power_class_ext: "" + power_down: "" + power_down_request: "" + power_down_time: "" + power_ext_type: "" power_pairs: "Unknown" power_port_class: "PD" + power_priority: "" + power_source: "" power_type: "" + power_up_mode: "" + pse_allocated_mode_power_a: "" + pse_allocated_mode_power_b: "" + pse_allocated_power: "" + pse_autoclass_support: "" + pse_maximum_available_power: "" pse_pairs_control_ability: "No" pse_power_enabled: "No" + pse_power_pairs_ext: "" + pse_power_pairsx: "" pse_power_supported: "No" + pse_powering_status: "" + receive_tw: "" serial: "" serial_number: "" software_revision: "" system_capabilities_supported: "bridge router" + transmit_tw: "" unknown_policy: "" - vlan_1_name: "VLAN 0001" vlan_id: "10" + vlan_id_and_protocol: "" + vlan_name: "VLAN 0001" vlan_tagged: "" diff --git a/tests/huawei_vrp/display_lldp_neighbor/huawei_vrp_display_lldp_neighbor2.yml b/tests/huawei_vrp/display_lldp_neighbor/huawei_vrp_display_lldp_neighbor2.yml index 3a8f68714c..d7c4f27f7e 100644 --- a/tests/huawei_vrp/display_lldp_neighbor/huawei_vrp_display_lldp_neighbor2.yml +++ b/tests/huawei_vrp/display_lldp_neighbor/huawei_vrp_display_lldp_neighbor2.yml @@ -2,12 +2,21 @@ parsed_sample: - aggregation_port_id: "0" asset_tracking_identifier: "" + autoclass_completed: "" + autoclass_request: "" autonegotiation_enabled: "Yes" autonegotiation_supported: "Yes" capabilities: "bridge" chassis_id: "f55f-c2c5-e180" chassis_type: "macAddress" + discovered_time: "" + dual_signature_power_classx_mode_a: "" + dual_signature_power_classx_mode_b: "" + echo_receive_tw: "" + echo_transmit_tw: "" + energy_efficient_ethernet_support: "" expired_time: "102" + fallback_receive_tw: "" firmware_revision: "" hardware_revision: "WS-C2960S-48LPS-L (PowerPC):F0" link_aggregation_enabled: "No" @@ -18,7 +27,9 @@ parsed_sample: manufacturer: "" manufacturer_name: "Cisco Systems, Inc." maximum_frame_size: "0" + med_capability: "" med_device_class: "Network Connectivity" + med_device_type: "" media_policy_dscp: "0" media_policy_l2_priority: "0" media_policy_type: "Voice" @@ -27,44 +38,83 @@ parsed_sample: mgmt_address_type: "" model_name: "WS-C2960S-48LPS-L" neighbor_description: - - "Cisco IOS Software, C2960S Software (C2960S-UNIVERSALK9-M), Version 12.2(55)SE7,\ - \ RELEASE SOFTWARE (fc1)" + - "Cisco IOS Software, C2960S Software (C2960S-UNIVERSALK9-M), Version 12.2(55)SE7, + RELEASE SOFTWARE (fc1)" - "Technical Support: http://www.cisco.com/techsupport" - "Copyright (c) 1986-2013 by Cisco Systems, Inc." - "Compiled Mon 28-Jan-13 10:28 by prod_rel_team" neighbor_interface: "GigabitEthernet1/0/1" neighbor_name: "tsa-2960-sw01" neighbor_port_id: "Gi1/0/1" + network_card_id: "" oid: "" operation_mode: "speed(1000)/duplex(Full)" + pd_4pid: "" + pd_load: "" + pd_powered_status: "" + pd_requested_power: "" + pd_requested_power_mode_a: "" + pd_requested_power_mode_b: "" platform: "" poe_pse_power_source: "PSE" port_available_power_value: "0" + port_id_subtype: "" port_id_type: "interfaceName" + port_identity: "" port_power_classification: "Unknown" port_pse_priority: "Low" + power_capability: "" + power_class: "" + power_class_ext: "" + power_down: "" + power_down_request: "" + power_down_time: "" + power_ext_type: "" power_pairs: "Unknown" power_port_class: "PD" + power_priority: "" + power_source: "" power_type: "PSE" + power_up_mode: "" + pse_allocated_mode_power_a: "" + pse_allocated_mode_power_b: "" + pse_allocated_power: "" + pse_autoclass_support: "" + pse_maximum_available_power: "" pse_pairs_control_ability: "No" pse_power_enabled: "No" + pse_power_pairs_ext: "" + pse_power_pairsx: "" pse_power_supported: "No" + pse_powering_status: "" + receive_tw: "" serial: "" serial_number: "" software_revision: "12.2(55)SE7" system_capabilities_supported: "bridge router" + transmit_tw: "" unknown_policy: "Unknown" - vlan_1_name: "" vlan_id: "1" + vlan_id_and_protocol: "" + vlan_name: "" vlan_tagged: "No" - aggregation_port_id: "0" asset_tracking_identifier: "" + autoclass_completed: "" + autoclass_request: "" autonegotiation_enabled: "Yes" autonegotiation_supported: "Yes" capabilities: "bridge" chassis_id: "f41f-c2c5-e180" chassis_type: "macAddress" + discovered_time: "" + dual_signature_power_classx_mode_a: "" + dual_signature_power_classx_mode_b: "" + echo_receive_tw: "" + echo_transmit_tw: "" + energy_efficient_ethernet_support: "" expired_time: "102" + fallback_receive_tw: "" firmware_revision: "" hardware_revision: "WS-C2960S-48LPS-L (PowerPC):F0" link_aggregation_enabled: "No" @@ -75,7 +125,9 @@ parsed_sample: manufacturer: "" manufacturer_name: "Cisco Systems, Inc." maximum_frame_size: "0" + med_capability: "" med_device_class: "Network Connectivity" + med_device_type: "" media_policy_dscp: "0" media_policy_l2_priority: "0" media_policy_type: "Voice" @@ -84,33 +136,63 @@ parsed_sample: mgmt_address_type: "" model_name: "WS-C2960S-48LPS-L" neighbor_description: - - "Cisco IOS Software, C2960S Software (C2960S-UNIVERSALK9-M), Version 12.2(55)SE7,\ - \ RELEASE SOFTWARE (fc1)" + - "Cisco IOS Software, C2960S Software (C2960S-UNIVERSALK9-M), Version 12.2(55)SE7, + RELEASE SOFTWARE (fc1)" - "Technical Support: http://www.cisco.com/techsupport" - "Copyright (c) 1986-2013 by Cisco Systems, Inc." - "Compiled Mon 28-Jan-13 10:28 by prod_rel_team" neighbor_interface: "GigabitEthernet1/0/2" neighbor_name: "tsa-2960-sw01" neighbor_port_id: "Gi1/0/2" + network_card_id: "" oid: "" operation_mode: "speed(1000)/duplex(Full)" + pd_4pid: "" + pd_load: "" + pd_powered_status: "" + pd_requested_power: "" + pd_requested_power_mode_a: "" + pd_requested_power_mode_b: "" platform: "" poe_pse_power_source: "PSE" port_available_power_value: "0" + port_id_subtype: "" port_id_type: "interfaceName" + port_identity: "" port_power_classification: "Unknown" port_pse_priority: "Low" + power_capability: "" + power_class: "" + power_class_ext: "" + power_down: "" + power_down_request: "" + power_down_time: "" + power_ext_type: "" power_pairs: "Unknown" power_port_class: "PD" + power_priority: "" + power_source: "" power_type: "PSE" + power_up_mode: "" + pse_allocated_mode_power_a: "" + pse_allocated_mode_power_b: "" + pse_allocated_power: "" + pse_autoclass_support: "" + pse_maximum_available_power: "" pse_pairs_control_ability: "No" pse_power_enabled: "No" + pse_power_pairs_ext: "" + pse_power_pairsx: "" pse_power_supported: "No" + pse_powering_status: "" + receive_tw: "" serial: "" serial_number: "" software_revision: "12.2(55)SE7" system_capabilities_supported: "bridge router" + transmit_tw: "" unknown_policy: "Unknown" - vlan_1_name: "" vlan_id: "1" + vlan_id_and_protocol: "" + vlan_name: "" vlan_tagged: "No" diff --git a/tests/huawei_vrp/display_lldp_neighbor/huawei_vrp_display_lldp_neighbor3.raw b/tests/huawei_vrp/display_lldp_neighbor/huawei_vrp_display_lldp_neighbor3.raw new file mode 100644 index 0000000000..2d96ef32d3 --- /dev/null +++ b/tests/huawei_vrp/display_lldp_neighbor/huawei_vrp_display_lldp_neighbor3.raw @@ -0,0 +1,48 @@ +GE1/0/25 has 1 neighbor(s): + +Neighbor index :1 +Chassis type :MAC Address +Chassis ID :aaaa-aaaa-aaaa +Port ID subtype :Interface Name +Port ID :Gi2/0/10 +Port description :GigabitEthernet2/0/10 +System name :something.example.com +System description :Cisco IOS Software, C3750E Software (C3750E-UNIVERSALK9-M), Version 1.1(58)SE2, RELEASE SOFTWARE (fc1) +Technical Support: http://www.cisco.com/techsupport +Copyright (c) 1986-2025 by Cisco Systems, Inc. +Compiled Ener 12-Ene-23 01:23 by prod_rel_team +System capabilities supported :bridge router +System capabilities enabled :bridge +Management address type :IPv4 +Management address :1.1.1.1 +Expired time :102s + +Port VLAN ID(PVID) :1 +Port and Protocol VLAN ID(PPVID) :-- +Port and Protocol VLAN supported :-- +Port and Protocol VLAN enabled :-- +VLAN name of VLAN :-- +Protocol identity :-- +Auto-negotiation supported :No +Auto-negotiation enabled :Yes +OperMau :speed (1000) /duplex (Full) +Link aggregation supported :-- +Link aggregation enabled :-- +Aggregation port ID :-- +Maximum frame Size :-- +Port Identity :-- +Discovered time :2020-1-1 01:1:3 + +EEE support :No +Transmit Tw :65535 +Receive Tw :65535 +Fallback Receive Tw :0 +Echo Transmit Tw :0 +Echo Receive Tw :0 + +Network Card ID :-- + +Med capability :-- +Med device type :-- + +GE1/0/26 has 0 neighbor(s) diff --git a/tests/huawei_vrp/display_lldp_neighbor/huawei_vrp_display_lldp_neighbor3.yml b/tests/huawei_vrp/display_lldp_neighbor/huawei_vrp_display_lldp_neighbor3.yml new file mode 100644 index 0000000000..4195808adf --- /dev/null +++ b/tests/huawei_vrp/display_lldp_neighbor/huawei_vrp_display_lldp_neighbor3.yml @@ -0,0 +1,100 @@ +--- +parsed_sample: + - aggregation_port_id: "" + asset_tracking_identifier: "" + autoclass_completed: "" + autoclass_request: "" + autonegotiation_enabled: "Yes" + autonegotiation_supported: "No" + capabilities: "bridge" + chassis_id: "aaaa-aaaa-aaaa" + chassis_type: "MAC Address" + discovered_time: "2020-1-1 01:1:3" + dual_signature_power_classx_mode_a: "" + dual_signature_power_classx_mode_b: "" + echo_receive_tw: "0" + echo_transmit_tw: "0" + energy_efficient_ethernet_support: "No" + expired_time: "102" + fallback_receive_tw: "0" + firmware_revision: "" + hardware_revision: "" + link_aggregation_enabled: "--" + link_aggregation_supported: "--" + local_interface: "GE1/0/25" + location_format: "" + location_information: "" + manufacturer: "" + manufacturer_name: "" + maximum_frame_size: "" + med_capability: "" + med_device_class: "" + med_device_type: "" + media_policy_dscp: "" + media_policy_l2_priority: "" + media_policy_type: "" + media_policy_vlan_id: "" + mgmt_address: "1.1.1.1" + mgmt_address_type: "" + model_name: "" + neighbor_description: + - "Cisco IOS Software, C3750E Software (C3750E-UNIVERSALK9-M), Version 1.1(58)SE2, + RELEASE SOFTWARE (fc1)" + - "Technical Support: http://www.cisco.com/techsupport" + - "Copyright (c) 1986-2025 by Cisco Systems, Inc." + - "Compiled Ener 12-Ene-23 01:23 by prod_rel_team" + neighbor_interface: "GigabitEthernet2/0/10" + neighbor_name: "something.example.com" + neighbor_port_id: "Gi2/0/10" + network_card_id: "" + oid: "" + operation_mode: "speed (1000) /duplex (Full)" + pd_4pid: "" + pd_load: "" + pd_powered_status: "" + pd_requested_power: "" + pd_requested_power_mode_a: "" + pd_requested_power_mode_b: "" + platform: "" + poe_pse_power_source: "" + port_available_power_value: "" + port_id_subtype: "Interface Name" + port_id_type: "" + port_identity: "" + port_power_classification: "" + port_pse_priority: "" + power_capability: "" + power_class: "" + power_class_ext: "" + power_down: "" + power_down_request: "" + power_down_time: "" + power_ext_type: "" + power_pairs: "" + power_port_class: "" + power_priority: "" + power_source: "" + power_type: "" + power_up_mode: "" + pse_allocated_mode_power_a: "" + pse_allocated_mode_power_b: "" + pse_allocated_power: "" + pse_autoclass_support: "" + pse_maximum_available_power: "" + pse_pairs_control_ability: "" + pse_power_enabled: "" + pse_power_pairs_ext: "" + pse_power_pairsx: "" + pse_power_supported: "" + pse_powering_status: "" + receive_tw: "65535" + serial: "" + serial_number: "" + software_revision: "" + system_capabilities_supported: "bridge router" + transmit_tw: "65535" + unknown_policy: "" + vlan_id: "1" + vlan_id_and_protocol: "" + vlan_name: "" + vlan_tagged: "" diff --git a/tests/huawei_vrp/display_lldp_neighbor/huawei_vrp_display_lldp_neighbor4.raw b/tests/huawei_vrp/display_lldp_neighbor/huawei_vrp_display_lldp_neighbor4.raw new file mode 100644 index 0000000000..527b8d2a31 --- /dev/null +++ b/tests/huawei_vrp/display_lldp_neighbor/huawei_vrp_display_lldp_neighbor4.raw @@ -0,0 +1,170 @@ +GE1/0/11 has 1 neighbor(s): + +Neighbor index :1 +Chassis type :MAC Address +Chassis ID :aaaa-aaaa-aaaa +Port ID subtype :Interface Name +Port ID :GigabitEthernet0/0/0 +Port description :HUAWEI, AP Series, GigabitEthernet0/0/0 Interface +System name :AP_PRINCIPAL +System description :Huawei AP AP111 +Huawei Versatile Routing Platform Software +VRP (R) software, Version 1.111 (AP111 V000R000C00SPC000) +Copyright (C) 2011-2024 Huawei Technologies Co.,Ltd + +System capabilities supported :wlanAccessPoint +System capabilities enabled :wlanAccessPoint +Management address type :IPv4 +Management address :1.1.1.1 +Expired time :109s + +Port VLAN ID(PVID) :-- +Port and Protocol VLAN ID(PPVID) :-- +Port and Protocol VLAN supported :-- +Port and Protocol VLAN enabled :-- +VLAN name of VLAN :-- +Protocol identity :-- +Auto-negotiation supported :-- +Auto-negotiation enabled :-- +OperMau :speed (--) /duplex (--) +Link aggregation supported :-- +Link aggregation enabled :-- +Aggregation port ID :-- +Maximum frame Size :-- +Port Identity :-- +Discovered time :2011-11-11 11:11:11 + +Power port class :PD +PSE power supported :No +PSE power enabled :No +PSE pairs control ability :No +Power pairs :Signal +Port power classification :Class4 +Power type :Type 2 PD +Power source :PSE +Power priority :Low +PD requested power value :25.5(W) +PSE allocated power value :25.5(W) +PD requested power mode A value :0.0(W) +PD requested power mode B value :0.0(W) +Power class ext :Reserved +Power type ext :Reserved +PSE allocated power mode A value :0.0(W) +PSE allocated power mode B value :0.0(W) +PSE maximum available power :0.0(W) +PSE power pairs ext :Unknown +PSE powering status :Reserved +PSE Autoclass support :PSE does not supports Autoclass +PD 4PID :PD does not supports powering of both Modes +PD Load :PD is single-signature or dual-signature and power demand on Mode A and Mode B are not electrically isolated +PD powered status :Reserved +Dual-signature power Classx mode A :Reserved +Dual-signature power Classx mode B :Reserved +Autoclass completed :Autoclass idle +Autoclass request :Autoclass idle +Power down request :Not power down +Power down time :262143(s) + +Power capability :AF AT +Power-up mode :-- + +EEE support :No +Transmit Tw :65535 +Receive Tw :65535 +Fallback Receive Tw :0 +Echo Transmit Tw :0 +Echo Receive Tw :0 + +Network Card ID :-- + +Med capability :-- +Med device type :-- + +Unrecognized organizationally defined TLV + TLV OUI :00-01-01 + TLV subtype :1 + Index :1 + TLV information :00 + TLV OUI :00-01-01 + TLV subtype :41 + Index :1 + TLV information :00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 + +GE1/0/12 has 0 neighbor(s) + +GE1/0/13 has 0 neighbor(s) + +GE1/0/14 has 0 neighbor(s) + +GE1/0/15 has 0 neighbor(s) + +GE1/0/16 has 0 neighbor(s) + +GE1/0/17 has 0 neighbor(s) + +GE1/0/18 has 0 neighbor(s) + +GE1/0/19 has 0 neighbor(s) + +GE1/0/20 has 0 neighbor(s) + +GE1/0/21 has 0 neighbor(s) + +GE1/0/22 has 0 neighbor(s) + +GE1/0/23 has 0 neighbor(s) + +GE1/0/24 has 0 neighbor(s) + +GE1/0/25 has 1 neighbor(s): + +Neighbor index :1 +Chassis type :MAC Address +Chassis ID :bbbb-bbbb-bbbb +Port ID subtype :Interface Name +Port ID :Gi1/0/3 +Port description :GigabitEthernet1/0/3 +System name :SW_380_1 +System description :Cisco IOS Software, C3750E Software (C3750E-UNIVERSALK9-M), Version 11.1(11)SE2, RELEASE SOFTWARE (fc1) +Technical Support: http://www.cisco.com/techsupport +Copyright (c) 1986-2011 by Cisco Systems, Inc. +Compiled Thu 21-Jul-11 11:11 by prod_rel_team +System capabilities supported :bridge router +System capabilities enabled :bridge +Management address type :IPv4 +Management address :10.11.11.11 +Expired time :99s + +Port VLAN ID(PVID) :1 +Port and Protocol VLAN ID(PPVID) :-- +Port and Protocol VLAN supported :-- +Port and Protocol VLAN enabled :-- +VLAN name of VLAN :-- +Protocol identity :-- +Auto-negotiation supported :No +Auto-negotiation enabled :Yes +OperMau :speed (1000) /duplex (Full) +Link aggregation supported :-- +Link aggregation enabled :-- +Aggregation port ID :-- +Maximum frame Size :-- +Port Identity :-- +Discovered time :2024-10-10 01:13:32 + +EEE support :No +Transmit Tw :65535 +Receive Tw :65535 +Fallback Receive Tw :0 +Echo Transmit Tw :0 +Echo Receive Tw :0 + +Network Card ID :-- + +Med capability :-- +Med device type :-- + +GE1/0/26 has 0 neighbor(s) + +GE1/0/27 has 0 neighbor(s) + +GE1/0/28 has 0 neighbor(s) diff --git a/tests/huawei_vrp/display_lldp_neighbor/huawei_vrp_display_lldp_neighbor4.yml b/tests/huawei_vrp/display_lldp_neighbor/huawei_vrp_display_lldp_neighbor4.yml new file mode 100644 index 0000000000..d2114807ae --- /dev/null +++ b/tests/huawei_vrp/display_lldp_neighbor/huawei_vrp_display_lldp_neighbor4.yml @@ -0,0 +1,198 @@ +--- +parsed_sample: + - aggregation_port_id: "" + asset_tracking_identifier: "" + autoclass_completed: "Autoclass idle" + autoclass_request: "Autoclass idle" + autonegotiation_enabled: "--" + autonegotiation_supported: "--" + capabilities: "wlanAccessPoint" + chassis_id: "aaaa-aaaa-aaaa" + chassis_type: "MAC Address" + discovered_time: "2011-11-11 11:11:11" + dual_signature_power_classx_mode_a: "Reserved" + dual_signature_power_classx_mode_b: "Reserved" + echo_receive_tw: "0" + echo_transmit_tw: "0" + energy_efficient_ethernet_support: "No" + expired_time: "109" + fallback_receive_tw: "0" + firmware_revision: "" + hardware_revision: "" + link_aggregation_enabled: "--" + link_aggregation_supported: "--" + local_interface: "GE1/0/11" + location_format: "" + location_information: "" + manufacturer: "" + manufacturer_name: "" + maximum_frame_size: "" + med_capability: "" + med_device_class: "" + med_device_type: "" + media_policy_dscp: "" + media_policy_l2_priority: "" + media_policy_type: "" + media_policy_vlan_id: "" + mgmt_address: "1.1.1.1" + mgmt_address_type: "" + model_name: "" + neighbor_description: + - "Huawei AP AP111" + - "Huawei Versatile Routing Platform Software" + - "VRP (R) software, Version 1.111 (AP111 V000R000C00SPC000)" + - "Copyright (C) 2011-2024 Huawei Technologies Co.,Ltd" + neighbor_interface: "HUAWEI, AP Series, GigabitEthernet0/0/0 Interface" + neighbor_name: "AP_PRINCIPAL" + neighbor_port_id: "GigabitEthernet0/0/0" + network_card_id: "" + oid: "" + operation_mode: "speed (--) /duplex (--)" + pd_4pid: "PD does not supports powering of both Modes" + pd_load: "PD is single-signature or dual-signature and power demand on Mode A + and Mode B are not electrically isolated" + pd_powered_status: "Reserved" + pd_requested_power: "25.5(W)" + pd_requested_power_mode_a: "0.0(W)" + pd_requested_power_mode_b: "0.0(W)" + platform: "" + poe_pse_power_source: "" + port_available_power_value: "" + port_id_subtype: "Interface Name" + port_id_type: "" + port_identity: "" + port_power_classification: "Class4" + port_pse_priority: "" + power_capability: "AF AT" + power_class: "" + power_class_ext: "Reserved" + power_down: "" + power_down_request: "Not power down" + power_down_time: "262143(s)" + power_ext_type: "Reserved" + power_pairs: "Signal" + power_port_class: "PD" + power_priority: "Low" + power_source: "PSE" + power_type: "" + power_up_mode: "--" + pse_allocated_mode_power_a: "0.0(W)" + pse_allocated_mode_power_b: "0.0(W)" + pse_allocated_power: "25.5(W)" + pse_autoclass_support: "PSE does not supports Autoclass" + pse_maximum_available_power: "0.0(W)" + pse_pairs_control_ability: "No" + pse_power_enabled: "No" + pse_power_pairs_ext: "Unknown" + pse_power_pairsx: "" + pse_power_supported: "No" + pse_powering_status: "Reserved" + receive_tw: "65535" + serial: "" + serial_number: "" + software_revision: "" + system_capabilities_supported: "wlanAccessPoint" + transmit_tw: "65535" + unknown_policy: "" + vlan_id: "" + vlan_id_and_protocol: "" + vlan_name: "" + vlan_tagged: "" + - aggregation_port_id: "" + asset_tracking_identifier: "" + autoclass_completed: "" + autoclass_request: "" + autonegotiation_enabled: "Yes" + autonegotiation_supported: "No" + capabilities: "bridge" + chassis_id: "bbbb-bbbb-bbbb" + chassis_type: "MAC Address" + discovered_time: "2024-10-10 01:13:32" + dual_signature_power_classx_mode_a: "" + dual_signature_power_classx_mode_b: "" + echo_receive_tw: "0" + echo_transmit_tw: "0" + energy_efficient_ethernet_support: "No" + expired_time: "99" + fallback_receive_tw: "0" + firmware_revision: "" + hardware_revision: "" + link_aggregation_enabled: "--" + link_aggregation_supported: "--" + local_interface: "GE1/0/25" + location_format: "" + location_information: "" + manufacturer: "" + manufacturer_name: "" + maximum_frame_size: "" + med_capability: "" + med_device_class: "" + med_device_type: "" + media_policy_dscp: "" + media_policy_l2_priority: "" + media_policy_type: "" + media_policy_vlan_id: "" + mgmt_address: "10.11.11.11" + mgmt_address_type: "" + model_name: "" + neighbor_description: + - "Cisco IOS Software, C3750E Software (C3750E-UNIVERSALK9-M), Version 11.1(11)SE2, + RELEASE SOFTWARE (fc1)" + - "Technical Support: http://www.cisco.com/techsupport" + - "Copyright (c) 1986-2011 by Cisco Systems, Inc." + - "Compiled Thu 21-Jul-11 11:11 by prod_rel_team" + neighbor_interface: "GigabitEthernet1/0/3" + neighbor_name: "SW_380_1" + neighbor_port_id: "Gi1/0/3" + network_card_id: "" + oid: "" + operation_mode: "speed (1000) /duplex (Full)" + pd_4pid: "" + pd_load: "" + pd_powered_status: "" + pd_requested_power: "" + pd_requested_power_mode_a: "" + pd_requested_power_mode_b: "" + platform: "" + poe_pse_power_source: "" + port_available_power_value: "" + port_id_subtype: "Interface Name" + port_id_type: "" + port_identity: "" + port_power_classification: "" + port_pse_priority: "" + power_capability: "" + power_class: "" + power_class_ext: "" + power_down: "" + power_down_request: "" + power_down_time: "" + power_ext_type: "" + power_pairs: "" + power_port_class: "" + power_priority: "" + power_source: "" + power_type: "" + power_up_mode: "" + pse_allocated_mode_power_a: "" + pse_allocated_mode_power_b: "" + pse_allocated_power: "" + pse_autoclass_support: "" + pse_maximum_available_power: "" + pse_pairs_control_ability: "" + pse_power_enabled: "" + pse_power_pairs_ext: "" + pse_power_pairsx: "" + pse_power_supported: "" + pse_powering_status: "" + receive_tw: "65535" + serial: "" + serial_number: "" + software_revision: "" + system_capabilities_supported: "bridge router" + transmit_tw: "65535" + unknown_policy: "" + vlan_id: "1" + vlan_id_and_protocol: "" + vlan_name: "" + vlan_tagged: "" diff --git a/tests/huawei_vrp/display_lldp_neighbor/huawei_vrp_display_lldp_neighbor5.raw b/tests/huawei_vrp/display_lldp_neighbor/huawei_vrp_display_lldp_neighbor5.raw new file mode 100644 index 0000000000..84f91cafd4 --- /dev/null +++ b/tests/huawei_vrp/display_lldp_neighbor/huawei_vrp_display_lldp_neighbor5.raw @@ -0,0 +1,152 @@ +GigabitEthernet0/0/14 has 1 neighbor(s): + +Neighbor index :1 +Chassis type :MAC address +Chassis ID :aaaa-aaaa-aaaa +Port ID type :Interface name +Port ID :MultiGE0/0/0 +Port description :HUAWEI, AP Series, MultiGE0/0/0 Interface +System name :AP_EUROPE +System description :Huawei AP AirEngine6760R-51E +Huawei Versatile Routing Platform Software +VRP (R) software, Version 1.111 (AirEngine6760R-51E V000R000C00SPC000) +Copyright (C) 2011-2020 Huawei Technologies Co.,Ltd + +System capabilities supported :wlanAccessPoint +System capabilities enabled :wlanAccessPoint +Management address type :ipv4 +Management address value :1.1.1.1 +OID :1.1.1.1.1.1.1.1.2011.1.1.1.1.1.1.1.1. +Expired time :120s + + +Power port class :PD +PSE power supported :No +PSE power enabled :No +PSE pairs control ability :No +Power pairs :Spare +Port power classification :Class7 +Power type :Type 2 PD +Power source :PSE +Power priority :Low +PD requested power value :71.3(w) +PSE allocated power value :25.5(w) +PD requested power mode A value :35.6(w) +PD requested power mode B value :35.6(w) +Power class :0 +Power typex :Type 4 single-signature PD +PSE allocated power mode A value :0.0(w) +PSE allocated power mode B value :0.0(w) +PSE maximum available power :0.0(w) +PSE power pairsx :Unknown +PSE Autoclass support :PSE does not supports Autoclass +PD 4PID :PD supports powering of both Modes +PD Load :PD is single-signature or dual-signature and power demand on Mode A and Mode B are not electrically isolated +Autoclass completed :Autoclass idle +Autoclass request :Autoclass idle +Power down :Not power down +Power capability :AT BT_60 BT_90 +Power-up mode :-- + +Auto-negotiation supported :Yes +Auto-negotiation enabled :Yes +OperMau :speed(1000)/duplex(Full) + +GigabitEthernet0/0/22 has 1 neighbor(s): + +Neighbor index :1 +Chassis type :MAC address +Chassis ID :aaaa-aaaa-aaaa +Port ID type :Interface alias +Port ID :0 +Port description :eth0 +System name :AP_ARRIBA_ESPANA +System description :1.1.111.1 (Unknown), Version 1.1.111.1 +Copyright (c) 1986-2011 by Cisco Systems, Inc. +Compiled Mon Enr 1 11:11:11 PDT 2018 by vipendya +System capabilities supported :bridge +System capabilities enabled :bridge +Management address type :ipv4 +Management address value :1.1.1.1 +OID : +Expired time :113s + + +Auto-negotiation supported :Yes +Auto-negotiation enabled :Yes +OperMau :speed(1000)/duplex(Full) + +GigabitEthernet0/0/23 has 1 neighbor(s): + +Neighbor index :1 +Chassis type :MAC address +Chassis ID :0035-1a5e-8340 +Port ID type :Interface name +Port ID :Gi0 +Port description :GigabitEthernet0 +System name :AP_Ruckus +System description :Cisco IOS Software, C2700 Software (AP3G2-K9W8-M), Version 15.3(3)JD16, RELEASE SOFTWARE (fc1) +Technical Support: http://www.cisco.com/techsupport +Copyright (c) 1986-2011 by Cisco Systems, Inc. +Compiled Tue 01-Ene-11 11:11:11 by prod_rel_team +System capabilities supported :bridge +System capabilities enabled :bridge +Management address type :ipv4 +Management address value :1.1.1.1 +OID : +Expired time :114s + + +Auto-negotiation supported :Yes +Auto-negotiation enabled :Yes +OperMau :speed(1000)/duplex(Full) + +GigabitEthernet0/0/24 has 1 neighbor(s): + +Neighbor index :1 +Chassis type :MAC address +Chassis ID :aaaa-aaaa-aaaa +Port ID type :Interface alias +Port ID :0 +Port description :eth0 +System name :AP_Huawei +System description :1.1.111.1 (AIR-AP2802I-N-K9), Version 1.1.111.1 +Copyright (c) 1986-2011 by Cisco Systems, Inc. +Compiled Mon Enr 1 11:11:11 PDT 2018 by vipendya +System capabilities supported :bridge +System capabilities enabled :bridge +Management address type :ipv4 +Management address value :1.1.1.1 +OID : +Expired time :119s + + +Auto-negotiation supported :Yes +Auto-negotiation enabled :Yes +OperMau :speed(1000)/duplex(Full) + +GigabitEthernet0/0/25 has 1 neighbor(s): + +Neighbor index :1 +Chassis type :MAC address +Chassis ID :aaaa-aaaa-aaaa +Port ID type :Interface name +Port ID :Gi3/0/2 +Port description :GigabitEthernet3/0/2 +System name :some.example.com +System description :Cisco IOS Software, C3750E Software (C3750E-UNIVERSALK9-M), Version 1.1(11)SE2, RELEASE SOFTWARE (fc1) +Technical Support: http://www.cisco.com/techsupport +Copyright (c) 1986-2011 by Cisco Systems, Inc. +Compiled Thu 21-Jul-11 01:23 by prod_rel_team +System capabilities supported :bridge router +System capabilities enabled :bridge +Management address type :ipv4 +Management address value :1.1.1.1 +OID : +Expired time :93s + +Port VLAN ID(PVID) :1 + +Auto-negotiation supported :No +Auto-negotiation enabled :Yes +OperMau :speed(1000)/duplex(Full) diff --git a/tests/huawei_vrp/display_lldp_neighbor/huawei_vrp_display_lldp_neighbor5.yml b/tests/huawei_vrp/display_lldp_neighbor/huawei_vrp_display_lldp_neighbor5.yml new file mode 100644 index 0000000000..b2828f5acc --- /dev/null +++ b/tests/huawei_vrp/display_lldp_neighbor/huawei_vrp_display_lldp_neighbor5.yml @@ -0,0 +1,488 @@ +--- +parsed_sample: + - aggregation_port_id: "" + asset_tracking_identifier: "" + autoclass_completed: "Autoclass idle" + autoclass_request: "Autoclass idle" + autonegotiation_enabled: "Yes" + autonegotiation_supported: "Yes" + capabilities: "wlanAccessPoint" + chassis_id: "aaaa-aaaa-aaaa" + chassis_type: "MAC address" + discovered_time: "" + dual_signature_power_classx_mode_a: "" + dual_signature_power_classx_mode_b: "" + echo_receive_tw: "" + echo_transmit_tw: "" + energy_efficient_ethernet_support: "" + expired_time: "120" + fallback_receive_tw: "" + firmware_revision: "" + hardware_revision: "" + link_aggregation_enabled: "" + link_aggregation_supported: "" + local_interface: "GigabitEthernet0/0/14" + location_format: "" + location_information: "" + manufacturer: "" + manufacturer_name: "" + maximum_frame_size: "" + med_capability: "" + med_device_class: "" + med_device_type: "" + media_policy_dscp: "" + media_policy_l2_priority: "" + media_policy_type: "" + media_policy_vlan_id: "" + mgmt_address: "1.1.1.1" + mgmt_address_type: "" + model_name: "" + neighbor_description: + - "Huawei AP AirEngine6760R-51E" + - "Huawei Versatile Routing Platform Software" + - "VRP (R) software, Version 1.111 (AirEngine6760R-51E V000R000C00SPC000)" + - "Copyright (C) 2011-2020 Huawei Technologies Co.,Ltd" + neighbor_interface: "HUAWEI, AP Series, MultiGE0/0/0 Interface" + neighbor_name: "AP_EUROPE" + neighbor_port_id: "MultiGE0/0/0" + network_card_id: "" + oid: "1.1.1.1.1.1.1.1.2011.1.1.1.1.1.1.1.1." + operation_mode: "speed(1000)/duplex(Full)" + pd_4pid: "PD supports powering of both Modes" + pd_load: "PD is single-signature or dual-signature and power demand on Mode A + and Mode B are not electrically isolated" + pd_powered_status: "" + pd_requested_power: "71.3(w)" + pd_requested_power_mode_a: "35.6(w)" + pd_requested_power_mode_b: "35.6(w)" + platform: "" + poe_pse_power_source: "" + port_available_power_value: "" + port_id_subtype: "" + port_id_type: "Interface name" + port_identity: "" + port_power_classification: "Class7" + port_pse_priority: "" + power_capability: "AT BT_60 BT_90" + power_class: "0" + power_class_ext: "" + power_down: "Not power down" + power_down_request: "" + power_down_time: "" + power_ext_type: "Type 4 single-signature PD" + power_pairs: "Spare" + power_port_class: "PD" + power_priority: "Low" + power_source: "PSE" + power_type: "" + power_up_mode: "--" + pse_allocated_mode_power_a: "0.0(w)" + pse_allocated_mode_power_b: "0.0(w)" + pse_allocated_power: "25.5(w)" + pse_autoclass_support: "PSE does not supports Autoclass" + pse_maximum_available_power: "0.0(w)" + pse_pairs_control_ability: "No" + pse_power_enabled: "No" + pse_power_pairs_ext: "" + pse_power_pairsx: "Unknown" + pse_power_supported: "No" + pse_powering_status: "" + receive_tw: "" + serial: "" + serial_number: "" + software_revision: "" + system_capabilities_supported: "wlanAccessPoint" + transmit_tw: "" + unknown_policy: "" + vlan_id: "" + vlan_id_and_protocol: "" + vlan_name: "" + vlan_tagged: "" + - aggregation_port_id: "" + asset_tracking_identifier: "" + autoclass_completed: "" + autoclass_request: "" + autonegotiation_enabled: "Yes" + autonegotiation_supported: "Yes" + capabilities: "bridge" + chassis_id: "aaaa-aaaa-aaaa" + chassis_type: "MAC address" + discovered_time: "" + dual_signature_power_classx_mode_a: "" + dual_signature_power_classx_mode_b: "" + echo_receive_tw: "" + echo_transmit_tw: "" + energy_efficient_ethernet_support: "" + expired_time: "113" + fallback_receive_tw: "" + firmware_revision: "" + hardware_revision: "" + link_aggregation_enabled: "" + link_aggregation_supported: "" + local_interface: "GigabitEthernet0/0/22" + location_format: "" + location_information: "" + manufacturer: "" + manufacturer_name: "" + maximum_frame_size: "" + med_capability: "" + med_device_class: "" + med_device_type: "" + media_policy_dscp: "" + media_policy_l2_priority: "" + media_policy_type: "" + media_policy_vlan_id: "" + mgmt_address: "1.1.1.1" + mgmt_address_type: "" + model_name: "" + neighbor_description: + - "1.1.111.1 (Unknown), Version 1.1.111.1" + - "Copyright (c) 1986-2011 by Cisco Systems, Inc." + - "Compiled Mon Enr 1 11:11:11 PDT 2018 by vipendya" + neighbor_interface: "eth0" + neighbor_name: "AP_ARRIBA_ESPANA" + neighbor_port_id: "0" + network_card_id: "" + oid: "" + operation_mode: "speed(1000)/duplex(Full)" + pd_4pid: "" + pd_load: "" + pd_powered_status: "" + pd_requested_power: "" + pd_requested_power_mode_a: "" + pd_requested_power_mode_b: "" + platform: "" + poe_pse_power_source: "" + port_available_power_value: "" + port_id_subtype: "" + port_id_type: "Interface alias" + port_identity: "" + port_power_classification: "" + port_pse_priority: "" + power_capability: "" + power_class: "" + power_class_ext: "" + power_down: "" + power_down_request: "" + power_down_time: "" + power_ext_type: "" + power_pairs: "" + power_port_class: "" + power_priority: "" + power_source: "" + power_type: "" + power_up_mode: "" + pse_allocated_mode_power_a: "" + pse_allocated_mode_power_b: "" + pse_allocated_power: "" + pse_autoclass_support: "" + pse_maximum_available_power: "" + pse_pairs_control_ability: "" + pse_power_enabled: "" + pse_power_pairs_ext: "" + pse_power_pairsx: "" + pse_power_supported: "" + pse_powering_status: "" + receive_tw: "" + serial: "" + serial_number: "" + software_revision: "" + system_capabilities_supported: "bridge" + transmit_tw: "" + unknown_policy: "" + vlan_id: "" + vlan_id_and_protocol: "" + vlan_name: "" + vlan_tagged: "" + - aggregation_port_id: "" + asset_tracking_identifier: "" + autoclass_completed: "" + autoclass_request: "" + autonegotiation_enabled: "Yes" + autonegotiation_supported: "Yes" + capabilities: "bridge" + chassis_id: "0035-1a5e-8340" + chassis_type: "MAC address" + discovered_time: "" + dual_signature_power_classx_mode_a: "" + dual_signature_power_classx_mode_b: "" + echo_receive_tw: "" + echo_transmit_tw: "" + energy_efficient_ethernet_support: "" + expired_time: "114" + fallback_receive_tw: "" + firmware_revision: "" + hardware_revision: "" + link_aggregation_enabled: "" + link_aggregation_supported: "" + local_interface: "GigabitEthernet0/0/23" + location_format: "" + location_information: "" + manufacturer: "" + manufacturer_name: "" + maximum_frame_size: "" + med_capability: "" + med_device_class: "" + med_device_type: "" + media_policy_dscp: "" + media_policy_l2_priority: "" + media_policy_type: "" + media_policy_vlan_id: "" + mgmt_address: "1.1.1.1" + mgmt_address_type: "" + model_name: "" + neighbor_description: + - "Cisco IOS Software, C2700 Software (AP3G2-K9W8-M), Version 15.3(3)JD16, RELEASE + SOFTWARE (fc1)" + - "Technical Support: http://www.cisco.com/techsupport" + - "Copyright (c) 1986-2011 by Cisco Systems, Inc." + - "Compiled Tue 01-Ene-11 11:11:11 by prod_rel_team" + neighbor_interface: "GigabitEthernet0" + neighbor_name: "AP_Ruckus" + neighbor_port_id: "Gi0" + network_card_id: "" + oid: "" + operation_mode: "speed(1000)/duplex(Full)" + pd_4pid: "" + pd_load: "" + pd_powered_status: "" + pd_requested_power: "" + pd_requested_power_mode_a: "" + pd_requested_power_mode_b: "" + platform: "" + poe_pse_power_source: "" + port_available_power_value: "" + port_id_subtype: "" + port_id_type: "Interface name" + port_identity: "" + port_power_classification: "" + port_pse_priority: "" + power_capability: "" + power_class: "" + power_class_ext: "" + power_down: "" + power_down_request: "" + power_down_time: "" + power_ext_type: "" + power_pairs: "" + power_port_class: "" + power_priority: "" + power_source: "" + power_type: "" + power_up_mode: "" + pse_allocated_mode_power_a: "" + pse_allocated_mode_power_b: "" + pse_allocated_power: "" + pse_autoclass_support: "" + pse_maximum_available_power: "" + pse_pairs_control_ability: "" + pse_power_enabled: "" + pse_power_pairs_ext: "" + pse_power_pairsx: "" + pse_power_supported: "" + pse_powering_status: "" + receive_tw: "" + serial: "" + serial_number: "" + software_revision: "" + system_capabilities_supported: "bridge" + transmit_tw: "" + unknown_policy: "" + vlan_id: "" + vlan_id_and_protocol: "" + vlan_name: "" + vlan_tagged: "" + - aggregation_port_id: "" + asset_tracking_identifier: "" + autoclass_completed: "" + autoclass_request: "" + autonegotiation_enabled: "Yes" + autonegotiation_supported: "Yes" + capabilities: "bridge" + chassis_id: "aaaa-aaaa-aaaa" + chassis_type: "MAC address" + discovered_time: "" + dual_signature_power_classx_mode_a: "" + dual_signature_power_classx_mode_b: "" + echo_receive_tw: "" + echo_transmit_tw: "" + energy_efficient_ethernet_support: "" + expired_time: "119" + fallback_receive_tw: "" + firmware_revision: "" + hardware_revision: "" + link_aggregation_enabled: "" + link_aggregation_supported: "" + local_interface: "GigabitEthernet0/0/24" + location_format: "" + location_information: "" + manufacturer: "" + manufacturer_name: "" + maximum_frame_size: "" + med_capability: "" + med_device_class: "" + med_device_type: "" + media_policy_dscp: "" + media_policy_l2_priority: "" + media_policy_type: "" + media_policy_vlan_id: "" + mgmt_address: "1.1.1.1" + mgmt_address_type: "" + model_name: "" + neighbor_description: + - "1.1.111.1 (AIR-AP2802I-N-K9), Version 1.1.111.1" + - "Copyright (c) 1986-2011 by Cisco Systems, Inc." + - "Compiled Mon Enr 1 11:11:11 PDT 2018 by vipendya" + neighbor_interface: "eth0" + neighbor_name: "AP_Huawei" + neighbor_port_id: "0" + network_card_id: "" + oid: "" + operation_mode: "speed(1000)/duplex(Full)" + pd_4pid: "" + pd_load: "" + pd_powered_status: "" + pd_requested_power: "" + pd_requested_power_mode_a: "" + pd_requested_power_mode_b: "" + platform: "" + poe_pse_power_source: "" + port_available_power_value: "" + port_id_subtype: "" + port_id_type: "Interface alias" + port_identity: "" + port_power_classification: "" + port_pse_priority: "" + power_capability: "" + power_class: "" + power_class_ext: "" + power_down: "" + power_down_request: "" + power_down_time: "" + power_ext_type: "" + power_pairs: "" + power_port_class: "" + power_priority: "" + power_source: "" + power_type: "" + power_up_mode: "" + pse_allocated_mode_power_a: "" + pse_allocated_mode_power_b: "" + pse_allocated_power: "" + pse_autoclass_support: "" + pse_maximum_available_power: "" + pse_pairs_control_ability: "" + pse_power_enabled: "" + pse_power_pairs_ext: "" + pse_power_pairsx: "" + pse_power_supported: "" + pse_powering_status: "" + receive_tw: "" + serial: "" + serial_number: "" + software_revision: "" + system_capabilities_supported: "bridge" + transmit_tw: "" + unknown_policy: "" + vlan_id: "" + vlan_id_and_protocol: "" + vlan_name: "" + vlan_tagged: "" + - aggregation_port_id: "" + asset_tracking_identifier: "" + autoclass_completed: "" + autoclass_request: "" + autonegotiation_enabled: "Yes" + autonegotiation_supported: "No" + capabilities: "bridge" + chassis_id: "aaaa-aaaa-aaaa" + chassis_type: "MAC address" + discovered_time: "" + dual_signature_power_classx_mode_a: "" + dual_signature_power_classx_mode_b: "" + echo_receive_tw: "" + echo_transmit_tw: "" + energy_efficient_ethernet_support: "" + expired_time: "93" + fallback_receive_tw: "" + firmware_revision: "" + hardware_revision: "" + link_aggregation_enabled: "" + link_aggregation_supported: "" + local_interface: "GigabitEthernet0/0/25" + location_format: "" + location_information: "" + manufacturer: "" + manufacturer_name: "" + maximum_frame_size: "" + med_capability: "" + med_device_class: "" + med_device_type: "" + media_policy_dscp: "" + media_policy_l2_priority: "" + media_policy_type: "" + media_policy_vlan_id: "" + mgmt_address: "1.1.1.1" + mgmt_address_type: "" + model_name: "" + neighbor_description: + - "Cisco IOS Software, C3750E Software (C3750E-UNIVERSALK9-M), Version 1.1(11)SE2, + RELEASE SOFTWARE (fc1)" + - "Technical Support: http://www.cisco.com/techsupport" + - "Copyright (c) 1986-2011 by Cisco Systems, Inc." + - "Compiled Thu 21-Jul-11 01:23 by prod_rel_team" + neighbor_interface: "GigabitEthernet3/0/2" + neighbor_name: "some.example.com" + neighbor_port_id: "Gi3/0/2" + network_card_id: "" + oid: "" + operation_mode: "speed(1000)/duplex(Full)" + pd_4pid: "" + pd_load: "" + pd_powered_status: "" + pd_requested_power: "" + pd_requested_power_mode_a: "" + pd_requested_power_mode_b: "" + platform: "" + poe_pse_power_source: "" + port_available_power_value: "" + port_id_subtype: "" + port_id_type: "Interface name" + port_identity: "" + port_power_classification: "" + port_pse_priority: "" + power_capability: "" + power_class: "" + power_class_ext: "" + power_down: "" + power_down_request: "" + power_down_time: "" + power_ext_type: "" + power_pairs: "" + power_port_class: "" + power_priority: "" + power_source: "" + power_type: "" + power_up_mode: "" + pse_allocated_mode_power_a: "" + pse_allocated_mode_power_b: "" + pse_allocated_power: "" + pse_autoclass_support: "" + pse_maximum_available_power: "" + pse_pairs_control_ability: "" + pse_power_enabled: "" + pse_power_pairs_ext: "" + pse_power_pairsx: "" + pse_power_supported: "" + pse_powering_status: "" + receive_tw: "" + serial: "" + serial_number: "" + software_revision: "" + system_capabilities_supported: "bridge router" + transmit_tw: "" + unknown_policy: "" + vlan_id: "1" + vlan_id_and_protocol: "" + vlan_name: "" + vlan_tagged: "" diff --git a/tests/juniper_junos/show_rsvp_interface/juniper_junos_show_rsvp_interface.yml b/tests/juniper_junos/show_rsvp_interface/juniper_junos_show_rsvp_interface.yml index 1ab8a3d1a6..105143f88a 100644 --- a/tests/juniper_junos/show_rsvp_interface/juniper_junos_show_rsvp_interface.yml +++ b/tests/juniper_junos/show_rsvp_interface/juniper_junos_show_rsvp_interface.yml @@ -1,3 +1,4 @@ +--- parsed_sample: - active_resv: "10" avail_bw: "380Gbps" diff --git a/tests/test_development_scripts.py b/tests/test_development_scripts.py index c484e9c0f4..729a74d585 100644 --- a/tests/test_development_scripts.py +++ b/tests/test_development_scripts.py @@ -22,6 +22,7 @@ YAML_OBJECT.explicit_start = True YAML_OBJECT.indent(sequence=4, offset=2) YAML_OBJECT.block_style = True +YAML_OBJECT.width = float("inf") RE_MULTILINE_REMARK = re.compile(r"(.*\n\s*#)(.*)")