# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## H3C.VRP.get_lldp_neighbors test
## Auto-generated by manage.py debug-script at 2011-03-11 09:15:50
##----------------------------------------------------------------------
## Copyright (C) 2007-2011 The NOC Project
## See LICENSE for details
##----------------------------------------------------------------------
from noc.lib.test import ScriptTestCase
class H3C_VRP_get_lldp_neighbors_Test(ScriptTestCase):
    script="H3C.VRP.get_lldp_neighbors"
    vendor="H3C"
    platform='5500-EI'
    version='3.03.02s56ep05'
    input={}
    result=[{'local_interface': 'Ethernet1/0/20',
  'neighbors': [{'remote_capabilities': 20,
                 'remote_chassis_id': '00:1A:C1:06:C6:00',
                 'remote_chassis_id_subtype': 4,
                 'remote_port': 'Ethernet3/0/45',
                 'remote_port_subtype': 5,
                 'remote_system_name': 'CORE-3'}]},
 {'local_interface': 'GigabitEthernet1/0/25',
  'neighbors': [{'remote_capabilities': 20,
                 'remote_chassis_id': '00:24:73:44:E7:40',
                 'remote_chassis_id_subtype': 4,
                 'remote_port': 'GigabitEthernet1/0/50',
                 'remote_port_subtype': 5,
                 'remote_system_name': '4500'}]}]
    motd='\n'
    cli={
## 'display version'
'display version': """
%Mar 11 09:15:42:756 2011 5500-EI-TEC3 SHELL/5/LOGIN:- 1 - admin(172.20.0.181) in unit1 logindisplay version
3Com Corporation
Switch 5500-EI Software Version 3Com OS V3.03.02s56ep05
Copyright (c) 2004-2009 3Com Corporation and its licensors, All rights reserved.
Switch 5500-EI uptime is 33 weeks, 3 days, 22 hours, 3 minutes

Switch 5500-EI 28-Port with 1 Processor
64M     bytes DRAM
16384K  bytes Flash Memory
Config Register points to FLASH

CPLD Version is CPLD 001
Bootrom Version is 4.02
[Subslot 0] 24 FE + 4 GE Hardware Version is 00.00.00 
""",
## 'display lldp neighbor'
'display lldp neighbor': """display lldp neighbor

LLDP neighbor-information of port 20[Ethernet1/0/20]:
  Neighbor index   : 1
  Update time      : 142 days,1 hours,4 minutes,31 seconds
  Chassis type     : MAC address
  Chassis ID       : 001a-c106-c600
  Port ID type     : Interface name
  Port ID          : Ethernet3/0/45
  Port description : Ethernet3/0/45
  System name        : CORE-3
  System description : Switch 4500 50-Port
  System capabilities supported : Bridge,Router 
  System capabilities enabled   : Bridge,Router

  Management address type           : ipV4
  Management address                : 192.168.70.200
  Management address interface type : IfIndex
  Management address interface ID   : 31
  Management address OID            : 

  Port VLAN ID(PVID): 1

  Port and protocol VLAN ID(PPVID) : 1
  Port and protocol VLAN supported : No
                                            Port and protocol VLAN enabled   : No

  VLAN name of VLAN 1: VLAN 0001

  Auto-negotiation supported : Yes
  Auto-negotiation enabled   : Yes
  OperMau                    : speed(100)/duplex(Full)

  Power port class          : PD
  PSE power supported       : No
  PSE power enabled         : No
  PSE pairs control ability : No
  Power pairs               : Signal
  Port power classification : Class 0

  Link aggregation supported : Yes
  Link aggregation enabled   : No
  Aggregation port ID        : 0

  Maximum frame Size: 1522


LLDP neighbor-information of port 25[GigabitEthernet1/0/25]:
  Neighbor index   : 1
                                            Update time      : 182 days,22 hours,7 minutes,52 seconds
  Chassis type     : MAC address
  Chassis ID       : 0024-7344-e740
  Port ID type     : Interface name
  Port ID          : GigabitEthernet1/0/50
  Port description : GigabitEthernet1/0/50
  System name        : 4500
  System description : Switch 4500 50-Port
  System capabilities supported : Bridge,Router 
  System capabilities enabled   : Bridge,Router

  Management address type           : ipV4
  Management address                : 192.168.161.254
  Management address interface type : IfIndex
  Management address interface ID   : 1303
  Management address OID            : 

  Port VLAN ID(PVID): 1

  Port and protocol VLAN ID(PPVID) : 160
  Port and protocol VLAN supported : No
  Port and protocol VLAN enabled   : No

  VLAN name of VLAN 160: UMTS
                                          
  Auto-negotiation supported : Yes
  Auto-negotiation enabled   : Yes
  OperMau                    : speed(1000)/duplex(Full)

  Power port class          : PD
  PSE power supported       : No
  PSE power enabled         : No
  PSE pairs control ability : No
  Power pairs               : Signal
  Port power classification : Class 0

  Link aggregation supported : Yes
  Link aggregation enabled   : No
  Aggregation port ID        : 0

  Maximum frame Size: 9216
""",
}
    snmp_get={}
    snmp_getnext={}
