# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## HP.ProCurve.get_lldp_neighbors test
## Auto-generated by manage.py debug-script at 2010-11-24 16:34:38
##----------------------------------------------------------------------
## 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='2848'
    version='I.10.43'
    input={}
    result=[{'local_interface': '13',
  'local_interface_id': 13,
  'neighbors': [{'remote_capabilities': 0,
                 'remote_chassis_id': 'wae00001',
                 'remote_chassis_id_subtype': 7,
                 'remote_port': 'GigabitEthernet1/0',
                 'remote_port_subtype': 5,
                 'remote_system_name': 'System Descr : Cisco Wide Area Application Services Software'}]},
 {'local_interface': '15',
  'local_interface_id': 15,
  'neighbors': [{'remote_capabilities': 0,
                 'remote_chassis_id': 'cm',
                 'remote_chassis_id_subtype': 7,
                 'remote_port': 'FastEthernet0/0',
                 'remote_port_subtype': 5,
                 'remote_system_name': 'System Descr : Cisco Wide Area Application Services Software'}]},
 {'local_interface': '21',
  'local_interface_id': 21,
  'neighbors': [{'remote_capabilities': 0,
                 'remote_chassis_id': 'wae00002',
                 'remote_chassis_id_subtype': 7,
                 'remote_port': 'GigabitEthernet1/0',
                 'remote_port_subtype': 5,
                 'remote_system_name': 'System Descr : Cisco Wide Area Application Services Software'}]},
 {'local_interface': '25',
  'local_interface_id': 25,
  'neighbors': [{'remote_capabilities': 4,
                 'remote_chassis_id': '00:18:71:E2:2B:C0',
                 'remote_chassis_id_subtype': 4,
                 'remote_port': '39',
                 'remote_port_subtype': 5,
                 'remote_system_name': 'sw0000000001'}]},
 {'local_interface': '25',
  'local_interface_id': 25,
  'neighbors': [{'remote_capabilities': 4,
                 'remote_chassis_id': '00:18:71:E2:2B:C0',
                 'remote_chassis_id_subtype': 4,
                 'remote_port': '39',
                 'remote_port_subtype': 5,
                 'remote_system_name': 'sw0000000001'}]},
 {'local_interface': '27',
  'local_interface_id': 27,
  'neighbors': [{'remote_capabilities': 4,
                 'remote_chassis_id': '00:18:71:E2:2B:C0',
                 'remote_chassis_id_subtype': 4,
                 'remote_port': '28',
                 'remote_port_subtype': 5,
                 'remote_system_name': 'sw0000000001'}]},
 {'local_interface': '27',
  'local_interface_id': 27,
  'neighbors': [{'remote_capabilities': 4,
                 'remote_chassis_id': '00:18:71:E2:2B:C0',
                 'remote_chassis_id_subtype': 4,
                 'remote_port': '28',
                 'remote_port_subtype': 5,
                 'remote_system_name': 'sw0000000001'}]},
 {'local_interface': '28',
  'local_interface_id': 28,
  'neighbors': [{'remote_capabilities': 4,
                 'remote_chassis_id': '00:18:71:E2:2B:C0',
                 'remote_chassis_id_subtype': 4,
                 'remote_port': '27',
                 'remote_port_subtype': 5,
                 'remote_system_name': 'sw0000000001'}]},
 {'local_interface': '28',
  'local_interface_id': 28,
  'neighbors': [{'remote_capabilities': 4,
                 'remote_chassis_id': '00:18:71:E2:2B:C0',
                 'remote_chassis_id_subtype': 4,
                 'remote_port': '27',
                 'remote_port_subtype': 5,
                 'remote_system_name': 'sw0000000001'}]},
 {'local_interface': '39',
  'local_interface_id': 39,
  'neighbors': [{'remote_capabilities': 4,
                 'remote_chassis_id': '00:18:71:E2:2B:C0',
                 'remote_chassis_id_subtype': 4,
                 'remote_port': '25',
                 'remote_port_subtype': 5,
                 'remote_system_name': 'sw0000000001'}]},
 {'local_interface': '39',
  'local_interface_id': 39,
  'neighbors': [{'remote_capabilities': 4,
                 'remote_chassis_id': '00:18:71:E2:2B:C0',
                 'remote_chassis_id_subtype': 4,
                 'remote_port': '25',
                 'remote_port_subtype': 5,
                 'remote_system_name': 'sw0000000001'}]},
 {'local_interface': '47',
  'local_interface_id': 47,
  'neighbors': [{'remote_capabilities': 20,
                 'remote_chassis_id': '00:1C:2E:11:CC:40',
                 'remote_chassis_id_subtype': 4,
                 'remote_port': '13',
                 'remote_port_subtype': 5,
                 'remote_system_name': 'sw000000002'}]},
 {'local_interface': '48',
  'local_interface_id': 48,
  'neighbors': [{'remote_capabilities': 20,
                 'remote_chassis_id': '00:1C:2E:11:CC:40',
                 'remote_chassis_id_subtype': 4,
                 'remote_port': '14',
                 'remote_port_subtype': 5,
                 'remote_system_name': 'sw000000002'}]}]
    motd=' \nProCurve J4904A Switch 2848\nSoftware revision I.10.43\n\nCopyright (C) 1991-2007 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'
'show lldp info remote-device': """show lldp info remote-device
 LLDP Remote Devices Information

  LocalPort | ChassisId                 PortId PortDescr SysName               
  --------- + ------------------------- ------ --------- ----------------------
  13        | wae00001                  Gig...                                 
  15        | cm                        Fas...                                 
  21        | wae00002                  Gig...                                 
  25        | 00 18 71 e2 2b c0         39     39        sw0000000001          
  25        | wae00001                  Inl...                                 
  27        | 00 18 71 e2 2b c0         28     28        sw0000000001          
  27        | wae00002                  Inl...                                 
  28        | 00 18 71 e2 2b c0         27     27        sw0000000001          
  28        | wae00002                  Inl...                                 
  39        | 00 18 71 e2 2b c0         25     25        sw0000000001          
  39        | wae00001                  Inl...                                 
  47        | 00 1c 2e 11 cc 40         13     13        sw000000002           
  48        | 00 1c 2e 11 cc 40         14     14        sw000000002           
 
""",
## 'show lldp info remote-device 47'
'show lldp info remote-device 47': """show lldp info remote-device 47
 LLDP Remote Device Information Detail

  Local Port   : 47
  ChassisType  : mac-address         
  ChassisId    : 00 1c 2e 11 cc 40        
  PortType     : local  
  PortId       : 13                       
  SysName      : sw000000002                   
  System Descr : ProCurve J4906A Switch 3400cl-48G, revision M.10.68, ROM ...
  PortDescr    : 13                                                          

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

  Remote Management Address
     Type    : ipv4
     Address : 192.168.111.1

""",
## '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 18 71 e2 2b c0        
  System Name  : sw0000000001                  
  System Description : ProCurve J4904A Switch 2848, revision I.10.43, ROM I...
  System Capabilities Supported:bridge, router
  System Capabilities Enabled:bridge

  Management Address  :
     Type:ipv4
     Address:172.18.82.9
     Type:ipv4
     Address:192.168.111.9

 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      
  25       | local    25       25      
  26       | local    26       26      
  27       | local    27       27      
  28       | local    28       28      
  29       | local    29       29      
  30       | local    30       30      
  31       | local    31       31      
  32       | local    32       32      
  33       | local    33       33      
  34       | local    34       34      
  35       | local    35       35      
  36       | local    36       36      
  37       | local    37       37      
  38       | local    38       38      
  39       | local    39       39      
  40       | local    40       40      
  41       | local    41       41      
  42       | local    42       42      
  43       | local    43       43      
  44       | local    44       44      
  45       | local    45       45      
  46       | local    46       46      
  47       | local    47       47      
  48       | local    48       48      
 """,
## 'show lldp info remote-device 39'
'show lldp info remote-device 39': """show lldp info remote-device 39
 LLDP Remote Device Information Detail

  Local Port   : 39
  ChassisType  : mac-address         
  ChassisId    : 00 18 71 e2 2b c0        
  PortType     : local  
  PortId       : 25                       
  SysName      : sw0000000001                  
  System Descr : ProCurve J4904A Switch 2848, revision I.10.43, ROM I.08.0...
  PortDescr    : 25                                                          

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

  Remote Management Address
     Type    : ipv4
     Address : 192.168.111.9
  ChassisType  : local               
  ChassisId    : wae00001                 
  PortType     : local  
  PortId       : InlinePort1/0/wan        
  SysName      :                               
  System Descr : Cisco Wide Area Application Services Software               
  PortDescr    :                                                             

  System Capabilities Supported  : 
  System Capabilities Enabled    : 

  Remote Management Address
     Type    : ipv4
     Address : 0.0.0.0

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

  Local Port   : 48
  ChassisType  : mac-address         
  ChassisId    : 00 1c 2e 11 cc 40        
  PortType     : local  
  PortId       : 14                       
  SysName      : sw000000002                   
  System Descr : ProCurve J4906A Switch 3400cl-48G, revision M.10.68, ROM ...
  PortDescr    : 14                                                          

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

  Remote Management Address
     Type    : ipv4
     Address : 192.168.111.1

""",
'terminal length 1000':  'terminal length ',
## 'show lldp info remote-device 13'
'show lldp info remote-device 13': """show lldp info remote-device 13
 LLDP Remote Device Information Detail

  Local Port   : 13
  ChassisType  : local               
  ChassisId    : wae00001                 
  PortType     : local  
  PortId       : GigabitEthernet1/0       
  SysName      :                               
  System Descr : Cisco Wide Area Application Services Software               
  PortDescr    :                                                             

  System Capabilities Supported  : 
  System Capabilities Enabled    : 

  Remote Management Address
     Type    : ipv4
     Address : 192.168.18.50

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

  Local Port   : 28
  ChassisType  : mac-address         
  ChassisId    : 00 18 71 e2 2b c0        
  PortType     : local  
  PortId       : 27                       
  SysName      : sw0000000001                  
  System Descr : ProCurve J4904A Switch 2848, revision I.10.43, ROM I.08.0...
  PortDescr    : 27                                                          

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

  Remote Management Address
     Type    : ipv4
     Address : 192.168.111.9
  ChassisType  : local               
  ChassisId    : wae00002                 
  PortType     : local  
  PortId       : InlinePort1/0/lan        
  SysName      :                               
  System Descr : Cisco Wide Area Application Services Software               
  PortDescr    :                                                             

  System Capabilities Supported  : 
  System Capabilities Enabled    : 

  Remote Management Address
     Type    : ipv4
     Address : 0.0.0.0

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

  Local Port   : 15
  ChassisType  : local               
  ChassisId    : cm                       
  PortType     : local  
  PortId       : FastEthernet0/0          
  SysName      :                               
  System Descr : Cisco Wide Area Application Services Software               
  PortDescr    :                                                             

  System Capabilities Supported  : 
  System Capabilities Enabled    : 

  Remote Management Address
     Type    : ipv4
     Address : 192.168.18.54

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

  Local Port   : 21
  ChassisType  : local               
  ChassisId    : wae00002                 
  PortType     : local  
  PortId       : GigabitEthernet1/0       
  SysName      :                               
  System Descr : Cisco Wide Area Application Services Software               
  PortDescr    :                                                             

  System Capabilities Supported  : 
  System Capabilities Enabled    : 

  Remote Management Address
     Type    : ipv4
     Address : 192.168.18.51

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

  Local Port   : 27
  ChassisType  : mac-address         
  ChassisId    : 00 18 71 e2 2b c0        
  PortType     : local  
  PortId       : 28                       
  SysName      : sw0000000001                  
  System Descr : ProCurve J4904A Switch 2848, revision I.10.43, ROM I.08.0...
  PortDescr    : 28                                                          

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

  Remote Management Address
     Type    : ipv4
     Address : 192.168.111.9
  ChassisType  : local               
  ChassisId    : wae00002                 
  PortType     : local  
  PortId       : InlinePort1/0/wan        
  SysName      :                               
  System Descr : Cisco Wide Area Application Services Software               
  PortDescr    :                                                             

  System Capabilities Supported  : 
  System Capabilities Enabled    : 

  Remote Management Address
     Type    : ipv4
     Address : 0.0.0.0

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

  Local Port   : 25
  ChassisType  : mac-address         
  ChassisId    : 00 18 71 e2 2b c0        
  PortType     : local  
  PortId       : 39                       
  SysName      : sw0000000001                  
  System Descr : ProCurve J4904A Switch 2848, revision I.10.43, ROM I.08.0...
  PortDescr    : 39                                                          

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

  Remote Management Address
     Type    : ipv4
     Address : 192.168.111.9
  ChassisType  : local               
  ChassisId    : wae00001                 
  PortType     : local  
  PortId       : InlinePort1/0/lan        
  SysName      :                               
  System Descr : Cisco Wide Area Application Services Software               
  PortDescr    :                                                             

  System Capabilities Supported  : 
  System Capabilities Enabled    : 

  Remote Management Address
     Type    : ipv4
     Address : 0.0.0.0

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