# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## H3C.VRP.get_lldp_neighbors test
## Auto-generated by manage.py debug-script at 2011-03-11 09:25:40
##----------------------------------------------------------------------
## 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='4500'
    version='3.03.02s56p05'
    input={}
    result=[{'local_interface': 'GigabitEthernet1/0/52',
  'neighbors': [{'remote_capabilities': 20,
                 'remote_chassis_id': '00:1E:C1:EC:08:00',
                 'remote_chassis_id_subtype': 4,
                 'remote_port': 'GigabitEthernet2/0/18',
                 'remote_port_subtype': 5,
                 'remote_system_name': '5500G-EI-Mainframe'}]}]
    motd='\n'
    cli={
## 'display version'
'display version': """
%Mar 11 09:25:34:226 2011 4500 SHELL/5/LOGIN:- 1 - admin(172.20.0.181) in unit1 logindisplay version
3Com Corporation
Switch 4500 50-Port Software Version 3Com OS V3.03.02s56p05
Copyright (c) 2004-2009 3Com Corporation and its licensors, All rights reserved.
Switch 4500 50-Port uptime is 14 weeks, 2 days, 11 hours, 58 minutes

Switch 4500 50-Port with 1 Processor
64M     bytes DRAM
8196K   bytes Flash Memory
Config Register points to FLASH

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

LLDP neighbor-information of port 50[GigabitEthernet1/0/52]:
  Neighbor index   : 1
  Update time      : 58 days,13 hours,24 minutes,38 seconds
  Chassis type     : MAC address
  Chassis ID       : 001e-c1ec-0800
  Port ID type     : Interface name
  Port ID          : GigabitEthernet2/0/18
  Port description : GigabitEthernet2/0/18
  System name        : 5500G-EI-Mainframe
  System description : Switch 5500G-EI 24-Port
  System capabilities supported : Bridge,Router 
  System capabilities enabled   : Bridge,Router

  Management address type           : ipV4
  Management address                : 172.20.0.2
  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 : Yes
                                            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: 1522
""",
}
    snmp_get={}
    snmp_getnext={}
