# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## Juniper.JUNOS.get_lldp_neighbors test
## Auto-generated by manage.py debug-script at 2010-11-30 20:22:46
##----------------------------------------------------------------------
## Copyright (C) 2007-2010 The NOC Project
## See LICENSE for details
##----------------------------------------------------------------------
from noc.lib.test import ScriptTestCase
class Juniper_JUNOS_get_lldp_neighbors_Test(ScriptTestCase):
    script="Juniper.JUNOS.get_lldp_neighbors"
    vendor="Juniper"
    platform='ex4200-24f'
    version='10.0R4.7'
    input={}
    result=[{'local_interface': 'ge-0/0/16.0',
  'local_interface_id': 195,
  'neighbors': [{'remote_capabilities': 4,
                 'remote_chassis_id': '00:12:CF:88:0D:E0',
                 'remote_chassis_id_subtype': 4,
                 'remote_port': '00:12:CF:88:0D:FA',
                 'remote_port_subtype': 3,
                 'remote_system_name': 'sw-stek00000'}]},
 {'local_interface': 'ge-0/0/8.0',
  'local_interface_id': 177,
  'neighbors': [{'remote_capabilities': 4,
                 'remote_chassis_id': '00:12:CF:C8:10:80',
                 'remote_chassis_id_subtype': 4,
                 'remote_port': '00:12:CF:C8:10:9A',
                 'remote_port_subtype': 3,
                 'remote_system_name': 'sw-avto000000000000'}]},
 {'local_interface': 'ge-0/0/9.0',
  'local_interface_id': 183,
  'neighbors': [{'remote_capabilities': 4,
                 'remote_chassis_id': '00:12:CF:C8:14:20',
                 'remote_chassis_id_subtype': 4,
                 'remote_port': '00:12:CF:C8:14:3A',
                 'remote_port_subtype': 3,
                 'remote_system_name': 'sw-avto000000000001'}]},
 {'local_interface': 'ge-0/0/10.0',
  'local_interface_id': 179,
  'neighbors': [{'remote_capabilities': 4,
                 'remote_chassis_id': '00:12:CF:F2:6C:C0',
                 'remote_chassis_id_subtype': 4,
                 'remote_port': '00:12:CF:F2:6C:D9',
                 'remote_port_subtype': 3,
                 'remote_system_name': 'sw-avto0000000000003'}]},
 {'local_interface': 'ge-0/0/15.0',
  'local_interface_id': 193,
  'neighbors': [{'remote_capabilities': 4,
                 'remote_chassis_id': '00:12:CF:F8:2D:E0',
                 'remote_chassis_id_subtype': 4,
                 'remote_port': '00:12:CF:F8:2D:F9',
                 'remote_port_subtype': 3,
                 'remote_system_name': 'sw-nap0000001'}]}]
    motd=' \n\n--- JUNOS 10.0R4.7 built 2010-08-22 02:54:43 UTC\n{master:0}\n'
    cli={
## 'show lldp neighbors interface ge-0/0/9.0'
'show lldp neighbors interface ge-0/0/9.0': """ show lldp neighbors interface ge-0/0/9.0 
LLDP Neighbor Information:
Local Information:
Index: 4 Time to live: 120 Time mark: Tue Nov 30 17:22:27 2010 Age: 11 secs 
Local Interface    : ge-0/0/9.0
Local Port ID      : 183

Neighbour Information:
Chassis type       : Mac address
Chassis ID         : 00:12:cf:c8:14:20
Port type          : Mac address
Port ID            : 00:12:cf:c8:14:3a
Port description   : Ethernet Port on unit 1, port 26
System name        : sw-avto000000000001
  
System Description : Layer2+ Fast Ethernet Standalone Switch ES3526XA

System capabilities 
        Supported: Bridge 
        Enabled  : Bridge 

Management Info 
        Type     : IPv4
        Address  : 172.17.1.3
        Port ID           : 1900
        Subtype           : 1
        Interface Subtype : 2
        OID               : 1.3.6.1.2.1.31.1.1.1.1.1900

Organization Info
       OUI      : 0.128.194
       Subtype  : 1
       Index    : 1
       Info     : 0001 

Organization Info
       OUI      : 0.128.194
       Subtype  : 2
       Index    : 2
       Info     : 020FFD 

Organization Info
       OUI      : 0.128.194
       Subtype  : 3
       Index    : 3
       Info     : 00010B44656661756C74566C616E 

Organization Info
       OUI      : 0.128.194
       Subtype  : 3
       Index    : 4
       Info     : 0066087365673132382D31 

Organization Info
       OUI      : 0.128.194
       Subtype  : 3
       Index    : 5
       Info     : 0384076D31372D312D30 

Organization Info
       OUI      : 0.128.194
       Subtype  : 3
       Index    : 6
       Info     : 0FFD00 

Organization Info
       OUI      : 0.128.194
       Subtype  : 4
       Index    : 7
       Info     : 0288CC 

Organization Info
       OUI      : 0.128.194
       Subtype  : 3
       Index    : 8
       Info     : 0100000000 

Organization Info
       OUI      : 0.128.194
       Subtype  : 4
       Index    : 9
       Info     : 05F2 

{master:0}""",
## 'show lldp local-information'
'show lldp local-information': """ show lldp local-information 

LLDP Local Information details

Chassis ID   : 00:23:9c:06:8e:80
System name  : 4200_Novoizm46_2
System descr : Juniper Networks, Inc. ex4200-24f , version 10.0R4.7 Build date:
               2010-08-22 03:07:33 UTC 

System Capabilities
    Supported       : Bridge Router 
    Enabled         : Bridge Router 

Interface name    Interface ID    Interface description    Status      Tunneling
me0.0             34              -                        Down        Disabled 
ge-0/0/0.0        171             ge-0/0/0.0               Up          Disabled 
ge-0/0/1.0        117             ge-0/0/1.0               Up          Disabled 
ge-0/0/2.0        155             ge-0/0/2.0               Up          Disabled 
ge-0/0/3.0        187             ge-0/0/3.0               Up          Disabled 
ge-0/0/4.0        181             ge-0/0/4.0               Up          Disabled 
ge-0/0/5.0        197             ge-0/0/5.0               Up          Disabled 
ge-0/0/6.0        199             ge-0/0/6.0               Up          Disabled 
ge-0/0/7.0        157             ge-0/0/7.0               Up          Disabled 
ge-0/0/8.0        177             ge-0/0/8.0               Up          Disabled 
ge-0/0/9.0        183             ge-0/0/9.0               Up          Disabled 
ge-0/0/10.0       179             ge-0/0/10.0              Up          Disabled 
ge-0/0/11.0       173             ge-0/0/11.0              Up          Disabled 
ge-0/0/12.0       189             ge-0/0/12.0              Up          Disabled 
ge-0/0/13.0       191             ge-0/0/13.0              Up          Disabled 
ge-0/0/14.0       185             ge-0/0/14.0              Up          Disabled 
ge-0/0/15.0       193             ge-0/0/15.0              Up          Disabled 
ge-0/0/16.0       195             ge-0/0/16.0              Up          Disabled 
ge-0/0/17.0       167             ge-0/0/17.0              Up          Disabled 
ge-0/0/18.0       175             ge-0/0/18.0              Up          Disabled 
ge-0/0/19.0       169             ge-0/0/19.0              Up          Disabled 
ge-0/0/20.0       165             ge-0/0/20.0              Up          Disabled 
ge-0/0/21.0       163             ge-0/0/21.0              Up          Disabled 
ge-0/0/23.0       161             ge-0/0/23.0              Up          Disabled 
xe-0/1/0.0        159             xe-0/1/0.0               Up          Disabled 

{master:0}""",
## 'show version'
'show version': """ show version 
fpc0:
--------------------------------------------------------------------------
Hostname: 4200_Novoizm46_2
Model: ex4200-24f
JUNOS Base OS boot [10.0R4.7]
JUNOS Base OS Software Suite [10.0R4.7]
JUNOS Kernel Software Suite [10.0R4.7]
JUNOS Crypto Software Suite [10.0R4.7]
JUNOS Online Documentation [10.0R4.7]
JUNOS Enterprise Software Suite [10.0R4.7]
JUNOS Packet Forwarding Engine Enterprise Software Suite [10.0R4.7]
JUNOS Routing Software Suite [10.0R4.7]
JUNOS Web Management [10.0R4.7]

{master:0}""",
## 'show lldp neighbors interface ge-0/0/15.0'
'show lldp neighbors interface ge-0/0/15.0': """ show lldp neighbors interface ge-0/0/15.0 
LLDP Neighbor Information:
Local Information:
Index: 1 Time to live: 120 Time mark: Tue Nov 30 17:22:39 2010 Age: 1 secs 
Local Interface    : ge-0/0/15.0
Local Port ID      : 193

Neighbour Information:
Chassis type       : Mac address
Chassis ID         : 00:12:cf:f8:2d:e0
Port type          : Mac address
Port ID            : 00:12:cf:f8:2d:f9
Port description   : Ethernet Port on unit 1, port 25
System name        : sw-nap0000001
  
System Description : Layer2+ Fast Ethernet Standalone Switch ES3526XA

System capabilities 
        Supported: Bridge 
        Enabled  : Bridge 

Management Info 
        Type     : IPv4
        Address  : 172.17.1.25
        Port ID           : 1900
        Subtype           : 1
        Interface Subtype : 2
        OID               : 1.3.6.1.2.1.31.1.1.1.1.1900

Organization Info
       OUI      : 0.128.194
       Subtype  : 1
       Index    : 1
       Info     : 0001 

Organization Info
       OUI      : 0.128.194
       Subtype  : 2
       Index    : 2
       Info     : 020FFD 

Organization Info
       OUI      : 0.128.194
       Subtype  : 3
       Index    : 3
       Info     : 00010B44656661756C74566C616E 

Organization Info
       OUI      : 0.128.194
       Subtype  : 3
       Index    : 4
       Info     : 006F097365673132382D3130 

Organization Info
       OUI      : 0.128.194
       Subtype  : 3
       Index    : 5
       Info     : 0384096D3137322D31372D31 

Organization Info
       OUI      : 0.128.194
       Subtype  : 3
       Index    : 6
       Info     : 0FFD00 

Organization Info
       OUI      : 0.128.194
       Subtype  : 4
       Index    : 7
       Info     : 0288CC 

Organization Info
       OUI      : 0.128.194
       Subtype  : 3
       Index    : 8
       Info     : 0100000000 

Organization Info
       OUI      : 0.128.194
       Subtype  : 4
       Index    : 9
       Info     : 05F2 

{master:0}""",
## 'set cli screen-length 0'
'set cli screen-length 0': """ set cli screen-length 0 
Screen length set to 0

{master:0}""",
## 'show lldp neighbors interface ge-0/0/8.0'
'show lldp neighbors interface ge-0/0/8.0': """ show lldp neighbors interface ge-0/0/8.0 
LLDP Neighbor Information:
Local Information:
Index: 10 Time to live: 120 Time mark: Tue Nov 30 17:22:17 2010 Age: 20 secs 
Local Interface    : ge-0/0/8.0
Local Port ID      : 177

Neighbour Information:
Chassis type       : Mac address
Chassis ID         : 00:12:cf:c8:10:80
Port type          : Mac address
Port ID            : 00:12:cf:c8:10:9a
Port description   : Ethernet Port on unit 1, port 26
System name        : sw-avto000000000000
  
System Description : Layer2+ Fast Ethernet Standalone Switch ES3526XA

System capabilities 
        Supported: Bridge 
        Enabled  : Bridge 

Management Info 
        Type     : IPv4
        Address  : 172.17.1.15
        Port ID           : 1900
        Subtype           : 1
        Interface Subtype : 2
        OID               : 1.3.6.1.2.1.31.1.1.1.1.1900

Organization Info
       OUI      : 0.128.194
       Subtype  : 1
       Index    : 1
       Info     : 0001 

Organization Info
       OUI      : 0.128.194
       Subtype  : 2
       Index    : 2
       Info     : 020FFD 

Organization Info
       OUI      : 0.128.194
       Subtype  : 3
       Index    : 3
       Info     : 00010B44656661756C74566C616E 

Organization Info
       OUI      : 0.128.194
       Subtype  : 3
       Index    : 4
       Info     : 0065087365673132382D30 

Organization Info
       OUI      : 0.128.194
       Subtype  : 3
       Index    : 5
       Info     : 0384076D31372D312D30 

Organization Info
       OUI      : 0.128.194
       Subtype  : 3
       Index    : 6
       Info     : 0FFD00 

Organization Info
       OUI      : 0.128.194
       Subtype  : 4
       Index    : 7
       Info     : 0288CC 

Organization Info
       OUI      : 0.128.194
       Subtype  : 3
       Index    : 8
       Info     : 0100000000 

Organization Info
       OUI      : 0.128.194
       Subtype  : 4
       Index    : 9
       Info     : 05F2 

{master:0}""",
## 'show lldp neighbors'
'show lldp neighbors': """ show lldp neighbors 
LocalInterface Chassis Id        Port info     System Name
ge-0/0/16.0    00:12:cf:88:0d:e0  Ethernet Port on unit 1, port 26 sw-stek00000 
ge-0/0/8.0     00:12:cf:c8:10:80  Ethernet Port on unit 1, port 26 sw-avto000000000000 
ge-0/0/9.0     00:12:cf:c8:14:20  Ethernet Port on unit 1, port 26 sw-avto000000000001 
ge-0/0/10.0    00:12:cf:f2:6c:c0  Ethernet Port on unit 1, port 25 sw-avto0000000000003 
ge-0/0/15.0    00:12:cf:f8:2d:e0  Ethernet Port on unit 1, port 25 sw-nap0000001 

{master:0}""",
## 'show lldp neighbors interface ge-0/0/10.0'
'show lldp neighbors interface ge-0/0/10.0': """ show lldp neighbors interface ge-0/0/10.0 
LLDP Neighbor Information:
Local Information:
Index: 2 Time to live: 120 Time mark: Tue Nov 30 17:22:25 2010 Age: 14 secs 
Local Interface    : ge-0/0/10.0
Local Port ID      : 179

Neighbour Information:
Chassis type       : Mac address
Chassis ID         : 00:12:cf:f2:6c:c0
Port type          : Mac address
Port ID            : 00:12:cf:f2:6c:d9
Port description   : Ethernet Port on unit 1, port 25
System name        : sw-avto0000000000003
  
System Description : Layer2+ Fast Ethernet Standalone Switch ES3526XA

System capabilities 
        Supported: Bridge 
        Enabled  : Bridge 

Management Info 
        Type     : IPv4
        Address  : 172.17.1.8
        Port ID           : 1900
        Subtype           : 1
        Interface Subtype : 2
        OID               : 1.3.6.1.2.1.31.1.1.1.1.1900

Organization Info
       OUI      : 0.128.194
       Subtype  : 1
       Index    : 1
       Info     : 0001 

Organization Info
       OUI      : 0.128.194
       Subtype  : 2
       Index    : 2
       Info     : 020FFD 

Organization Info
       OUI      : 0.128.194
       Subtype  : 3
       Index    : 3
       Info     : 00010B44656661756C74566C616E 

Organization Info
       OUI      : 0.128.194
       Subtype  : 3
       Index    : 4
       Info     : 006B087365673132382D36 

Organization Info
       OUI      : 0.128.194
       Subtype  : 3
       Index    : 5
       Info     : 03840B6D3137322D31372D312D30 

Organization Info
       OUI      : 0.128.194
       Subtype  : 3
       Index    : 6
       Info     : 0FFD00 

Organization Info
       OUI      : 0.128.194
       Subtype  : 4
       Index    : 7
       Info     : 0288CC 

Organization Info
       OUI      : 0.128.194
       Subtype  : 3
       Index    : 8
       Info     : 0100000000 

Organization Info
       OUI      : 0.128.194
       Subtype  : 4
       Index    : 9
       Info     : 05F2 

{master:0}""",
## 'show lldp neighbors interface ge-0/0/16.0'
'show lldp neighbors interface ge-0/0/16.0': """ show lldp neighbors interface ge-0/0/16.0 
LLDP Neighbor Information:
Local Information:
Index: 5 Time to live: 120 Time mark: Tue Nov 30 17:22:33 2010 Age: 3 secs 
Local Interface    : ge-0/0/16.0
Local Port ID      : 195

Neighbour Information:
Chassis type       : Mac address
Chassis ID         : 00:12:cf:88:0d:e0
Port type          : Mac address
Port ID            : 00:12:cf:88:0d:fa
Port description   : Ethernet Port on unit 1, port 26
System name        : sw-stek00000
  
System Description : Layer2+ Fast Ethernet Standalone Switch ES3526XA

System capabilities 
        Supported: Bridge 
        Enabled  : Bridge 

Management Info 
        Type     : IPv4
        Address  : 172.17.1.13
        Port ID           : 1900
        Subtype           : 1
        Interface Subtype : 2
        OID               : 1.3.6.1.2.1.31.1.1.1.1.1900

Organization Info
       OUI      : 0.128.194
       Subtype  : 1
       Index    : 1
       Info     : 0001 

Organization Info
       OUI      : 0.128.194
       Subtype  : 2
       Index    : 2
       Info     : 020FFD 

Organization Info
       OUI      : 0.128.194
       Subtype  : 3
       Index    : 3
       Info     : 00010B44656661756C74566C616E 

Organization Info
       OUI      : 0.128.194
       Subtype  : 3
       Index    : 4
       Info     : 0070097365673132382D3131 

Organization Info
       OUI      : 0.128.194
       Subtype  : 3
       Index    : 5
       Info     : 03840C6D3137322D31372D312D3133 

Organization Info
       OUI      : 0.128.194
       Subtype  : 3
       Index    : 6
       Info     : 0FFD00 

Organization Info
       OUI      : 0.128.194
       Subtype  : 4
       Index    : 7
       Info     : 0288CC 

Organization Info
       OUI      : 0.128.194
       Subtype  : 3
       Index    : 8
       Info     : 0100000000 

Organization Info
       OUI      : 0.128.194
       Subtype  : 4
       Index    : 9
       Info     : 05F2 

{master:0}""",
}
    snmp_get={}
    snmp_getnext={}
