# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## Force10.FTOS.get_lldp_neighbors test
## Auto-generated by manage.py debug-script at 2010-09-24 17:00:14
##----------------------------------------------------------------------
## Copyright (C) 2007-2010 The NOC Project
## See LICENSE for details
##----------------------------------------------------------------------
from noc.lib.test import ScriptTestCase
class Force10_FTOS_get_lldp_neighbors_Test(ScriptTestCase):
    script="Force10.FTOS.get_lldp_neighbors"
    vendor="Force10"
    platform='C300'
    version='8.3.1.1'
    input={}
    result=[{'local_interface': 'Gi 2/36',
  'neighbors': [{'remote_capabilities': 4,
                 'remote_chassis_id': '00:24:81:D9:BC:21',
                 'remote_chassis_id_subtype': 4,
                 'remote_port': '19',
                 'remote_port_subtype': 7,
                 'remote_system_name': 'switch2'}]},
 {'local_interface': 'Gi 2/37',
  'neighbors': [{'remote_capabilities': 4,
                 'remote_chassis_id': '00:24:81:D9:BC:21',
                 'remote_chassis_id_subtype': 4,
                 'remote_port': '20',
                 'remote_port_subtype': 7,
                 'remote_system_name': 'switch2'}]},
 {'local_interface': 'Gi 2/38',
  'neighbors': [{'remote_capabilities': 4,
                 'remote_chassis_id': '00:24:81:D9:2D:E1',
                 'remote_chassis_id_subtype': 4,
                 'remote_port': '19',
                 'remote_port_subtype': 7,
                 'remote_system_name': 'switch3'}]},
 {'local_interface': 'Gi 2/39',
  'neighbors': [{'remote_capabilities': 4,
                 'remote_chassis_id': '00:24:81:D9:2D:E1',
                 'remote_chassis_id_subtype': 4,
                 'remote_port': '20',
                 'remote_port_subtype': 7,
                 'remote_system_name': 'switch3'}]},
 {'local_interface': 'Gi 2/40',
  'neighbors': [{'remote_capabilities': 4,
                 'remote_chassis_id': '00:24:81:D9:BC:21',
                 'remote_chassis_id_subtype': 4,
                 'remote_port': '17',
                 'remote_port_subtype': 7,
                 'remote_system_name': 'switch2'}]},
 {'local_interface': 'Gi 2/41',
  'neighbors': [{'remote_capabilities': 4,
                 'remote_chassis_id': '00:24:81:D9:BC:21',
                 'remote_chassis_id_subtype': 4,
                 'remote_port': '18',
                 'remote_port_subtype': 7,
                 'remote_system_name': 'switch2'}]},
 {'local_interface': 'Gi 2/42',
  'neighbors': [{'remote_capabilities': 4,
                 'remote_chassis_id': '00:24:81:D9:2D:E1',
                 'remote_chassis_id_subtype': 4,
                 'remote_port': '17',
                 'remote_port_subtype': 7,
                 'remote_system_name': 'switch3'}]},
 {'local_interface': 'Gi 2/43',
  'neighbors': [{'remote_capabilities': 4,
                 'remote_chassis_id': '00:24:81:D9:2D:E1',
                 'remote_chassis_id_subtype': 4,
                 'remote_port': '18',
                 'remote_port_subtype': 7,
                 'remote_system_name': 'switch3'}]},
 {'local_interface': 'Te 6/0',
  'neighbors': [{'remote_capabilities': 22,
                 'remote_chassis_id': '00:01:E8:6D:1C:5C',
                 'remote_chassis_id_subtype': 4,
                 'remote_port': 'TenGigabitEthernet 1/8',
                 'remote_port_subtype': 5,
                 'remote_system_name': 'switch1'}]},
 {'local_interface': 'Te 7/0',
  'neighbors': [{'remote_capabilities': 22,
                 'remote_chassis_id': '00:01:E8:6D:1C:5C',
                 'remote_chassis_id_subtype': 4,
                 'remote_port': 'TenGigabitEthernet 2/8',
                 'remote_port_subtype': 5,
                 'remote_system_name': 'switch1'}]}]
    motd=' \n'
    cli={
## 'show lldp neighbors detail'
'show lldp neighbors detail': """show lldp neighbors detail
========================================================================
 Local Interface Gi 2/36 has 1 neighbor 
  Total Frames Out: 377001 
  Total Frames In: 388738 
  Total Neighbor information Age outs: 0 
  Total Frames Discarded: 0 
  Total In Error Frames: 0 
  Total Unrecognized TLVs: 777476 
  Total TLVs Discarded: 0 
  Next packet will be sent after 22 seconds
  The neighbors are given below:
  -----------------------------------------------------------------------
 
    Remote Chassis ID Subtype: Mac address (4)
    Remote Chassis ID:  00:24:81:d9:bc:21
    Remote Port Subtype:  Locally assigned (7)
    Remote Port ID:  19
    Local Port ID: GigabitEthernet 2/36
    Locally assigned remote Neighbor Index: 1
    Remote TTL:  120
    Information valid for next 103 seconds 
    Time since last information change of this neighbor:  19w1d23h
    Remote System Name:  switch2
    Remote System Desc:  ProCurve 498358-B21 6120G/XG Blade Switch, revision 
     Z.14.08, ROM Z.14.06 (/sw/code/build/vern(t4br))
    Existing System Capabilities:  Bridge
    Enabled System Capabilities:  Bridge
    MAC PHY Configuration:
      Auto-neg supported: 1
      Auto-neg enabled: 1
      Auto-neg advertised capabilities:
        1000BASE-T full duplex mode,
        100BASE-TX full duplex mode,
        100BASE-TX half duplex mode,
        10BASE-T  full duplex mode,
        10BASE-T  half duplex mode
      Operational MAU type:
        1000BaseTFD: Four-pair Category 5 UTP, full duplex mode
   ---------------------------------------------------------------------------
 
========================================================================
 Local Interface Gi 2/37 has 1 neighbor 
  Total Frames Out: 376998 
  Total Frames In: 388738 
  Total Neighbor information Age outs: 0 
  Total Frames Discarded: 0 
  Total In Error Frames: 0 
  Total Unrecognized TLVs: 777476 
  Total TLVs Discarded: 0 
  Next packet will be sent after 2 seconds
  The neighbors are given below:
  -----------------------------------------------------------------------
 
    Remote Chassis ID Subtype: Mac address (4)
    Remote Chassis ID:  00:24:81:d9:bc:21
    Remote Port Subtype:  Locally assigned (7)
    Remote Port ID:  20
    Local Port ID: GigabitEthernet 2/37
    Locally assigned remote Neighbor Index: 1
    Remote TTL:  120
    Information valid for next 113 seconds 
    Time since last information change of this neighbor:  19w1d23h
    Remote System Name:  switch2
    Remote System Desc:  ProCurve 498358-B21 6120G/XG Blade Switch, revision 
     Z.14.08, ROM Z.14.06 (/sw/code/build/vern(t4br))
    Existing System Capabilities:  Bridge
    Enabled System Capabilities:  Bridge
    MAC PHY Configuration:
      Auto-neg supported: 1
      Auto-neg enabled: 1
      Auto-neg advertised capabilities:
        1000BASE-T full duplex mode,
        100BASE-TX full duplex mode,
        100BASE-TX half duplex mode,
        10BASE-T  full duplex mode,
        10BASE-T  half duplex mode
      Operational MAU type:
        1000BaseTFD: Four-pair Category 5 UTP, full duplex mode
   ---------------------------------------------------------------------------
 
========================================================================
 Local Interface Gi 2/38 has 1 neighbor 
  Total Frames Out: 376988 
  Total Frames In: 388716 
  Total Neighbor information Age outs: 0 
  Total Frames Discarded: 0 
  Total In Error Frames: 0 
  Total Unrecognized TLVs: 777432 
  Total TLVs Discarded: 0 
  Next packet will be sent after 19 seconds
  The neighbors are given below:
  -----------------------------------------------------------------------
 
    Remote Chassis ID Subtype: Mac address (4)
    Remote Chassis ID:  00:24:81:d9:2d:e1
    Remote Port Subtype:  Locally assigned (7)
    Remote Port ID:  19
    Local Port ID: GigabitEthernet 2/38
    Locally assigned remote Neighbor Index: 1
    Remote TTL:  120
    Information valid for next 94 seconds 
    Time since last information change of this neighbor:  19w1d23h
    Remote System Name:  switch3
    Remote System Desc:  ProCurve 498358-B21 6120G/XG Blade Switch, revision 
     Z.14.08, ROM Z.14.06 (/sw/code/build/vern(t4br))
    Existing System Capabilities:  Bridge
    Enabled System Capabilities:  Bridge
    MAC PHY Configuration:
      Auto-neg supported: 1
      Auto-neg enabled: 1
      Auto-neg advertised capabilities:
        1000BASE-T full duplex mode,
        100BASE-TX full duplex mode,
        100BASE-TX half duplex mode,
        10BASE-T  full duplex mode,
        10BASE-T  half duplex mode
      Operational MAU type:
        1000BaseTFD: Four-pair Category 5 UTP, full duplex mode
   ---------------------------------------------------------------------------
 
========================================================================
 Local Interface Gi 2/39 has 1 neighbor 
  Total Frames Out: 376986 
  Total Frames In: 388716 
  Total Neighbor information Age outs: 0 
  Total Frames Discarded: 0 
  Total In Error Frames: 0 
  Total Unrecognized TLVs: 777432 
  Total TLVs Discarded: 0 
  Next packet will be sent after 20 seconds
  The neighbors are given below:
  -----------------------------------------------------------------------
 
    Remote Chassis ID Subtype: Mac address (4)
    Remote Chassis ID:  00:24:81:d9:2d:e1
    Remote Port Subtype:  Locally assigned (7)
    Remote Port ID:  20
    Local Port ID: GigabitEthernet 2/39
    Locally assigned remote Neighbor Index: 1
    Remote TTL:  120
    Information valid for next 94 seconds 
    Time since last information change of this neighbor:  19w1d23h
    Remote System Name:  switch3
    Remote System Desc:  ProCurve 498358-B21 6120G/XG Blade Switch, revision 
     Z.14.08, ROM Z.14.06 (/sw/code/build/vern(t4br))
    Existing System Capabilities:  Bridge
    Enabled System Capabilities:  Bridge
    MAC PHY Configuration:
      Auto-neg supported: 1
      Auto-neg enabled: 1
      Auto-neg advertised capabilities:
        1000BASE-T full duplex mode,
        100BASE-TX full duplex mode,
        100BASE-TX half duplex mode,
        10BASE-T  full duplex mode,
        10BASE-T  half duplex mode
      Operational MAU type:
        1000BaseTFD: Four-pair Category 5 UTP, full duplex mode
   ---------------------------------------------------------------------------
 
========================================================================
 Local Interface Gi 2/40 has 1 neighbor 
  Total Frames Out: 394030 
  Total Frames In: 406519 
  Total Neighbor information Age outs: 0 
  Total Frames Discarded: 0 
  Total In Error Frames: 0 
  Total Unrecognized TLVs: 813038 
  Total TLVs Discarded: 0 
  Next packet will be sent after 20 seconds
  The neighbors are given below:
  -----------------------------------------------------------------------
 
    Remote Chassis ID Subtype: Mac address (4)
    Remote Chassis ID:  00:24:81:d9:bc:21
    Remote Port Subtype:  Locally assigned (7)
    Remote Port ID:  17
    Local Port ID: GigabitEthernet 2/40
    Locally assigned remote Neighbor Index: 1
    Remote TTL:  120
    Information valid for next 97 seconds 
    Time since last information change of this neighbor:  20w1d3h
    Remote System Name:  switch2
    Remote System Desc:  ProCurve 498358-B21 6120G/XG Blade Switch, revision 
     Z.14.08, ROM Z.14.06 (/sw/code/build/vern(t4br))
    Existing System Capabilities:  Bridge
    Enabled System Capabilities:  Bridge
    MAC PHY Configuration:
      Auto-neg supported: 1
      Auto-neg enabled: 1
      Auto-neg advertised capabilities:
        1000BASE-T full duplex mode,
        100BASE-TX full duplex mode,
        100BASE-TX half duplex mode,
        10BASE-T  full duplex mode,
        10BASE-T  half duplex mode
      Operational MAU type:
        1000BaseTFD: Four-pair Category 5 UTP, full duplex mode
   ---------------------------------------------------------------------------
 
========================================================================
 Local Interface Gi 2/41 has 1 neighbor 
  Total Frames Out: 394030 
  Total Frames In: 406519 
  Total Neighbor information Age outs: 0 
  Total Frames Discarded: 0 
  Total In Error Frames: 0 
  Total Unrecognized TLVs: 813038 
  Total TLVs Discarded: 0 
  Next packet will be sent after 28 seconds
  The neighbors are given below:
  -----------------------------------------------------------------------
 
    Remote Chassis ID Subtype: Mac address (4)
    Remote Chassis ID:  00:24:81:d9:bc:21
    Remote Port Subtype:  Locally assigned (7)
    Remote Port ID:  18
    Local Port ID: GigabitEthernet 2/41
    Locally assigned remote Neighbor Index: 1
    Remote TTL:  120
    Information valid for next 105 seconds 
    Time since last information change of this neighbor:  20w1d3h
    Remote System Name:  switch2
    Remote System Desc:  ProCurve 498358-B21 6120G/XG Blade Switch, revision 
     Z.14.08, ROM Z.14.06 (/sw/code/build/vern(t4br))
    Existing System Capabilities:  Bridge
    Enabled System Capabilities:  Bridge
    MAC PHY Configuration:
      Auto-neg supported: 1
      Auto-neg enabled: 1
      Auto-neg advertised capabilities:
        1000BASE-T full duplex mode,
        100BASE-TX full duplex mode,
        100BASE-TX half duplex mode,
        10BASE-T  full duplex mode,
        10BASE-T  half duplex mode
      Operational MAU type:
        1000BaseTFD: Four-pair Category 5 UTP, full duplex mode
   ---------------------------------------------------------------------------
 
========================================================================
 Local Interface Gi 2/42 has 1 neighbor 
  Total Frames Out: 394029 
  Total Frames In: 406504 
  Total Neighbor information Age outs: 0 
  Total Frames Discarded: 0 
  Total In Error Frames: 0 
  Total Unrecognized TLVs: 813008 
  Total TLVs Discarded: 0 
  Next packet will be sent after 8 seconds
  The neighbors are given below:
  -----------------------------------------------------------------------
 
    Remote Chassis ID Subtype: Mac address (4)
    Remote Chassis ID:  00:24:81:d9:2d:e1
    Remote Port Subtype:  Locally assigned (7)
    Remote Port ID:  17
    Local Port ID: GigabitEthernet 2/42
    Locally assigned remote Neighbor Index: 1
    Remote TTL:  120
    Information valid for next 111 seconds 
    Time since last information change of this neighbor:  19w1d23h
    Remote System Name:  switch3
    Remote System Desc:  ProCurve 498358-B21 6120G/XG Blade Switch, revision 
     Z.14.08, ROM Z.14.06 (/sw/code/build/vern(t4br))
    Existing System Capabilities:  Bridge
    Enabled System Capabilities:  Bridge
    MAC PHY Configuration:
      Auto-neg supported: 1
      Auto-neg enabled: 1
      Auto-neg advertised capabilities:
        1000BASE-T full duplex mode,
        100BASE-TX full duplex mode,
        100BASE-TX half duplex mode,
        10BASE-T  full duplex mode,
        10BASE-T  half duplex mode
      Operational MAU type:
        1000BaseTFD: Four-pair Category 5 UTP, full duplex mode
   ---------------------------------------------------------------------------
 
========================================================================
 Local Interface Gi 2/43 has 1 neighbor 
  Total Frames Out: 394029 
  Total Frames In: 406503 
  Total Neighbor information Age outs: 0 
  Total Frames Discarded: 0 
  Total In Error Frames: 0 
  Total Unrecognized TLVs: 813006 
  Total TLVs Discarded: 0 
  Next packet will be sent after 21 seconds
  The neighbors are given below:
  -----------------------------------------------------------------------
 
    Remote Chassis ID Subtype: Mac address (4)
    Remote Chassis ID:  00:24:81:d9:2d:e1
    Remote Port Subtype:  Locally assigned (7)
    Remote Port ID:  18
    Local Port ID: GigabitEthernet 2/43
    Locally assigned remote Neighbor Index: 1
    Remote TTL:  120
    Information valid for next 111 seconds 
    Time since last information change of this neighbor:  19w1d23h
    Remote System Name:  switch3
    Remote System Desc:  ProCurve 498358-B21 6120G/XG Blade Switch, revision 
     Z.14.08, ROM Z.14.06 (/sw/code/build/vern(t4br))
    Existing System Capabilities:  Bridge
    Enabled System Capabilities:  Bridge
    MAC PHY Configuration:
      Auto-neg supported: 1
      Auto-neg enabled: 1
      Auto-neg advertised capabilities:
        1000BASE-T full duplex mode,
        100BASE-TX full duplex mode,
        100BASE-TX half duplex mode,
        10BASE-T  full duplex mode,
        10BASE-T  half duplex mode
      Operational MAU type:
        1000BaseTFD: Four-pair Category 5 UTP, full duplex mode
   ---------------------------------------------------------------------------
 
========================================================================
 Local Interface Te 6/0 has 1 neighbor 
  Total Frames Out: 388177 
  Total Frames In: 384911 
  Total Neighbor information Age outs: 29 
  Total Frames Discarded: 0 
  Total In Error Frames: 0 
  Total Unrecognized TLVs: 0 
  Total TLVs Discarded: 0 
  Next packet will be sent after 28 seconds
  The neighbors are given below:
  -----------------------------------------------------------------------
 
    Remote Chassis ID Subtype: Mac address (4)
    Remote Chassis ID:  00:01:e8:6d:1c:5c
    Remote Port Subtype:  Interface name (5)
    Remote Port ID:  TenGigabitEthernet 1/8
    Local Port ID: TenGigabitEthernet 6/0
    Locally assigned remote Neighbor Index: 30
    Remote TTL:  120
    Information valid for next 118 seconds 
    Time since last information change of this neighbor:  15:43:37
    Remote System Name:  switch1
    Remote System Desc:  Force10 Networks Real Time Operating System Software
     . Force10 Operating System Version: 1.0. Force10 App
     lication Software Version: 8.3.1.3d. Copyright (c) 1
     999-2010 by Force10 Networks, Inc. Build Time: Mon A
     ug 9 12:57:45 PDT 2010
    Existing System Capabilities:  Repeater Bridge Router
    Enabled System Capabilities:  Repeater Bridge Router
   ---------------------------------------------------------------------------
 
========================================================================
 Local Interface Te 7/0 has 1 neighbor 
  Total Frames Out: 399622 
  Total Frames In: 396195 
  Total Neighbor information Age outs: 11 
  Total Frames Discarded: 0 
  Total In Error Frames: 0 
  Total Unrecognized TLVs: 0 
  Total TLVs Discarded: 0 
  Next packet will be sent after 3 seconds
  The neighbors are given below:
  -----------------------------------------------------------------------
 
    Remote Chassis ID Subtype: Mac address (4)
    Remote Chassis ID:  00:01:e8:6d:1c:5c
    Remote Port Subtype:  Interface name (5)
    Remote Port ID:  TenGigabitEthernet 2/8
    Local Port ID: TenGigabitEthernet 7/0
    Locally assigned remote Neighbor Index: 12
    Remote TTL:  120
    Information valid for next 111 seconds 
    Time since last information change of this neighbor:  5d0h55m
    Remote System Name:  switch1
    Remote System Desc:  Force10 Networks Real Time Operating System Software
     . Force10 Operating System Version: 1.0. Force10 App
     lication Software Version: 8.3.1.3d. Copyright (c) 1
     999-2010 by Force10 Networks, Inc. Build Time: Mon A
     ug 9 12:57:45 PDT 2010
    Existing System Capabilities:  Repeater Bridge Router
    Enabled System Capabilities:  Repeater Bridge Router
   ---------------------------------------------------------------------------
 """,
'terminal length 0':  'terminal length 0\n',
}
    snmp_get={}
    snmp_getnext={}
