# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## Huawei.VRP.get_vlans test
## Auto-generated by manage.py debug-script at 2010-12-17 19:46:48
##----------------------------------------------------------------------
## 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='S8512'
    version='3.10'
    input={}
    result=[{'name': 'VLAN 0001', 'vlan_id': 1},
 {'name': 'test_vll_via-lacp', 'vlan_id': 5},
 {'name': 'test_mvr', 'vlan_id': 7},
 {'name': 'VLAN 0010', 'vlan_id': 10},
 {'name': 'VLAN 0011', 'vlan_id': 11},
 {'name': 'VLAN 0012', 'vlan_id': 12},
 {'name': 'VLAN 0014', 'vlan_id': 14},
 {'name': 'Office', 'vlan_id': 24},
 {'name': 'VLAN 0027', 'vlan_id': 27},
 {'name': 'TEST_IPTV', 'vlan_id': 45},
 {'name': 'VLAN 0062', 'vlan_id': 62},
 {'name': 'ShNaFlix-Ext', 'vlan_id': 64},
 {'name': '1-NAT', 'vlan_id': 65},
 {'name': 'Vneshiki-NAT', 'vlan_id': 66},
 {'name': 'NetFlow-TEST', 'vlan_id': 67},
 {'name': 'NAT-2', 'vlan_id': 68},
 {'name': 'Management', 'vlan_id': 69},
 {'name': 'UPS_manag', 'vlan_id': 70},
 {'name': 'Binat-1', 'vlan_id': 3400},
 {'name': 'Binat-2', 'vlan_id': 3401}]
    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: 
      GigabitEthernet0/1/2    GigabitEthernet0/1/3    GigabitEthernet0/1/15   
      GigabitEthernet0/1/17   GigabitEthernet0/1/19   GigabitEthernet0/1/20   
      GigabitEthernet2/1/3    GigabitEthernet2/1/4    GigabitEthernet2/1/22   
      GigabitEthernet2/1/23   GigabitEthernet5/1/3    GigabitEthernet5/1/4    
      GigabitEthernet8/1/2    

 VLAN ID: 5
 VLAN Type: static
 Route Interface: not configured
 Description: VLAN 0005
 Name: test_vll_via-lacp
 Tagged   Ports: 
      GigabitEthernet5/1/3    
 Untagged Ports: none

                                           VLAN ID: 6
 VLAN Type: static
 Route Interface: configured
 IP Address: 17.234.239.73
 Subnet Mask: 255.255.255.252
 Description: VLAN 0006
 Name: sudouser.com
 Tagged   Ports: 
      GigabitEthernet0/1/16   
 Untagged Ports: none

 VLAN ID: 7
 VLAN Type: static
 Route Interface: not configured
 Description: VLAN 0007
 Name: test_mvr
 Tagged   Ports: 
      GigabitEthernet0/1/24   GigabitEthernet2/1/24   
 Untagged Ports: none

 VLAN ID: 10
 VLAN Type: static
 Route Interface: not configured
                                           Description: -=RADIUS=-
 Name: VLAN 0010
 Tagged   Ports: 
      GigabitEthernet0/1/16   GigabitEthernet8/1/1    
 Untagged Ports: none

 VLAN ID: 11
 VLAN Type: static
 Route Interface: configured
 IP Address: 10.0.32.6
 Subnet Mask: 255.255.255.252
 Description: to_ECore
 Name: VLAN 0011
 Tagged   Ports: 
      GigabitEthernet0/1/16   
 Untagged Ports: none

 VLAN ID: 12
 VLAN Type: static
 Route Interface: configured
 IP Address: 10.0.32.9
 Subnet Mask: 255.255.255.252
 Description: TEST-10GXFP
                                           Name: VLAN 0012
 Tagged   Ports: none
 Untagged Ports: none

 VLAN ID: 14
 VLAN Type: static
 Route Interface: not configured
 Description: test-remove-after-18.11.2009
 Name: VLAN 0014
 Tagged   Ports: 
      GigabitEthernet0/1/23   
 Untagged Ports: none

 VLAN ID: 24
 VLAN Type: static
 Route Interface: not configured
 Description: VLAN 0024
 Name: Office
 Tagged   Ports: 
      GigabitEthernet0/1/23   
 Untagged Ports: none

 VLAN ID: 27
                                           VLAN Type: static
 Route Interface: not configured
 Description: Testhav51-Moscow_Lan
 Name: VLAN 0027
 Tagged   Ports: 
      GigabitEthernet0/1/23   
 Untagged Ports: none

 VLAN ID: 45
 VLAN Type: static
 Route Interface: not configured
 Description: VLAN 0045
 Name: TEST_IPTV
 Tagged   Ports: none
 Untagged Ports: none

 VLAN ID: 62
 VLAN Type: static
 Route Interface: not configured
 Description: vpls1
 Name: VLAN 0062
 Tagged   Ports: 
      GigabitEthernet0/1/23   
                                           Untagged Ports: none

 VLAN ID: 64
 VLAN Type: static
 Route Interface: configured
 IP Address: 17.234.245.97
 Subnet Mask: 255.255.255.240
 Description: ShNaFlix-Ext
 Name: ShNaFlix-Ext
 Tagged   Ports: 
      GigabitEthernet5/1/3    
 Untagged Ports: 
      GigabitEthernet0/1/1    GigabitEthernet2/1/1    GigabitEthernet2/1/2    

 VLAN ID: 65
 VLAN Type: static
 Route Interface: configured
 IP Address: 17.234.239.81
 Subnet Mask: 255.255.255.248
 Description: Nat_3
 Name: 1-NAT
 Tagged   Ports: 
      GigabitEthernet0/1/13   
                                           Untagged Ports: none

 VLAN ID: 66
 VLAN Type: static
 Route Interface: not configured
 Description: NAT1-ext
 Name: Vneshiki-NAT
 Tagged   Ports: 
      GigabitEthernet0/1/14   
 Untagged Ports: none

 VLAN ID: 67
 VLAN Type: static
 Route Interface: configured
 IP Address: 17.234.245.157
 Subnet Mask: 255.255.255.252
 Description: VLAN 0067
 Name: NetFlow-TEST
 Tagged   Ports: none
 Untagged Ports: none

 VLAN ID: 68
 VLAN Type: static
                                           Route Interface: configured
 IP Address: 17.234.239.105
 Subnet Mask: 255.255.255.252
 Description: NAT2-ext
 Name: NAT-2
 Tagged   Ports: none
 Untagged Ports: none

 VLAN ID: 69
 VLAN Type: static
 Route Interface: configured
 IP Address: 10.80.0.1
 Subnet Mask: 255.255.255.0
 Description: Satel-Mgmt
 Name: Management
 Tagged   Ports: 
      GigabitEthernet0/1/4    GigabitEthernet0/1/21   GigabitEthernet0/1/23   
      GigabitEthernet8/1/1    
 Untagged Ports: none

 VLAN ID: 70
 VLAN Type: static
 Route Interface: configured
                                           IP Address: 10.80.2.33
 Subnet Mask: 255.255.255.224
 Description: VLAN 0070
 Name: UPS_manag
 Tagged   Ports: 
      GigabitEthernet0/1/4    GigabitEthernet0/1/23   
 Untagged Ports: none

 VLAN ID: 3400
 VLAN Type: static
 Route Interface: configured
 IP Address: 10.0.37.65
 Subnet Mask: 255.255.255.252
 Description: VLAN 3400
 Name: Binat-1
 Tagged   Ports: 
      GigabitEthernet0/1/9    
 Untagged Ports: none

 VLAN ID: 3401
 VLAN Type: static
 Route Interface: configured
 IP Address: 10.0.37.69
                                           Subnet Mask: 255.255.255.252
 Description: VLAN 3401
 Name: Binat-2
 Tagged   Ports: 
      GigabitEthernet0/1/10   
 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 S8512 uptime is 22 weeks, 0 day, 17 hours, 47 minutes


LSB1SRP1N0 6:  uptime is 22 weeks,0 day,17 hours,47 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

LSB1SRP1N0 7:  uptime is 22 weeks,0 day,16 hours,45 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

LSB1GP24CA0 0:  uptime is 22 weeks,0 day,16 hours,45 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

LSB1GP24CA0 2:  uptime is 22 weeks,0 day,16 hours,45 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

LSB1XP4CA0 5:  uptime is 22 weeks,0 day,16 hours,44 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

LSB1XP2CA0 8:  uptime is 22 weeks,0 day,16 hours,45 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
""",
}
    snmp_get={}
    snmp_getnext={}
