# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## Huawei.VRP.get_portchannel test
## Auto-generated by manage.py debug-script at 2011-02-08 17:46:12
##----------------------------------------------------------------------
## Copyright (C) 2007-2011 The NOC Project
## See LICENSE for details
##----------------------------------------------------------------------
from noc.lib.test import ScriptTestCase
class Huawei_VRP_get_portchannel_Test(ScriptTestCase):
    script="Huawei.VRP.get_portchannel"
    vendor="Huawei"
    platform='S9306'
    version='5.50'
    input={}
    result=[{'interface': 'Eth-Trunk1',
  'members': ['GigabitEthernet2/0/0', 'GigabitEthernet2/0/1'],
  'type': 'S'}]
    motd='\nInfo: The max number of VTY users is 10, and the number\n      of current VTY users on line is 1.\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, 0 day, 6 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, 0 day, 6 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, 0 day, 6 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, 0 day, 6 hours, 39 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, 0 day, 6 hours, 39 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, 0 day, 6 hours, 39 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 eth-trunk'
'display eth-trunk': """display eth-trunk
Eth-Trunk1's state information is:
WorkingMode: NORMAL          Hash arithmetic: According to SIP-XOR-DIP        
Least Active-linknumber: 1  Max Bandwidth-affected-linknumber: 8              
Operate status: up          Number Of Up Port In Trunk: 2                     
--------------------------------------------------------------------------------
PortName                Status      Weight 
GigabitEthernet2/0/0    Up          1      
GigabitEthernet2/0/1    Up          1      

""",
}
    snmp_get={}
    snmp_getnext={}
