# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## HP.ProCurve.get_lldp_neighbors test
## Auto-generated by manage.py debug-script at 2010-09-24 17:11:20
##----------------------------------------------------------------------
## 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='6120G/XG'
    version='Z.14.08'
    input={}
    result=[{'local_interface': '1',
  'local_interface_id': 17,
  'neighbors': [{'remote_capabilities': 22,
                 'remote_chassis_id': '00:01:E8:6D:1C:5C',
                 'remote_chassis_id_subtype': 4,
                 'remote_port': 'GigabitEthernet 0/36',
                 'remote_port_subtype': 5,
                 'remote_system_name': 'switch1'}]},
 {'local_interface': '2',
  'local_interface_id': 18,
  'neighbors': [{'remote_capabilities': 22,
                 'remote_chassis_id': '00:01:E8:6D:1C:5C',
                 'remote_chassis_id_subtype': 4,
                 'remote_port': 'GigabitEthernet 6/40',
                 'remote_port_subtype': 5,
                 'remote_system_name': 'switch1'}]},
 {'local_interface': '3',
  'local_interface_id': 19,
  'neighbors': [{'remote_capabilities': 22,
                 'remote_chassis_id': '00:01:E8:6D:1C:5C',
                 'remote_chassis_id_subtype': 4,
                 'remote_port': 'GigabitEthernet 6/42',
                 'remote_port_subtype': 5,
                 'remote_system_name': 'switch1'}]},
 {'local_interface': '4',
  'local_interface_id': 20,
  'neighbors': [{'remote_capabilities': 22,
                 'remote_chassis_id': '00:01:E8:6D:1C:5C',
                 'remote_chassis_id_subtype': 4,
                 'remote_port': 'GigabitEthernet 6/43',
                 'remote_port_subtype': 5,
                 'remote_system_name': 'switch1'}]}]
    motd=' \nProCurve 498358-B21 6120G/XG 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 1'
'show lldp info remote-device 1': """show lldp info remote-device 1
 LLDP Remote Device Information Detail

  Local Port   : 1
  ChassisType  : mac-address         
  ChassisId    : 00 01 e8 6d 1c 5c        
  PortType     : inte...
  PortId       : GigabitEthernet 0/36     
  SysName      : switch1                       
  System Descr : Force10 Networks Real Time Operating System Software. For...
  PortDescr    :                                                             

  System Capabilities Supported  : repeater, bridge, router
  System Capabilities Enabled    : repeater, bridge, router

  Remote Management Address

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

  LocalPort | ChassisId                 PortId PortDescr SysName               
  --------- + ------------------------- ------ --------- ----------------------
  1         | 00 01 e8 6d 1c 5c         Gig...           switch1               
  2         | 00 01 e8 6d 1c 5c         Gig...           switch1               
  3         | 00 01 e8 6d 1c 5c         Gig...           switch1               
  4         | 00 01 e8 6d 1c 5c         Gig...           switch1               
 
""",
## 'show lldp info remote-device 3'
'show lldp info remote-device 3': """show lldp info remote-device 3
 LLDP Remote Device Information Detail

  Local Port   : 3
  ChassisType  : mac-address         
  ChassisId    : 00 01 e8 6d 1c 5c        
  PortType     : inte...
  PortId       : GigabitEthernet 6/42     
  SysName      : switch1                       
  System Descr : Force10 Networks Real Time Operating System Software. For...
  PortDescr    :                                                             

  System Capabilities Supported  : repeater, bridge, router
  System Capabilities Enabled    : repeater, bridge, router

  Remote Management Address

""",
## 'show lldp info remote-device 4'
'show lldp info remote-device 4': """show lldp info remote-device 4
 LLDP Remote Device Information Detail

  Local Port   : 4
  ChassisType  : mac-address         
  ChassisId    : 00 01 e8 6d 1c 5c        
  PortType     : inte...
  PortId       : GigabitEthernet 6/43     
  SysName      : switch1                       
  System Descr : Force10 Networks Real Time Operating System Software. For...
  PortDescr    :                                                             

  System Capabilities Supported  : repeater, bridge, router
  System Capabilities Enabled    : repeater, bridge, router

  Remote Management Address

""",
## '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   : 00 24 81 d9 2d 41        
  System Name  : switch2                     
  System Description : ProCurve 498358-B21 6120G/XG Blade Switch, revision ...
  System Capabilities Supported:bridge
  System Capabilities Enabled:bridge

  Management Address  :
     Type:ipv4
     Address:10.33.32.7

 LLDP Port Information

  Port     | PortType PortId   PortDesc
  -------- + -------- -------- --------
  D1       | local    1        D1      
  D2       | local    2        D2      
  D3       | local    3        D3      
  D4       | local    4        D4      
  D5       | local    5        D5      
  D6       | local    6        D6      
  D7       | local    7        D7      
  D8       | local    8        D8      
  D9       | local    9        D9      
  D10      | local    10       D10     
  D11      | local    11       D11     
  D12      | local    12       D12     
  D13      | local    13       D13     
  D14      | local    14       D14     
  D15      | local    15       D15     
  D16      | local    16       D16     
  1        | local    17       1       
  2        | local    18       2       
  3        | local    19       3       
  4        | local    20       4       
  S1       | local    21       S1      
  S2       | local    22       S2      
  X1       | local    23       X1      
  X2       | local    24       X2      
  C1       | local    25       C1      
  I1       | local    26       I1      
 """,
'terminal length 1000':  'terminal length ',
## 'show lldp info remote-device 2'
'show lldp info remote-device 2': """show lldp info remote-device 2
 LLDP Remote Device Information Detail

  Local Port   : 2
  ChassisType  : mac-address         
  ChassisId    : 00 01 e8 6d 1c 5c        
  PortType     : inte...
  PortId       : GigabitEthernet 6/40     
  SysName      : switch1                       
  System Descr : Force10 Networks Real Time Operating System Software. For...
  PortDescr    :                                                             

  System Capabilities Supported  : repeater, bridge, router
  System Capabilities Enabled    : repeater, bridge, router

  Remote Management Address

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