# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## Huawei.VRP.get_lldp_neighbors test
## Auto-generated by manage.py debug-script at 2011-02-11 13:45:49
##----------------------------------------------------------------------
## Copyright (C) 2007-2011 The NOC Project
## See LICENSE for details
##----------------------------------------------------------------------
from noc.lib.test import ScriptTestCase
class Huawei_VRP_get_lldp_neighbors_Test(ScriptTestCase):
    script="Huawei.VRP.get_lldp_neighbors"
    vendor="Huawei"
    platform='S9306'
    version='5.50'
    input={}
    result=[{'local_interface': 'GigabitEthernet2/0/0',
  'neighbors': [{'remote_capabilities': 0,
                 'remote_chassis_id': '00:12:CF:4D:22:5E',
                 'remote_chassis_id_subtype': 4,
                 'remote_port': 'Ethernet1/1',
                 'remote_port_subtype': 5,
                 'remote_system_name': 'NA'}]},
 {'local_interface': 'GigabitEthernet2/0/1',
  'neighbors': [{'remote_capabilities': 4,
                 'remote_chassis_id': '00:12:CF:96:9A:20',
                 'remote_chassis_id_subtype': 4,
                 'remote_port': '00:12:CF:96:9A:23',
                 'remote_port_subtype': 3,
                 'remote_system_name': 'NA'}]}]
    motd='\nInfo: The max number of VTY users is 10, and the number\n      of current VTY users on line is 2.\n'
    cli={
'screen-length 0 temporary':  'screen-length 0 temporary\nInfo: The configuration takes effect on the current user terminal interface only.\n',
## 'display version'
'display version': """display version
Huawei Versatile Routing Platform Software
VRP (R) software, Version 5.50 (S9300 V100R002C00SPC200)
Copyright (C) 2003-2010 HUAWEI TECH CO., LTD
Quidway S9306 Terabit Routing Switch uptime is 0 week, 3 days, 2 hours, 39 minutes
BKP 0 version information:
1. PCB      Version  : LE01BAKH VER.A
2. If Supporting PoE : No
3. Board Type        : BAKH
4. MPU Slot Quantity : 2
5. LPU Slot Quantity : 6

Slot 7(Slave) : uptime is 0 week, 3 days, 2 hours, 38 minutes
                StartupTime 2011/02/08   16:04:47 
SDRAM Memory Size    :1024    M bytes
Flash Memory Size    :64      M bytes
NVRAM Memory Size    :512     K bytes
CF Card1 Memory Size :488     M bytes
MPU version information : 
1. PCB      Version  :LE02SRUA   VER.B
2. MAB      Version  :0
3. Board    Type     :SRUA      
4. CPLD1    Version  :100
5. BootROM  Version  :102
6. BootLoad Version  :102

Slot 8(Master) : uptime is 0 week, 3 days, 2 hours, 39 minutes
                StartupTime 2011/02/08   16:03:53 
SDRAM Memory Size    :1024    M bytes
Flash Memory Size    :64      M bytes
NVRAM Memory Size    :512     K bytes
CF Card1 Memory Size :497     M bytes
MPU version information : 
1. PCB      Version  :LE02SRUA   VER.B
2. MAB      Version  :0
3. Board    Type     :SRUA      
4. CPLD1    Version  :100
5. BootROM  Version  :106
6. BootLoad Version  :102

Slot 1 : uptime is 0 week, 3 days, 2 hours, 38 minutes
        StartupTime 2011/02/08   16:04:43 
SDRAM Memory Size    :256     M bytes
Flash Memory Size    :16      M bytes
LPU version information :
1. PCB      Version  :LE02X4UX   VER.B
2. MAB      Version  :0
3. Board    Type     :X2UXA     
4. CPLD1    Version  :102
5. BootROM  Version  :102
6. BootLoad Version  :102

Slot 2 : uptime is 0 week, 3 days, 2 hours, 38 minutes
        StartupTime 2011/02/08   16:04:43 
SDRAM Memory Size    :256     M bytes
Flash Memory Size    :16      M bytes
LPU version information :
1. PCB      Version  :LE02G48S   VER.B
2. MAB      Version  :0
3. Board    Type     :G24SD     
4. CPLD1    Version  :102
5. CPLD2    Version  :102
6. BootROM  Version  :256
7. BootLoad Version  :102
Tcam version information :
1. Tcam size         :36      M bytes

Slot CMU1(Master) : uptime is 0 week, 3 days, 2 hours, 38 minutes
                StartupTime 2011/02/08   16:04:33 
CMU version information :
1. PCB      Version  :LE02CMUA   VER.B
2. MAB      Version  :0
3. Board    Type     :CMUA      
""",
## 'display lldp neighbor'
'display lldp neighbor': """display lldp neighbor
GigabitEthernet1/0/0 has 0 neighbors

GigabitEthernet1/0/1 has 0 neighbors

GigabitEthernet2/0/0 has 1 neighbors:


Neighbor index : 1
Chassis type   :macAddress 
Chassis ID     :0012-cf4d-225e 
Port ID type   :interfaceName 
Port ID        :Ethernet1/1                     
Port description    :NA
System name         :NA
System description  :NA
System capabilities supported   :NA
System capabilities enabled     :NA
Expired time   :97s


Port VLAN ID(PVID)  :0
Protocol identity   :     

Auto-negotiation supported    :No 
Auto-negotiation enabled      :No
OperMau   :speed(0)/duplex(Half)

Power port class         :PD 
PSE power supported      :No 
PSE power enabled        :No 
PSE pairs control ability:No 
Power pairs              :Unknown 
Port power classification:Unknown

Link aggregation supported:No 
Link aggregation enabled :No 
Aggregation port ID      :0 
Maximum frame Size       :0

MED Device information             
Device class   :NA

HardwareRev       :NA
FirmwareRev       :NA
SoftwareRev       :NA
SerialNum         :NA
Manufacturer name :NA
Model name        :NA
Asset tracking identifier :NA

Media policy type   :Unknown 
Unknown Policy      :No 
VLAN tagged         :No 
Media policy VlanID      :0 
Media policy L2 priority :0 
Media policy Dscp        :0

Power Type               :PSE 
PoE PSE power source     :Unknown 
Port PSE Priority        :Unknown 
Port Available power value:0
GigabitEthernet2/0/1 has 1 neighbors:


Neighbor index : 1
Chassis type   :macAddress 
Chassis ID     :0012-cf96-9a20 
Port ID type   :macAddress 
Port ID        :0012-cf96-9a23
Port description    :NA
System name         :NA
System description  :NA
System capabilities supported   :bridge 
System capabilities enabled     :bridge 
Expired time   :116s


Port VLAN ID(PVID)  :0
Protocol identity   :     

Auto-negotiation supported    :No 
Auto-negotiation enabled      :No
OperMau   :speed(0)/duplex(Half)

Power port class         :PD 
PSE power supported      :No 
PSE power enabled        :No 
PSE pairs control ability:No 
Power pairs              :Unknown 
Port power classification:Unknown

Link aggregation supported:No 
Link aggregation enabled :No 
Aggregation port ID      :0 
Maximum frame Size       :0

MED Device information             
Device class   :Network Connectivity

HardwareRev       :NA
FirmwareRev       :NA
SoftwareRev       :NA
SerialNum         :NA
Manufacturer name :Accton Technology Corp.
Model name        :NA
Asset tracking identifier :NA

Media policy type   :Unknown 
Unknown Policy      :No 
VLAN tagged         :No 
Media policy VlanID      :1 
Media policy L2 priority :0 
Media policy Dscp        :0

Power Type               :PSE 
PoE PSE power source     :Unknown 
Port PSE Priority        :Unknown 
Port Available power value:0
GigabitEthernet2/0/2 has 0 neighbors

GigabitEthernet2/0/3 has 0 neighbors

GigabitEthernet2/0/4 has 0 neighbors

GigabitEthernet2/0/5 has 0 neighbors

GigabitEthernet2/0/6 has 0 neighbors

GigabitEthernet2/0/7 has 0 neighbors

GigabitEthernet2/0/8 has 0 neighbors

GigabitEthernet2/0/9 has 0 neighbors

GigabitEthernet2/0/10 has 0 neighbors

GigabitEthernet2/0/11 has 0 neighbors

GigabitEthernet2/0/12 has 0 neighbors

GigabitEthernet2/0/13 has 0 neighbors

GigabitEthernet2/0/14 has 0 neighbors

GigabitEthernet2/0/15 has 0 neighbors

GigabitEthernet2/0/16 has 0 neighbors

GigabitEthernet2/0/17 has 0 neighbors

GigabitEthernet2/0/18 has 0 neighbors

GigabitEthernet2/0/19 has 0 neighbors

GigabitEthernet2/0/20 has 0 neighbors

GigabitEthernet2/0/21 has 0 neighbors

GigabitEthernet2/0/22 has 0 neighbors

GigabitEthernet2/0/23 has 0 neighbors
""",
}
    snmp_get={}
    snmp_getnext={}
