# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## H3C.VRP.get_lldp_neighbors test
## Auto-generated by manage.py debug-script at 2011-03-11 09:40:45
##----------------------------------------------------------------------
## 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='5500G-EI'
    version='3.03.02s56p05'
    input={}
    result=[{'local_interface': 'GigabitEthernet2/0/3',
  'neighbors': [{'remote_capabilities': 20,
                 'remote_chassis_id': '00:1A:C1:00:BE:40',
                 'remote_chassis_id_subtype': 4,
                 'remote_port': 'GigabitEthernet1/0/52',
                 'remote_port_subtype': 5,
                 'remote_system_name': '4500'}]},
 {'local_interface': 'GigabitEthernet2/0/4',
  'neighbors': [{'remote_capabilities': 20,
                 'remote_chassis_id': '00:1A:C1:4F:0D:40',
                 'remote_chassis_id_subtype': 4,
                 'remote_port': 'GigabitEthernet1/0/52',
                 'remote_port_subtype': 5,
                 'remote_system_name': '4500'}]},
 {'local_interface': 'GigabitEthernet2/0/5',
  'neighbors': [{'remote_capabilities': 20,
                 'remote_chassis_id': '00:1A:C1:52:4D:C0',
                 'remote_chassis_id_subtype': 4,
                 'remote_port': 'GigabitEthernet1/0/52',
                 'remote_port_subtype': 5,
                 'remote_system_name': '4500'}]},
 {'local_interface': 'GigabitEthernet2/0/6',
  'neighbors': [{'remote_capabilities': 20,
                 'remote_chassis_id': '00:16:E0:0E:78:80',
                 'remote_chassis_id_subtype': 4,
                 'remote_port': 'GigabitEthernet1/0/52',
                 'remote_port_subtype': 5,
                 'remote_system_name': '4500'}]},
 {'local_interface': 'GigabitEthernet2/0/7',
  'neighbors': [{'remote_capabilities': 20,
                 'remote_chassis_id': '00:24:73:74:B1:C0',
                 'remote_chassis_id_subtype': 4,
                 'remote_port': 'GigabitEthernet1/0/52',
                 'remote_port_subtype': 5,
                 'remote_system_name': '4500PWR-234'}]},
 {'local_interface': 'GigabitEthernet2/0/8',
  'neighbors': [{'remote_capabilities': 20,
                 'remote_chassis_id': '40:01:C6:51:8B:C0',
                 'remote_chassis_id_subtype': 4,
                 'remote_port': 'GigabitEthernet1/0/52',
                 'remote_port_subtype': 5,
                 'remote_system_name': '4500PWR-305'}]},
 {'local_interface': 'GigabitEthernet2/0/13',
  'neighbors': [{'remote_capabilities': 20,
                 'remote_chassis_id': '00:1A:C1:08:0F:C0',
                 'remote_chassis_id_subtype': 4,
                 'remote_port': 'GigabitEthernet1/0/52',
                 'remote_port_subtype': 5,
                 'remote_system_name': '4500'}]},
 {'local_interface': 'GigabitEthernet2/0/15',
  'neighbors': [{'remote_capabilities': 20,
                 'remote_chassis_id': '00:18:6E:48:84:40',
                 'remote_chassis_id_subtype': 4,
                 'remote_port': 'GigabitEthernet1/0/52',
                 'remote_port_subtype': 5,
                 'remote_system_name': '4500'}]},
 {'local_interface': 'GigabitEthernet2/0/16',
  'neighbors': [{'remote_capabilities': 20,
                 'remote_chassis_id': '00:16:E0:D1:0C:00',
                 'remote_chassis_id_subtype': 4,
                 'remote_port': 'GigabitEthernet1/0/52',
                 'remote_port_subtype': 5,
                 'remote_system_name': '4500'}]},
 {'local_interface': 'GigabitEthernet2/0/17',
  'neighbors': [{'remote_capabilities': 20,
                 'remote_chassis_id': '00:1A:C1:6E:B8:40',
                 'remote_chassis_id_subtype': 4,
                 'remote_port': 'GigabitEthernet1/0/52',
                 'remote_port_subtype': 5,
                 'remote_system_name': '4500'}]},
 {'local_interface': 'GigabitEthernet2/0/18',
  'neighbors': [{'remote_capabilities': 20,
                 'remote_chassis_id': '00:24:73:80:30:40',
                 'remote_chassis_id_subtype': 4,
                 'remote_port': 'GigabitEthernet1/0/52',
                 'remote_port_subtype': 5,
                 'remote_system_name': '4500'}]},
 {'local_interface': 'GigabitEthernet2/0/19',
  'neighbors': [{'remote_capabilities': 20,
                 'remote_chassis_id': '40:01:C6:51:86:40',
                 'remote_chassis_id_subtype': 4,
                 'remote_port': 'GigabitEthernet1/0/52',
                 'remote_port_subtype': 5,
                 'remote_system_name': '4500POE-214'}]}]
    motd='\n'
    cli={
## 'display version'
'display version': """
%Mar 11 09:40:39:038 2011 5500G-EI-Mainframe SHELL/5/LOGIN:- 2 - admin(172.20.0.181) in unit2 logindisplay version
3Com Corporation
Switch 5500G-EI Software Version 3Com OS V3.03.02s56p05
Copyright (c) 2004-2009 3Com Corporation and its licensors, All rights reserved.
Switch 5500G-EI uptime is 35 weeks, 1 day, 2 hours, 54 minutes

Switch 5500G-EI 24-Port with 1 Processor
128M    bytes SDRAM
16384K  bytes Flash Memory
Config Register points to FLASH

Hardware Version is REV.C
CPLD Version is 002
Bootrom Version is 5.03
[Subslot 0] 24GE+4SFP  Hardware Version is 00.00.00 
[Subslot 2] 2 STACK Hardware Version is REV.C 
""",
## 'display lldp neighbor'
'display lldp neighbor': """display lldp neighbor

LLDP neighbor-information of port 61[GigabitEthernet2/0/3]:
  Neighbor index   : 1
  Update time      : 160 days,8 hours,54 minutes,55 seconds
  Chassis type     : MAC address
  Chassis ID       : 001a-c100-be40
  Port ID type     : Interface name
  Port ID          : GigabitEthernet1/0/52
  Port description : GigabitEthernet1/0/52
  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                : 172.20.0.207
  Management address interface type : IfIndex
  Management address interface ID   : 183
  Management address OID            : 

  Port VLAN ID(PVID): 20

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

  VLAN name of VLAN 20: VLAN 0020

  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


LLDP neighbor-information of port 62[GigabitEthernet2/0/4]:
  Neighbor index   : 1
                                            Update time      : 151 days,2 hours,15 minutes,34 seconds
  Chassis type     : MAC address
  Chassis ID       : 001a-c14f-0d40
  Port ID type     : Interface name
  Port ID          : GigabitEthernet1/0/52
  Port description : GigabitEthernet1/0/52
  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                : 172.20.0.210
  Management address interface type : IfIndex
  Management address interface ID   : 183
  Management address OID            : 

  Port VLAN ID(PVID): 20

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

  VLAN name of VLAN 20: VLAN 0020
                                          
  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


LLDP neighbor-information of port 63[GigabitEthernet2/0/5]:
  Neighbor index   : 1
  Update time      : 151 days,2 hours,12 minutes,42 seconds
  Chassis type     : MAC address
  Chassis ID       : 001a-c152-4dc0
                                            Port ID type     : Interface name
  Port ID          : GigabitEthernet1/0/52
  Port description : GigabitEthernet1/0/52
  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                : 172.20.0.208
  Management address interface type : IfIndex
  Management address interface ID   : 183
  Management address OID            : 

  Port VLAN ID(PVID): 20

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

  VLAN name of VLAN 20: VLAN 0020

  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


LLDP neighbor-information of port 64[GigabitEthernet2/0/6]:
  Neighbor index   : 1
  Update time      : 151 days,2 hours,5 minutes,11 seconds
  Chassis type     : MAC address
  Chassis ID       : 0016-e00e-7880
  Port ID type     : Interface name
  Port ID          : GigabitEthernet1/0/52
  Port description : GigabitEthernet1/0/52
                                            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                : 172.20.0.202
  Management address interface type : IfIndex
  Management address interface ID   : 183
  Management address OID            : 

  Port VLAN ID(PVID): 1

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

  VLAN name of VLAN 20: VLAN 0020

  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


LLDP neighbor-information of port 65[GigabitEthernet2/0/7]:
  Neighbor index   : 1
  Update time      : 151 days,12 hours,56 minutes,5 seconds
  Chassis type     : MAC address
  Chassis ID       : 0024-7374-b1c0
  Port ID type     : Interface name
  Port ID          : GigabitEthernet1/0/52
  Port description : GigabitEthernet1/0/52
  System name        : 4500PWR-234
  System description : Switch 4500 PWR 50-Port
  System capabilities supported : Bridge,Router 
                                            System capabilities enabled   : Bridge,Router

  Management address type           : ipV4
  Management address                : 10.99.200.203
  Management address interface type : IfIndex
  Management address interface ID   : 815
  Management address OID            : 

  Port VLAN ID(PVID): 99

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

  VLAN name of VLAN 20: VLAN 0020

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

  Power port class          : PSE
  PSE power supported       : No
  PSE power enabled         : Yes
  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 66[GigabitEthernet2/0/8]:
  Neighbor index   : 1
  Update time      : 160 days,8 hours,18 minutes,14 seconds
  Chassis type     : MAC address
  Chassis ID       : 4001-c651-8bc0
  Port ID type     : Interface name
  Port ID          : GigabitEthernet1/0/52
  Port description : GigabitEthernet1/0/52
  System name        : 4500PWR-305
  System description : Switch 4500 PWR 50-Port
  System capabilities supported : Bridge,Router 
  System capabilities enabled   : Bridge,Router

  Management address type           : ipV4
                                            Management address                : 10.99.200.201
  Management address interface type : IfIndex
  Management address interface ID   : 815
  Management address OID            : 

  Port VLAN ID(PVID): 1

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

  VLAN name of VLAN 20: TGK11

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

  Power port class          : PSE
  PSE power supported       : No
  PSE power enabled         : Yes
  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 71[GigabitEthernet2/0/13]:
  Neighbor index   : 1
  Update time      : 151 days,2 hours,9 minutes,32 seconds
  Chassis type     : MAC address
  Chassis ID       : 001a-c108-0fc0
  Port ID type     : Interface name
  Port ID          : GigabitEthernet1/0/52
  Port description : GigabitEthernet1/0/52
  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                : 172.20.0.205
  Management address interface type : IfIndex
  Management address interface ID   : 183
                                            Management address OID            : 

  Port VLAN ID(PVID): 20

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

  VLAN name of VLAN 20: VLAN 0020

  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


LLDP neighbor-information of port 73[GigabitEthernet2/0/15]:
  Neighbor index   : 1
  Update time      : 151 days,2 hours,8 minutes,4 seconds
  Chassis type     : MAC address
  Chassis ID       : 0018-6e48-8440
  Port ID type     : Interface name
  Port ID          : GigabitEthernet1/0/52
  Port description : GigabitEthernet1/0/52
  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                : 172.20.0.203
  Management address interface type : IfIndex
  Management address interface ID   : 183
  Management address OID            : 

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

  VLAN name of VLAN 20: VLAN 0020

  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

                                          
LLDP neighbor-information of port 74[GigabitEthernet2/0/16]:
  Neighbor index   : 1
  Update time      : 151 days,2 hours,8 minutes,44 seconds
  Chassis type     : MAC address
  Chassis ID       : 0016-e0d1-0c00
  Port ID type     : Interface name
  Port ID          : GigabitEthernet1/0/52
  Port description : GigabitEthernet1/0/52
  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                : 172.20.0.204
  Management address interface type : IfIndex
  Management address interface ID   : 183
  Management address OID            : 

  Port VLAN ID(PVID): 20

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

  VLAN name of VLAN 20: VLAN 0020

  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


LLDP neighbor-information of port 75[GigabitEthernet2/0/17]:
  Neighbor index   : 1
                                            Update time      : 151 days,2 hours,14 minutes,56 seconds
  Chassis type     : MAC address
  Chassis ID       : 001a-c16e-b840
  Port ID type     : Interface name
  Port ID          : GigabitEthernet1/0/52
  Port description : GigabitEthernet1/0/52
  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                : 172.20.0.209
  Management address interface type : IfIndex
  Management address interface ID   : 183
  Management address OID            : 

  Port VLAN ID(PVID): 20

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

  VLAN name of VLAN 20: VLAN 0020
                                          
  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


LLDP neighbor-information of port 76[GigabitEthernet2/0/18]:
  Neighbor index   : 1
  Update time      : 151 days,2 hours,6 minutes,59 seconds
  Chassis type     : MAC address
  Chassis ID       : 0024-7380-3040
                                            Port ID type     : Interface name
  Port ID          : GigabitEthernet1/0/52
  Port description : GigabitEthernet1/0/52
  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                : 172.20.0.201
  Management address interface type : IfIndex
  Management address interface ID   : 183
  Management address OID            : 

  Port VLAN ID(PVID): 20

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

  VLAN name of VLAN 20: VLAN 0020

  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


LLDP neighbor-information of port 77[GigabitEthernet2/0/19]:
  Neighbor index   : 1
  Update time      : 223 days,7 hours,59 minutes,32 seconds
  Chassis type     : MAC address
  Chassis ID       : 4001-c651-8640
  Port ID type     : Interface name
  Port ID          : GigabitEthernet1/0/52
  Port description : GigabitEthernet1/0/52
                                            System name        : 4500POE-214
  System description : Switch 4500 PWR 50-Port
  System capabilities supported : Bridge,Router 
  System capabilities enabled   : Bridge,Router

  Management address type           : ipV4
  Management address                : 10.99.200.202
  Management address interface type : IfIndex
  Management address interface ID   : 815
  Management address OID            : 

  Port VLAN ID(PVID): 20

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

  VLAN name of VLAN 20: VLAN 0020

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

  Power port class          : PSE
                                            PSE power supported       : No
  PSE power enabled         : Yes
  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={}
