# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## Huawei.VRP.get_vlans test
## Auto-generated by manage.py debug-script at 2010-12-17 19:57:25
##----------------------------------------------------------------------
## Copyright (C) 2007-2010 The NOC Project
## See LICENSE for details
##----------------------------------------------------------------------
from noc.lib.test import ScriptTestCase
class Huawei_VRP_get_vlans_Test(ScriptTestCase):
    script="Huawei.VRP.get_vlans"
    vendor="Huawei"
    platform='S9306'
    version='5.50'
    input={}
    result=[{'name': 'VLAN1', 'vlan_id': 1},
 {'name': 'VLAN2', 'vlan_id': 2},
 {'name': 'VLAN9', 'vlan_id': 9},
 {'name': 'VLAN12', 'vlan_id': 12},
 {'name': 'VLAN14', 'vlan_id': 14},
 {'name': 'VLAN15', 'vlan_id': 15},
 {'name': 'VLAN17', 'vlan_id': 17},
 {'name': 'VLAN19', 'vlan_id': 19},
 {'name': 'VLAN23', 'vlan_id': 23},
 {'name': 'VLAN24', 'vlan_id': 24},
 {'name': 'VLAN25', 'vlan_id': 25},
 {'name': 'VLAN28', 'vlan_id': 28},
 {'name': 'VLAN29', 'vlan_id': 29},
 {'name': 'VLAN36', 'vlan_id': 36},
 {'name': 'VLAN37', 'vlan_id': 37},
 {'name': 'VLAN38', 'vlan_id': 38},
 {'name': 'VLAN39', 'vlan_id': 39},
 {'name': 'VLAN40', 'vlan_id': 40},
 {'name': 'VLAN41', 'vlan_id': 41},
 {'name': 'VLAN42', 'vlan_id': 42},
 {'name': 'VLAN44', 'vlan_id': 44},
 {'name': 'VLAN45', 'vlan_id': 45},
 {'name': 'VLAN46', 'vlan_id': 46},
 {'name': 'VLAN51', 'vlan_id': 51},
 {'name': 'VLAN66', 'vlan_id': 66},
 {'name': 'VLAN69', 'vlan_id': 69},
 {'name': 'VLAN70', 'vlan_id': 70},
 {'name': 'VLAN71', 'vlan_id': 71},
 {'name': 'VLAN100', 'vlan_id': 100},
 {'name': 'VLAN101', 'vlan_id': 101},
 {'name': 'VLAN102', 'vlan_id': 102},
 {'name': 'VLAN103', 'vlan_id': 103},
 {'name': 'VLAN104', 'vlan_id': 104},
 {'name': 'VLAN105', 'vlan_id': 105},
 {'name': 'VLAN106', 'vlan_id': 106},
 {'name': 'VLAN107', 'vlan_id': 107},
 {'name': 'VLAN108', 'vlan_id': 108},
 {'name': 'VLAN109', 'vlan_id': 109},
 {'name': 'VLAN119', 'vlan_id': 119},
 {'name': 'VLAN181', 'vlan_id': 181},
 {'name': 'VLAN200', 'vlan_id': 200},
 {'name': 'VLAN210', 'vlan_id': 210},
 {'name': 'VLAN212', 'vlan_id': 212},
 {'name': 'VLAN213', 'vlan_id': 213},
 {'name': 'VLAN214', 'vlan_id': 214},
 {'name': 'VLAN298', 'vlan_id': 298},
 {'name': 'VLAN301', 'vlan_id': 301},
 {'name': 'VLAN309', 'vlan_id': 309},
 {'name': 'VLAN310', 'vlan_id': 310},
 {'name': 'VLAN325', 'vlan_id': 325},
 {'name': 'VLAN326', 'vlan_id': 326},
 {'name': 'VLAN333', 'vlan_id': 333},
 {'name': 'VLAN360', 'vlan_id': 360},
 {'name': 'VLAN364', 'vlan_id': 364},
 {'name': 'VLAN430', 'vlan_id': 430},
 {'name': 'VLAN512', 'vlan_id': 512},
 {'name': 'VLAN546', 'vlan_id': 546},
 {'name': 'VLAN590', 'vlan_id': 590},
 {'name': 'VLAN600', 'vlan_id': 600},
 {'name': 'VLAN601', 'vlan_id': 601},
 {'name': 'VLAN602', 'vlan_id': 602},
 {'name': 'VLAN603', 'vlan_id': 603},
 {'name': 'VLAN604', 'vlan_id': 604},
 {'name': 'VLAN605', 'vlan_id': 605},
 {'name': 'VLAN607', 'vlan_id': 607},
 {'name': 'VLAN608', 'vlan_id': 608},
 {'name': 'VLAN609', 'vlan_id': 609},
 {'name': 'VLAN634', 'vlan_id': 634},
 {'name': 'VLAN637', 'vlan_id': 637},
 {'name': 'VLAN638', 'vlan_id': 638},
 {'name': 'VLAN643', 'vlan_id': 643},
 {'name': 'VLAN654', 'vlan_id': 654},
 {'name': 'VLAN655', 'vlan_id': 655},
 {'name': 'VLAN682', 'vlan_id': 682},
 {'name': 'VLAN701', 'vlan_id': 701},
 {'name': 'VLAN702', 'vlan_id': 702},
 {'name': 'VLAN703', 'vlan_id': 703},
 {'name': 'VLAN704', 'vlan_id': 704},
 {'name': 'VLAN705', 'vlan_id': 705},
 {'name': 'VLAN711', 'vlan_id': 711},
 {'name': 'VLAN718', 'vlan_id': 718},
 {'name': 'VLAN731', 'vlan_id': 731},
 {'name': 'VLAN752', 'vlan_id': 752},
 {'name': 'VLAN800', 'vlan_id': 800},
 {'name': 'VLAN801', 'vlan_id': 801},
 {'name': 'VLAN802', 'vlan_id': 802},
 {'name': 'VLAN803', 'vlan_id': 803},
 {'name': 'VLAN806', 'vlan_id': 806},
 {'name': 'VLAN810', 'vlan_id': 810},
 {'name': 'VLAN838', 'vlan_id': 838},
 {'name': 'VLAN900', 'vlan_id': 900},
 {'name': 'VLAN1002', 'vlan_id': 1002},
 {'name': 'VLAN1007', 'vlan_id': 1007},
 {'name': 'VLAN2050', 'vlan_id': 2050},
 {'name': 'VLAN2107', 'vlan_id': 2107},
 {'name': 'VLAN2129', 'vlan_id': 2129},
 {'name': 'VLAN2540', 'vlan_id': 2540},
 {'name': 'VLAN3000', 'vlan_id': 3000},
 {'name': 'VLAN3104', 'vlan_id': 3104},
 {'name': 'VLAN3201', 'vlan_id': 3201},
 {'name': 'VLAN3302', 'vlan_id': 3302},
 {'name': 'VLAN3333', 'vlan_id': 3333},
 {'name': 'VLAN3500', 'vlan_id': 3500},
 {'name': 'VLAN3501', 'vlan_id': 3501},
 {'name': 'VLAN3502', 'vlan_id': 3502},
 {'name': 'VLAN3503', 'vlan_id': 3503},
 {'name': 'VLAN3504', 'vlan_id': 3504},
 {'name': 'VLAN3505', 'vlan_id': 3505},
 {'name': 'VLAN3506', 'vlan_id': 3506},
 {'name': 'VLAN3507', 'vlan_id': 3507},
 {'name': 'VLAN3508', 'vlan_id': 3508},
 {'name': 'VLAN3510', 'vlan_id': 3510},
 {'name': 'VLAN3511', 'vlan_id': 3511},
 {'name': 'VLAN3512', 'vlan_id': 3512},
 {'name': 'VLAN3513', 'vlan_id': 3513},
 {'name': 'VLAN3514', 'vlan_id': 3514},
 {'name': 'VLAN3515', 'vlan_id': 3515},
 {'name': 'VLAN3516', 'vlan_id': 3516},
 {'name': 'VLAN3517', 'vlan_id': 3517},
 {'name': 'VLAN3518', 'vlan_id': 3518},
 {'name': 'VLAN3519', 'vlan_id': 3519},
 {'name': 'VLAN3520', 'vlan_id': 3520},
 {'name': 'VLAN3521', 'vlan_id': 3521},
 {'name': 'VLAN3522', 'vlan_id': 3522},
 {'name': 'VLAN3523', 'vlan_id': 3523},
 {'name': 'VLAN3524', 'vlan_id': 3524},
 {'name': 'VLAN3525', 'vlan_id': 3525},
 {'name': 'VLAN3526', 'vlan_id': 3526},
 {'name': 'VLAN3527', 'vlan_id': 3527},
 {'name': 'VLAN3528', 'vlan_id': 3528},
 {'name': 'VLAN3529', 'vlan_id': 3529},
 {'name': 'VLAN3530', 'vlan_id': 3530},
 {'name': 'VLAN3531', 'vlan_id': 3531},
 {'name': 'VLAN3533', 'vlan_id': 3533},
 {'name': 'VLAN3534', 'vlan_id': 3534},
 {'name': 'VLAN3535', 'vlan_id': 3535},
 {'name': 'VLAN3536', 'vlan_id': 3536},
 {'name': 'VLAN3537', 'vlan_id': 3537},
 {'name': 'VLAN3538', 'vlan_id': 3538},
 {'name': 'VLAN3539', 'vlan_id': 3539},
 {'name': 'VLAN3540', 'vlan_id': 3540},
 {'name': 'VLAN3541', 'vlan_id': 3541},
 {'name': 'VLAN3542', 'vlan_id': 3542},
 {'name': 'VLAN3554', 'vlan_id': 3554},
 {'name': 'VLAN4094', 'vlan_id': 4094}]
    motd='\nInfo: The max number of VTY users is 10, and the number\n      of current VTY users on line is 1.\n'
    cli={
## 'display vlan'
'display vlan': """display vlan
The total number of vlans is : 151
VLAN ID Type        Status   MAC Learning Broadcast/Multicast/Unicast Property  
--------------------------------------------------------------------------------
1       common      enable   enable       forward   forward   forward default   
2       common      enable   enable       forward   forward   forward default   
9       common      enable   enable       forward   forward   forward default   
12      common      enable   enable       forward   forward   forward default   
14      common      enable   enable       forward   forward   forward default   
15      common      enable   enable       forward   forward   forward default   
17      common      enable   enable       forward   forward   forward default   
19      common      enable   enable       forward   forward   forward default   
23      common      enable   enable       forward   forward   forward default   
24      common      enable   enable       forward   forward   forward default   
25      common      enable   enable       forward   forward   forward default   
28      common      enable   enable       forward   forward   forward default   
29      common      enable   enable       forward   forward   forward default   
36      common      enable   enable       forward   forward   forward default   
37      common      enable   enable       forward   forward   forward default   
38      common      enable   enable       forward   forward   forward default   
39      common      enable   enable       forward   forward   forward default   
40      common      enable   enable       forward   forward   forward default   
41      common      enable   enable       forward   forward   forward default   
42      common      enable   enable       forward   forward   forward default   
44      common      enable   enable       forward   forward   forward default   
45      common      enable   enable       forward   forward   forward default   
46      common      enable   enable       forward   forward   forward default   
                                          50      common      enable   enable       forward   forward   forward default   
51      common      enable   enable       forward   forward   forward default   
66      common      enable   enable       forward   forward   forward default   
69      common      enable   enable       forward   forward   forward default   
70      common      enable   enable       forward   forward   forward default   
71      common      enable   enable       forward   forward   forward default   
100     common      enable   enable       forward   forward   forward default   
101     common      enable   enable       forward   forward   forward default   
102     common      enable   enable       forward   forward   forward default   
103     common      enable   enable       forward   forward   forward default   
104     common      enable   enable       forward   forward   forward default   
105     common      enable   enable       forward   forward   forward default   
106     common      enable   enable       forward   forward   forward default   
107     common      enable   enable       forward   forward   forward default   
108     common      enable   enable       forward   forward   forward default   
109     common      enable   enable       forward   forward   forward default   
119     common      enable   enable       forward   forward   forward default   
181     common      enable   enable       forward   forward   forward default   
200     common      enable   enable       forward   forward   forward default   
210     common      enable   enable       forward   forward   forward default   
212     common      enable   enable       forward   forward   forward default   
213     common      enable   enable       forward   forward   forward default   
214     common      enable   enable       forward   forward   forward default   
                                          270     common      enable   enable       forward   forward   forward default   
298     common      enable   enable       forward   forward   forward default   
301     common      enable   enable       forward   forward   forward default   
309     common      enable   enable       forward   forward   forward default   
310     common      enable   enable       forward   forward   forward default   
325     common      enable   enable       forward   forward   forward default   
326     common      enable   enable       forward   forward   forward default   
333     common      enable   enable       forward   forward   forward default   
360     common      enable   enable       forward   forward   forward default   
364     common      enable   enable       forward   forward   forward default   
430     common      enable   enable       forward   forward   forward default   
512     common      enable   enable       forward   forward   forward default   
546     common      enable   enable       forward   forward   forward default   
590     common      enable   enable       forward   forward   forward default   
600     common      enable   enable       forward   forward   forward default   
601     common      enable   enable       forward   forward   forward default   
602     common      enable   enable       forward   forward   forward default   
603     common      enable   enable       forward   forward   forward default   
604     common      enable   enable       forward   forward   forward default   
605     common      enable   enable       forward   forward   forward default   
607     common      enable   enable       forward   forward   forward default   
608     common      enable   enable       forward   forward   forward default   
609     common      enable   enable       forward   forward   forward default   
                                          632     common      enable   enable       forward   forward   forward default   
634     common      enable   enable       forward   forward   forward default   
637     common      enable   enable       forward   forward   forward default   
638     common      enable   enable       forward   forward   forward default   
643     common      enable   enable       forward   forward   forward default   
654     common      enable   enable       forward   forward   forward default   
655     common      enable   enable       forward   forward   forward default   
682     common      enable   enable       forward   forward   forward default   
701     common      enable   enable       forward   forward   forward default   
702     common      enable   enable       forward   forward   forward default   
703     common      enable   enable       forward   forward   forward default   
704     common      enable   enable       forward   forward   forward default   
705     common      enable   enable       forward   forward   forward default   
711     common      enable   enable       forward   forward   forward default   
718     common      enable   enable       forward   forward   forward default   
731     common      enable   enable       forward   forward   forward default   
752     common      enable   enable       forward   forward   forward default   
800     common      enable   enable       forward   forward   forward default   
801     common      enable   enable       forward   forward   forward default   
802     common      enable   enable       forward   forward   forward default   
803     common      enable   enable       forward   forward   forward default   
806     common      enable   enable       forward   forward   forward default   
810     common      enable   enable       forward   forward   forward default   
                                          837     common      enable   enable       forward   forward   forward default   
838     common      enable   enable       forward   forward   forward default   
900     common      enable   enable       forward   forward   forward default   
1002    common      enable   enable       forward   forward   forward default   
1007    common      enable   enable       forward   forward   forward default   
2050    common      enable   enable       forward   forward   forward default   
2107    common      enable   enable       forward   forward   forward default   
2129    common      enable   enable       forward   forward   forward default   
2540    common      enable   enable       forward   forward   forward default   
3000    common      enable   enable       forward   forward   forward default   
3104    common      enable   enable       forward   forward   forward default   
3201    common      enable   enable       forward   forward   forward default   
3302    common      enable   enable       forward   forward   forward default   
3333    common      enable   enable       forward   forward   forward default   
3500    common      enable   enable       forward   forward   forward default   
3501    common      enable   enable       forward   forward   forward default   
3502    common      enable   enable       forward   forward   forward default   
3503    common      enable   enable       forward   forward   forward default   
3504    common      enable   enable       forward   forward   forward default   
3505    common      enable   enable       forward   forward   forward default   
3506    common      enable   enable       forward   forward   forward default   
3507    common      enable   enable       forward   forward   forward default   
3508    common      enable   enable       forward   forward   forward default   
                                          3509    common      enable   enable       forward   forward   forward default   
3510    common      enable   enable       forward   forward   forward default   
3511    common      enable   enable       forward   forward   forward default   
3512    common      enable   enable       forward   forward   forward default   
3513    common      enable   enable       forward   forward   forward default   
3514    common      enable   enable       forward   forward   forward default   
3515    common      enable   enable       forward   forward   forward default   
3516    common      enable   enable       forward   forward   forward default   
3517    common      enable   enable       forward   forward   forward default   
3518    common      enable   enable       forward   forward   forward default   
3519    common      enable   enable       forward   forward   forward default   
3520    common      enable   enable       forward   forward   forward default   
3521    common      enable   enable       forward   forward   forward default   
3522    common      enable   enable       forward   forward   forward default   
3523    common      enable   enable       forward   forward   forward default   
3524    common      enable   enable       forward   forward   forward default   
3525    common      enable   enable       forward   forward   forward default   
3526    common      enable   enable       forward   forward   forward default   
3527    common      enable   enable       forward   forward   forward default   
3528    common      enable   enable       forward   forward   forward default   
3529    common      enable   enable       forward   forward   forward default   
3530    common      enable   enable       forward   forward   forward default   
3531    common      enable   enable       forward   forward   forward default   
                                          3532    common      enable   enable       forward   forward   forward default   
3533    common      enable   enable       forward   forward   forward default   
3534    common      enable   enable       forward   forward   forward default   
3535    common      enable   enable       forward   forward   forward default   
3536    common      enable   enable       forward   forward   forward default   
3537    common      enable   enable       forward   forward   forward default   
3538    common      enable   enable       forward   forward   forward default   
3539    common      enable   enable       forward   forward   forward default   
3540    common      enable   enable       forward   forward   forward default   
3541    common      enable   enable       forward   forward   forward default   
3542    common      enable   enable       forward   forward   forward default   
3554    common      enable   enable       forward   forward   forward default   
4094    common      enable   enable       forward   forward   forward default   """,
## '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 34 weeks, 3 days, 11 hours, 17 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 11 weeks, 6 days, 10 hours, 9 minutes
                StartupTime 2010/09/25   14:46:12 
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 11 weeks, 6 days, 10 hours, 13 minutes
                StartupTime 2010/09/25   14:41:46 
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 34 weeks, 3 days, 11 hours, 13 minutes
        StartupTime 2010/04/20   13:41:38 
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 34 weeks, 3 days, 11 hours, 13 minutes
        StartupTime 2010/04/20   13:42:03 
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 11 weeks, 6 days, 10 hours, 11 minutes
                StartupTime 2010/09/25   14:44:40 
CMU version information :
1. PCB      Version  :LE02CMUA   VER.B
2. MAB      Version  :0
3. Board    Type     :CMUA      
""",
}
    snmp_get={}
    snmp_getnext={}
