# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## HP.ProCurve.get_lldp_neighbors test
## Auto-generated by manage.py debug-script at 2010-12-09 12:38:25
##----------------------------------------------------------------------
## Copyright (C) 2007-2010 The NOC Project
## See LICENSE for details
##----------------------------------------------------------------------
from noc.lib.test import ScriptTestCase
class HP_ProCurve_get_lldp_neighbors_Test(ScriptTestCase):
    script="HP.ProCurve.get_lldp_neighbors"
    vendor="HP"
    platform='6120XG'
    version='Z.14.08'
    input={}
    result=[{'local_interface': '23',
  'local_interface_id': 23,
  'neighbors': [{'remote_capabilities': 4,
                 'remote_chassis_id': 'F4:CE:46:E8:72:81',
                 'remote_chassis_id_subtype': 4,
                 'remote_port': '23',
                 'remote_port_subtype': 5,
                 'remote_system_name': 'sw-0000002'}]},
 {'local_interface': '24',
  'local_interface_id': 24,
  'neighbors': [{'remote_capabilities': 4,
                 'remote_chassis_id': 'F4:CE:46:E8:72:81',
                 'remote_chassis_id_subtype': 4,
                 'remote_port': '24',
                 'remote_port_subtype': 5,
                 'remote_system_name': 'sw-0000002'}]}]
    motd=' \nProCurve 516733-B21 6120XG Blade Switch\nSoftware revision Z.14.08\n\nCopyright (C) 1991-2009 Hewlett-Packard Co.  All Rights Reserved.\n\n                           RESTRICTED RIGHTS LEGEND\n\n Use, duplication, or disclosure by the Government is subject to restrictions\n as set forth in subdivision (b) (3) (ii) of the Rights in Technical Data and\n Computer Software clause at 52.227-7013.\n\n         HEWLETT-PACKARD COMPANY, 3000 Hanover St., Palo Alto, CA 94303\n\n'
    cli={
## 'show lldp info remote-device 23'
'show lldp info remote-device 23': """show lldp info remote-device 23
 LLDP Remote Device Information Detail

  Local Port   : 23
  ChassisType  : mac-address         
  ChassisId    : f4 ce 46 e8 72 81        
  PortType     : local  
  PortId       : 23                       
  SysName      : sw-0000002                    
  System Descr : ProCurve 516733-B21 6120XG Blade Switch, revision Z.14.08...
  PortDescr    : 23                                                          

  System Capabilities Supported  : bridge
  System Capabilities Enabled    : bridge

  Remote Management Address
     Type    : ipv4
     Address : 10.10.71.51

""",
## 'show lldp info remote-device'
'show lldp info remote-device': """show lldp info remote-device
 LLDP Remote Devices Information

  LocalPort | ChassisId                 PortId PortDescr SysName               
  --------- + ------------------------- ------ --------- ----------------------
  23        | f4 ce 46 e8 72 81         23     23        sw-0000002            
  24        | f4 ce 46 e8 72 81         24     24        sw-0000002            
 
""",
'terminal length 1000':  'terminal length ',
## 'show lldp info local-device'
'show lldp info local-device': """show lldp info local-device
 LLDP Local Device Information

  Chassis Type : mac-address      
  Chassis Id   : f4 ce 46 e8 72 61        
  System Name  : sw-26-1-ti                    
  System Description : ProCurve 516733-B21 6120XG Blade Switch, revision Z....
  System Capabilities Supported:bridge
  System Capabilities Enabled:bridge

  Management Address  :
     Type:ipv4
     Address:10.10.71.50

 LLDP Port Information

  Port     | PortType PortId   PortDesc
  -------- + -------- -------- --------
  1        | local    1        1       
  2        | local    2        2       
  3        | local    3        3       
  4        | local    4        4       
  5        | local    5        5       
  6        | local    6        6       
  7        | local    7        7       
  8        | local    8        8       
  9        | local    9        9       
  10       | local    10       10      
  11       | local    11       11      
  12       | local    12       12      
  13       | local    13       13      
  14       | local    14       14      
  15       | local    15       15      
  16       | local    16       16      
  17       | local    17       17      
  18       | local    18       18      
  19       | local    19       19      
  20       | local    20       20      
  21       | local    21       21      
  22       | local    22       22      
  23       | local    23       23      
  24       | local    24       24      
 """,
## 'show lldp info remote-device 24'
'show lldp info remote-device 24': """show lldp info remote-device 24
 LLDP Remote Device Information Detail

  Local Port   : 24
  ChassisType  : mac-address         
  ChassisId    : f4 ce 46 e8 72 81        
  PortType     : local  
  PortId       : 24                       
  SysName      : sw-0000002                    
  System Descr : ProCurve 516733-B21 6120XG Blade Switch, revision Z.14.08...
  PortDescr    : 24                                                          

  System Capabilities Supported  : bridge
  System Capabilities Enabled    : bridge

  Remote Management Address
     Type    : ipv4
     Address : 10.10.71.51

""",
}
    snmp_get={}
    snmp_getnext={}
