# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## Huawei.VRP.get_vlans test
## Auto-generated by manage.py debug-script at 2010-12-17 19:52:09
##----------------------------------------------------------------------
## 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='S8505'
    version='3.10'
    input={}
    result=[{'name': 'VLAN 0001', 'vlan_id': 1},
 {'name': 'Management', 'vlan_id': 69},
 {'name': 'UPS-Management', 'vlan_id': 70},
 {'name': 'Alarm', 'vlan_id': 71},
 {'name': 'GN-VLAN81', 'vlan_id': 81},
 {'name': 'GN-VLAN82', 'vlan_id': 82},
 {'name': 'GN-VLAN83', 'vlan_id': 83},
 {'name': 'GN-VLAN84', 'vlan_id': 84},
 {'name': 'GN-VLAN85', 'vlan_id': 85},
 {'name': 'GN-VLAN86', 'vlan_id': 86},
 {'name': 'GN-VLAN91', 'vlan_id': 91},
 {'name': 'GN-VLAN92', 'vlan_id': 92},
 {'name': 'GN-VLAN95', 'vlan_id': 95},
 {'name': 'VLAN 0160', 'vlan_id': 160},
 {'name': 'PIM_Shot8k2', 'vlan_id': 3304}]
    motd='\n'
    cli={
## 'display vlan all'
'display vlan all': """display vlan all
 VLAN ID: 1
 VLAN Type: static
 Route Interface: not configured
 Description: VLAN 0001
 Name: VLAN 0001
 Tagged   Ports: none
 Untagged Ports: 
      GigabitEthernet3/1/4    GigabitEthernet3/1/6    GigabitEthernet3/1/7    
      GigabitEthernet3/1/9    GigabitEthernet3/1/10   GigabitEthernet3/1/11   
      GigabitEthernet3/1/12   GigabitEthernet3/1/13   GigabitEthernet3/1/14   
      GigabitEthernet3/1/15   GigabitEthernet3/1/16   GigabitEthernet3/1/17   
      GigabitEthernet3/1/18   GigabitEthernet3/1/19   GigabitEthernet3/1/20   
      GigabitEthernet3/1/21   GigabitEthernet3/1/22   GigabitEthernet3/1/23   
      GigabitEthernet3/1/24   

 VLAN ID: 69
 VLAN Type: static
 Route Interface: configured
 IP Address: 10.0.38.1
 Subnet Mask: 255.255.255.192
 Description: MANAGMENT
 Name: Management
                                           Tagged   Ports: 
      GigabitEthernet2/1/4    GigabitEthernet3/1/3    GigabitEthernet3/1/4    
      GigabitEthernet3/1/5    
 Untagged Ports: none

 VLAN ID: 70
 VLAN Type: static
 Route Interface: configured
 IP Address: 10.80.2.1
 Subnet Mask: 255.255.255.224
 Description: Voip2
 Name: UPS-Management
 Tagged   Ports: 
      GigabitEthernet2/1/4    GigabitEthernet3/1/3    
 Untagged Ports: none

 VLAN ID: 71
 VLAN Type: static
 Route Interface: configured
 IP Address: 17.234.246.81
 Subnet Mask: 255.255.255.240
 Description: Alarm
 Name: Alarm
                                           Tagged   Ports: 
      GigabitEthernet2/1/3    
 Untagged Ports: none

 VLAN ID: 81
 VLAN Type: static
 Route Interface: not configured
 Description: GN-VLAN81
 Name: GN-VLAN81
 Tagged   Ports: 
      GigabitEthernet2/1/4    
 Untagged Ports: none

 VLAN ID: 82
 VLAN Type: static
 Route Interface: not configured
 Description: GN-VLAN82
 Name: GN-VLAN82
 Tagged   Ports: 
      GigabitEthernet2/1/4    
 Untagged Ports: none

 VLAN ID: 83
                                           VLAN Type: static
 Route Interface: not configured
 Description: GN-VLAN83
 Name: GN-VLAN83
 Tagged   Ports: 
      GigabitEthernet2/1/4    
 Untagged Ports: none

 VLAN ID: 84
 VLAN Type: static
 Route Interface: not configured
 Description: GN-VLAN84
 Name: GN-VLAN84
 Tagged   Ports: 
      GigabitEthernet2/1/4    
 Untagged Ports: none

 VLAN ID: 85
 VLAN Type: static
 Route Interface: not configured
 Description: GN-VLAN85
 Name: GN-VLAN85
 Tagged   Ports: 
                                                GigabitEthernet2/1/4    
 Untagged Ports: none

 VLAN ID: 86
 VLAN Type: static
 Route Interface: not configured
 Description: GN-VLAN86
 Name: GN-VLAN86
 Tagged   Ports: 
      GigabitEthernet2/1/4    
 Untagged Ports: none

 VLAN ID: 91
 VLAN Type: static
 Route Interface: not configured
 Description: GN-VLAN91
 Name: GN-VLAN91
 Tagged   Ports: 
      GigabitEthernet2/1/4    
 Untagged Ports: none

 VLAN ID: 92
 VLAN Type: static
                                           Route Interface: not configured
 Description: GN-VLAN92
 Name: GN-VLAN92
 Tagged   Ports: 
      GigabitEthernet2/1/4    
 Untagged Ports: none

 VLAN ID: 95
 VLAN Type: static
 Route Interface: not configured
 Description: GN-VLAN95
 Name: GN-VLAN95
 Tagged   Ports: 
      GigabitEthernet2/1/4    
 Untagged Ports: none

 VLAN ID: 160
 VLAN Type: static
 Route Interface: not configured
 Description: QiQ_testGNet
 Name: VLAN 0160
 Tagged   Ports: 
      GigabitEthernet2/1/4    
                                           Untagged Ports: none

 VLAN ID: 3304
 VLAN Type: static
 Route Interface: not configured
 Description: VLAN 3304
 Name: PIM_Shot8k2
 Tagged   Ports: 
      GigabitEthernet2/1/4    
 Untagged Ports: none
""",
## 'display version'
'display version': """display version
Huawei Versatile Routing Platform Software
VRP software, Version 3.10, Release 1648P01
Copyright(c) 1998-2008 Huawei Technologies Co., Ltd. All rights reserved.
Quidway S8505 uptime is 91 weeks, 1 day, 10 hours, 52 minutes


LSB1SRP1N2 0:  uptime is 91 weeks,1 day,10 hours,52 minutes
Quidway S8500 with 1 MPC755 Processor
512M    bytes SDRAM
16384K  bytes Flash Memory
512K    bytes NVRAM Memory
PCB Version      :   Ver.B
BootROM Version  :   206
CPLD Version     :   001
Software Version :   S8500-VRP310-R1648P01

LSB1SRP1N2 1:  uptime is 91 weeks,1 day,13 hours,51 minutes
Quidway S8500 with 1 MPC755 Processor
512M    bytes SDRAM
16384K  bytes Flash Memory
512K    bytes NVRAM Memory
PCB Version      :   Ver.B
                                          BootROM Version  :   206
CPLD Version     :   001
Software Version :   S8500-VRP310-R1648P01

LSB1XP4CA0 2:  uptime is 91 weeks,1 day,13 hours,50 minutes
Quidway S8500 LPU with 1 MPC8245 Processor
256M    bytes SDRAM
0K      bytes NVRAM Memory
PCB Version      :   Ver.E
BootROM Version  :   109
CPLD Version     :   003
Software Version :   S8500-VRP310-R1648P01
  CPUCard   1
  PCB Ver        :   Ver.C
  CPLD Ver       :   001
  SubCard   1
  PCB Ver        :   Ver.B
  CPLD Ver       :   NONE

LSB1GP24CA0 3:  uptime is 91 weeks,1 day,13 hours,50 minutes
Quidway S8500 LPU with 1 MPC8245 Processor
256M    bytes SDRAM
0K      bytes NVRAM Memory
                                          PCB Version      :   Ver.C
BootROM Version  :   109
CPLD Version     :   005
Software Version :   S8500-VRP310-R1648P01
  CPUCard   1
  PCB Ver        :   Ver.C
  CPLD Ver       :   001
""",
}
    snmp_get={}
    snmp_getnext={}
