# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## Cisco.IOS.get_lldp_neighbors test
## Auto-generated by manage.py debug-script at 2010-09-24 12:40:22
##----------------------------------------------------------------------
## Copyright (C) 2007-2010 The NOC Project
## See LICENSE for details
##----------------------------------------------------------------------
from noc.lib.test import ScriptTestCase
class Cisco_IOS_get_lldp_neighbors_Test(ScriptTestCase):
    script="Cisco.IOS.get_lldp_neighbors"
    vendor="Cisco"
    platform='CBS31X0'
    version='12.2(50)SE3'
    input={}
    result=[{'local_interface': 'Te 1/0/1',
  'neighbors': [{'remote_capabilities': 22,
                 'remote_chassis_id': '00:01:E8:6D:1C:5C',
                 'remote_chassis_id_subtype': 4,
                 'remote_port': 'TenGigabitEthernet 3/4',
                 'remote_port_subtype': 5,
                 'remote_system_name': 'Router2'}]},
 {'local_interface': 'Te 2/0/1',
  'neighbors': [{'remote_capabilities': 22,
                 'remote_chassis_id': '00:01:E8:6D:1C:5C',
                 'remote_chassis_id_subtype': 4,
                 'remote_port': 'TenGigabitEthernet 4/4',
                 'remote_port_subtype': 5,
                 'remote_system_name': 'Router2'}]}]
    motd=' \nC\nThe system is a property of Innova Distribution LLC.\nPlease disconnect immediately if you are not authorized staff\n\n'
    cli={
## 'show lldp neighbors Te2/0/1 detail'
'show lldp neighbors Te2/0/1 detail': """show lldp neighbors Te2/0/1 detail
------------------------------------------------
Chassis id: 0001.e86d.1c5c
Port id: TenGigabitEthernet 4/4
Port Description - not advertised
System Name: Router2

System Description: 
Force10 Networks Real Time Operating System Software. Force10 Operating System Version: 1.0. Force10 Application Software Version: 8.3.1.3d. Copyright (c) 1999-2010 by Force10 Networks, Inc. Build Time: Mon Aug 9 12:57:45 PDT 2010

Time remaining: 119 seconds
System Capabilities: P,B,R
Enabled Capabilities: P,B,R
Management Addresses - not advertised
Auto Negotiation - not supported
Physical media capabilities - not advertised
Media Attachment Unit type - not advertised
Vlan ID: - not advertised


Total entries displayed: 1
""",
## 'show lldp neighbors'
'show lldp neighbors': """show lldp neighbors
Capability codes:
    (R) Router, (B) Bridge, (T) Telephone, (C) DOCSIS Cable Device
    (W) WLAN Access Point, (P) Repeater, (S) Station, (O) Other

Device ID           Local Intf     Hold-time  Capability      Port ID
Router2             Te1/0/1        120        P,B,R           TenGigabitEthernet 3/4
Router2             Te2/0/1        120        P,B,R           TenGigabitEthernet 4/4

Total entries displayed: 2
""",
## 'show lldp neighbors Te1/0/1 detail'
'show lldp neighbors Te1/0/1 detail': """show lldp neighbors Te1/0/1 detail
------------------------------------------------
Chassis id: 0001.e86d.1c5c
Port id: TenGigabitEthernet 3/4
Port Description - not advertised
System Name: Router2

System Description: 
Force10 Networks Real Time Operating System Software. Force10 Operating System Version: 1.0. Force10 Application Software Version: 8.3.1.3d. Copyright (c) 1999-2010 by Force10 Networks, Inc. Build Time: Mon Aug 9 12:57:45 PDT 2010

Time remaining: 90 seconds
System Capabilities: P,B,R
Enabled Capabilities: P,B,R
Management Addresses - not advertised
Auto Negotiation - not supported
Physical media capabilities - not advertised
Media Attachment Unit type - not advertised
Vlan ID: - not advertised


Total entries displayed: 1
""",
'terminal length 0':  'terminal length 0\n',
}
    snmp_get={}
    snmp_getnext={}
