# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## Juniper.JUNOS.get_lldp_neighbors test
## Auto-generated by manage.py debug-script at 2010-11-30 20:24:42
##----------------------------------------------------------------------
## 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='ex3200-24t'
    version='10.0S1.1'
    input={}
    result=[{'local_interface': 'ge-0/0/1.0',
  'local_interface_id': 166,
  'neighbors': [{'remote_capabilities': 20,
                 'remote_chassis_id': '00:07:0E:07:FB:84',
                 'remote_chassis_id_subtype': 4,
                 'remote_port': 'GigabitEthernet1/0/4',
                 'remote_port_subtype': 5,
                 'remote_system_name': 'r01-00.example.com'}]}]
    motd=' \n\n--- JUNOS 10.0S1.1 built 2010-01-08 06:28:28 UTC\n'
    cli={
'set cli screen-length 0':  ' set cli screen-length 0 \nScreen length set to 0\n\n',
## 'show lldp local-information'
'show lldp local-information': """ show lldp local-information 

LLDP Local Information details

Chassis ID   : 00:26:88:70:90:00
System name  : ex3200_Suvorovskij2b
System descr : Juniper Networks, Inc. ex3200-24t , version 10.0S1.1 Build date:
               2010-01-08 06:46:50 UTC 

System Capabilities
    Supported       : Bridge Router 
    Enabled         : Bridge Router 

Interface name    Interface ID    Interface description    Status      Tunneling
ge-0/0/1.0        166             ge-0/0/1.0               Up          Disabled 
ge-0/0/2.0        168             ge-0/0/2.0               Up          Disabled 
ge-0/0/3.0        117             ge-0/0/3.0               Up          Disabled 
ge-0/0/4.0        119             -                        Down        Disabled 
ge-0/0/5.0        121             ge-0/0/5.0               Up          Disabled 
ge-0/0/6.0        123             -                        Down        Disabled 
ge-0/0/7.0        125             -                        Down        Disabled 
ge-0/0/8.0        127             -                        Down        Disabled 
ge-0/0/9.0        129             -                        Down        Disabled 
ge-0/0/10.0       131             -                        Down        Disabled 
ge-0/0/0.0        164             ge-0/0/0.0               Up          Disabled 
ge-0/0/11.0       133             -                        Down        Disabled 
ge-0/0/12.0       135             -                        Down        Disabled 
ge-0/0/13.0       137             -                        Down        Disabled 
ge-0/0/14.0       139             -                        Down        Disabled 
ge-0/0/15.0       141             -                        Down        Disabled 
ge-0/0/16.0       143             -                        Down        Disabled 
ge-0/0/17.0       145             -                        Down        Disabled 
ge-0/0/18.0       147             -                        Down        Disabled 
ge-0/0/19.0       149             -                        Down        Disabled 
ge-0/0/20.0       151             -                        Down        Disabled 
ge-0/0/21.0       153             -                        Down        Disabled 
ge-0/0/22.0       155             -                        Down        Disabled 
ge-0/0/23.0       157             -                        Down        Disabled 
""",
## 'show version'
'show version': """ show version 
Hostname: ex3200_Suvorovskij2b
Model: ex3200-24t
JUNOS Base OS boot [10.0S1.1]
JUNOS Base OS Software Suite [10.0S1.1]
JUNOS Kernel Software Suite [10.0S1.1]
JUNOS Crypto Software Suite [10.0S1.1]
JUNOS Online Documentation [10.0S1.1]
JUNOS Enterprise Software Suite [10.0S1.1]
JUNOS Packet Forwarding Engine Enterprise Software Suite [10.0S1.1]
JUNOS Routing Software Suite [10.0S1.1]
JUNOS Web Management [10.0S1.1]
""",
## 'show lldp neighbors'
'show lldp neighbors': """ show lldp neighbors 
LocalInterface Chassis Id        Port info     System Name
ge-0/0/1.0     00:07:0e:07:fb:84  GigabitEthernet1/0/4 r01-00.example.com 
""",
## 'show lldp neighbors interface ge-0/0/1.0'
'show lldp neighbors interface ge-0/0/1.0': """ show lldp neighbors interface ge-0/0/1.0 
LLDP Neighbor Information:
Local Information:
Index: 70 Time to live: 120 Time mark: Tue Nov 30 17:24:17 2010 Age: 19 secs 
Local Interface    : ge-0/0/1.0
Local Port ID      : 166

Neighbour Information:
Chassis type       : Mac address
Chassis ID         : 00:07:0e:07:fb:84
Port type          : Interface alias
Port description   : GigabitEthernet1/0/4
System name        : r01-00.example.com
  
System Description : Cisco IOS Software, C3750 Software (C3750-IPSERVICESK9-M), Version 12.2(40)SE, RELEASE SOFTWARE (fc3)
                     Copyright (c) 1986-2007 by Cisco Systems, Inc.
                     Compiled Fri 24-Aug-07 00:53 by myl

System capabilities 
        Supported: Bridge Router 
        Enabled  : Router 

Management Info 
        Type     : IPv4
        Address  : 10.0.34.21
        Port ID           : 4
        Subtype           : 1
        Interface Subtype : 2
        OID               : 1.3.6.1.2.1.31.1.1.1.1.4

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

Organization Info
       OUI      : 0.128.194
       Subtype  : 1
       Index    : 2
       Info     : 0200010000 
""",
}
    snmp_get={}
    snmp_getnext={}
