# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## H3C.VRP.get_vlans test
## Auto-generated by manage.py debug-script at 2011-03-11 09:39:35
##----------------------------------------------------------------------
## Copyright (C) 2007-2011 The NOC Project
## See LICENSE for details
##----------------------------------------------------------------------
from noc.lib.test import ScriptTestCase
class H3C_VRP_get_vlans_Test(ScriptTestCase):
    script="H3C.VRP.get_vlans"
    vendor="H3C"
    platform='5500G-EI'
    version='3.03.02s56p05'
    input={}
    result=[{'name': 'VLAN 0001', 'vlan_id': 1},
 {'name': 'VLAN 0020', 'vlan_id': 20},
 {'name': 'STK', 'vlan_id': 40},
 {'name': 'VLAN 0064', 'vlan_id': 64},
 {'name': 'VLAN 0099', 'vlan_id': 99},
 {'name': 'VLAN 0132', 'vlan_id': 132},
 {'name': 'MRSK', 'vlan_id': 136},
 {'name': 'VLAN 0150', 'vlan_id': 150},
 {'name': 'VLAN 0169', 'vlan_id': 169},
 {'name': 'VLAN 0198', 'vlan_id': 198},
 {'name': 'VLAN 0231', 'vlan_id': 231},
 {'name': 'VLAN 0232', 'vlan_id': 232},
 {'name': 'VLAN 0333', 'vlan_id': 333},
 {'name': 'VLAN 0460', 'vlan_id': 460},
 {'name': 'VLAN 0461', 'vlan_id': 461},
 {'name': 'Smartcom White', 'vlan_id': 464},
 {'name': 'VLAN 0603', 'vlan_id': 603},
 {'name': 'VLAN 0604', 'vlan_id': 604},
 {'name': 'VLAN 0605', 'vlan_id': 605},
 {'name': '3TR', 'vlan_id': 651},
 {'name': '5TR', 'vlan_id': 652},
 {'name': '6TR', 'vlan_id': 653},
 {'name': 'SAO', 'vlan_id': 654},
 {'name': '2TR', 'vlan_id': 655},
 {'name': 'LAO', 'vlan_id': 656},
 {'name': 'KAO', 'vlan_id': 657},
 {'name': 'OAO', 'vlan_id': 658},
 {'name': 'VLAN 0711', 'vlan_id': 711},
 {'name': 'VLAN 0720', 'vlan_id': 720},
 {'name': 'VLAN 0721', 'vlan_id': 721},
 {'name': 'VLAN 0777', 'vlan_id': 777},
 {'name': 'VLAN 0916', 'vlan_id': 916},
 {'name': 'VLAN 1998', 'vlan_id': 1998},
 {'name': 'VLAN 1999', 'vlan_id': 1999}]
    motd='\n'
    cli={
## 'display vlan all'
'display vlan all': """display vlan all
 VLAN ID: 1
 VLAN Type: static
 Route Interface: not configured
 Description: Default
 Name: VLAN 0001
 Tagged   Ports: none
 Untagged Ports: none

 VLAN ID: 20
 VLAN Type: static
 Route Interface: configured
 IP Address: 172.20.0.2
 Subnet Mask: 255.255.0.0
 Description: TGK11
 Name: VLAN 0020
 Tagged   Ports: 
  GigabitEthernet1/0/26    TenGigabitEthernet1/1/1  GigabitEthernet2/0/1     
  GigabitEthernet2/0/2     GigabitEthernet2/0/3     GigabitEthernet2/0/4     
  GigabitEthernet2/0/5     GigabitEthernet2/0/6     GigabitEthernet2/0/7     
  GigabitEthernet2/0/8     GigabitEthernet2/0/13    GigabitEthernet2/0/14    
  GigabitEthernet2/0/15    GigabitEthernet2/0/16    GigabitEthernet2/0/17    
  GigabitEthernet2/0/18    GigabitEthernet2/0/19    
 Untagged Ports: 
  GigabitEthernet2/0/11    
                                          
 VLAN ID: 40
 VLAN Type: static
 Route Interface: configured
 IP Address: 192.168.134.1
 Subnet Mask: 255.255.255.0
 Description: STK
 Name: STK
 Tagged   Ports: 
  GigabitEthernet1/0/6     
 Untagged Ports: none

 VLAN ID: 64
 VLAN Type: static
 Route Interface: not configured
 Description: ROSTelecom Internet
 Name: VLAN 0064
 Tagged   Ports: 
  GigabitEthernet1/0/25    GigabitEthernet2/0/12    GigabitEthernet2/0/23    
  GigabitEthernet2/0/24    
 Untagged Ports: none

 VLAN ID: 99
 VLAN Type: static
                                           Route Interface: configured
 IP Address: 10.99.200.2
 Subnet Mask: 255.255.240.0
 Description: Voice
 Name: VLAN 0099
 Tagged   Ports: 
  GigabitEthernet2/0/7     GigabitEthernet2/0/8     GigabitEthernet2/0/19    
 Untagged Ports: none

 VLAN ID: 132
 VLAN Type: static
 Route Interface: configured
 IP Address: 192.168.132.3
 Subnet Mask: 255.255.255.240
 Description: Transport
 Name: VLAN 0132
 Tagged   Ports: 
  GigabitEthernet1/0/25    GigabitEthernet1/0/26    GigabitEthernet2/0/21    
 Untagged Ports: none

 VLAN ID: 136
 VLAN Type: static
 Route Interface: configured
 IP Address: 192.168.6.2
                                           Subnet Mask: 255.255.255.252
 Description: MRSK
 Name: MRSK
 Tagged   Ports: none
 Untagged Ports: 
  GigabitEthernet2/0/20    

 VLAN ID: 150
 VLAN Type: static
 Route Interface: configured
 IP Address: 192.168.132.49
 Subnet Mask: 255.255.255.240
 Description: Smartcom Sbyt
 Name: VLAN 0150
 Tagged   Ports: 
  GigabitEthernet1/0/7     
 Untagged Ports: none

 VLAN ID: 169
 VLAN Type: static
 Route Interface: configured
 IP Address: 192.168.247.68
 Subnet Mask: 255.255.255.248
 Description: STK Polycom
                                           Name: VLAN 0169
 Tagged   Ports: none
 Untagged Ports: 
  GigabitEthernet1/0/6     

 VLAN ID: 198
 VLAN Type: static
 Route Interface: configured
 IP Address: 192.168.200.2
 Subnet Mask: 255.255.255.252
 Description: STK IPVPN
 Name: VLAN 0198
 Tagged   Ports: 
  GigabitEthernet1/0/6     
 Untagged Ports: none

 VLAN ID: 231
 VLAN Type: static
 Route Interface: not configured
 Description: noPanda
 Name: VLAN 0231
 Tagged   Ports: 
  GigabitEthernet1/0/25    TenGigabitEthernet1/1/1  GigabitEthernet2/0/3     
  GigabitEthernet2/0/14    GigabitEthernet2/0/19    
                                           Untagged Ports: none

 VLAN ID: 232
 VLAN Type: static
 Route Interface: not configured
 Description: Panda
 Name: VLAN 0232
 Tagged   Ports: 
  TenGigabitEthernet1/1/1  
 Untagged Ports: 
  GigabitEthernet1/0/27    

 VLAN ID: 333
 VLAN Type: static
 Route Interface: not configured
 Description: Enforta
 Name: VLAN 0333
 Tagged   Ports: 
  GigabitEthernet2/0/19    
 Untagged Ports: 
  GigabitEthernet2/0/9     

 VLAN ID: 460
 VLAN Type: static
                                           Route Interface: configured
 IP Address: 192.168.132.129
 Subnet Mask: 255.255.255.240
 Description: Smartcom TEC2
 Name: VLAN 0460
 Tagged   Ports: 
  GigabitEthernet1/0/7     
 Untagged Ports: none

 VLAN ID: 461
 VLAN Type: static
 Route Interface: configured
 IP Address: 192.168.66.222
 Subnet Mask: 255.255.255.252
 Description: Smartcom monitor
 Name: VLAN 0461
 Tagged   Ports: 
  GigabitEthernet1/0/7     
 Untagged Ports: none

 VLAN ID: 464
 VLAN Type: static
 Route Interface: configured
 IP Address: 77.221.196.50
                                           Subnet Mask: 255.255.255.252
 Description: Smartcom White
 Name: Smartcom White
 Tagged   Ports: 
  GigabitEthernet1/0/7     
 Untagged Ports: none

 VLAN ID: 603
 VLAN Type: static
 Route Interface: configured
 IP Address: 192.168.133.69
 Subnet Mask: 255.255.255.240
 Description: Transfer TEC3
 Name: VLAN 0603
 Tagged   Ports: 
  GigabitEthernet1/0/8     GigabitEthernet1/0/10    
 Untagged Ports: none

 VLAN ID: 604
 VLAN Type: static
 Route Interface: configured
 IP Address: 192.168.133.89
 Subnet Mask: 255.255.255.240
 Description: Transfer TEC4
                                           Name: VLAN 0604
 Tagged   Ports: 
  GigabitEthernet1/0/8     GigabitEthernet1/0/10    
 Untagged Ports: none

 VLAN ID: 605
 VLAN Type: static
 Route Interface: configured
 IP Address: 192.168.133.19
 Subnet Mask: 255.255.255.240
 Description: Transfer TEC5
 Name: VLAN 0605
 Tagged   Ports: 
  GigabitEthernet1/0/8     GigabitEthernet1/0/10    
 Untagged Ports: none

 VLAN ID: 651
 VLAN Type: static
 Route Interface: configured
 IP Address: 192.168.201.33
 Subnet Mask: 255.255.255.224
 Description: 3 Teplovoy Raijon
 Name: 3TR
 Tagged   Ports: 
                                            GigabitEthernet2/0/10    
 Untagged Ports: none

 VLAN ID: 652
 VLAN Type: static
 Route Interface: configured
 IP Address: 192.168.201.65
 Subnet Mask: 255.255.255.224
 Description: 5 Teplovoy Raijon
 Name: 5TR
 Tagged   Ports: 
  GigabitEthernet2/0/10    
 Untagged Ports: none

 VLAN ID: 653
 VLAN Type: static
 Route Interface: configured
 IP Address: 192.168.201.97
 Subnet Mask: 255.255.255.224
 Description: 6 Teplovoy Raijon
 Name: 6TR
 Tagged   Ports: 
  GigabitEthernet2/0/10    
 Untagged Ports: none
                                          
 VLAN ID: 654
 VLAN Type: static
 Route Interface: configured
 IP Address: 192.168.202.33
 Subnet Mask: 255.255.255.224
 Description: Sovetskiy Abonent Office
 Name: SAO
 Tagged   Ports: 
  GigabitEthernet2/0/10    
 Untagged Ports: none

 VLAN ID: 655
 VLAN Type: static
 Route Interface: configured
 IP Address: 192.168.201.1
 Subnet Mask: 255.255.255.224
 Description: 2 Teplovoy Raijon
 Name: 2TR
 Tagged   Ports: 
  GigabitEthernet2/0/10    
 Untagged Ports: none

 VLAN ID: 656
                                           VLAN Type: static
 Route Interface: configured
 IP Address: 192.168.202.1
 Subnet Mask: 255.255.255.224
 Description: Leninskiy Abonent Office
 Name: LAO
 Tagged   Ports: 
  GigabitEthernet2/0/10    
 Untagged Ports: none

 VLAN ID: 657
 VLAN Type: static
 Route Interface: configured
 IP Address: 192.168.202.65
 Subnet Mask: 255.255.255.224
 Description: Kirovskiy Abonent Office
 Name: KAO
 Tagged   Ports: 
  GigabitEthernet2/0/10    
 Untagged Ports: none

 VLAN ID: 658
 VLAN Type: static
 Route Interface: configured
                                           IP Address: 192.168.202.97
 Subnet Mask: 255.255.255.224
 Description: Oktyabrskiy Abonent Office
 Name: OAO
 Tagged   Ports: 
  GigabitEthernet2/0/10    
 Untagged Ports: none

 VLAN ID: 711
 VLAN Type: static
 Route Interface: configured
 IP Address: 192.168.132.39
 Subnet Mask: 255.255.255.240
 Description: Smartcom TS
 Name: VLAN 0711
 Tagged   Ports: 
  GigabitEthernet1/0/7     
 Untagged Ports: none

 VLAN ID: 720
 VLAN Type: static
 Route Interface: configured
 IP Address: 192.168.135.119
 Subnet Mask: 255.255.255.240
                                           Description: MTS KRK 1
 Name: VLAN 0720
 Tagged   Ports: 
  GigabitEthernet1/0/28    
 Untagged Ports: none

 VLAN ID: 721
 VLAN Type: static
 Route Interface: not configured
 Description: MTS KRK 2
 Name: VLAN 0721
 Tagged   Ports: 
  GigabitEthernet1/0/28    
 Untagged Ports: none

 VLAN ID: 777
 VLAN Type: static
 Route Interface: configured
 IP Address: 10.99.66.254
 Subnet Mask: 255.255.255.0
 Description: CCC
 Name: VLAN 0777
 Tagged   Ports: 
  GigabitEthernet2/0/8     
                                           Untagged Ports: 
  GigabitEthernet2/0/22    

 VLAN ID: 916
 VLAN Type: static
 Route Interface: not configured
 Description: IP-VPN
 Name: VLAN 0916
 Tagged   Ports: 
  GigabitEthernet2/0/12    GigabitEthernet2/0/23    GigabitEthernet2/0/24    
 Untagged Ports: none

 VLAN ID: 1998
 VLAN Type: static
 Route Interface: not configured
 Description: TTK Internet
 Name: VLAN 1998
 Tagged   Ports: 
  GigabitEthernet1/0/7     GigabitEthernet1/0/25    
 Untagged Ports: none

 VLAN ID: 1999
 VLAN Type: static
 Route Interface: not configured
                                           Description: TTK NSK
 Name: VLAN 1999
 Tagged   Ports: 
  GigabitEthernet1/0/7     GigabitEthernet1/0/26    
 Untagged Ports: none
""",
## 'display version'
'display version': """
%Mar 11 09:39:26:206 2011 5500G-EI-Mainframe SHELL/5/LOGIN:- 2 - admin(172.20.0.181) in unit2 logindisplay version
3Com Corporation
Switch 5500G-EI Software Version 3Com OS V3.03.02s56p05
Copyright (c) 2004-2009 3Com Corporation and its licensors, All rights reserved.
Switch 5500G-EI uptime is 35 weeks, 1 day, 2 hours, 53 minutes

Switch 5500G-EI 24-Port with 1 Processor
128M    bytes SDRAM
16384K  bytes Flash Memory
Config Register points to FLASH

Hardware Version is REV.C
CPLD Version is 002
Bootrom Version is 5.03
[Subslot 0] 24GE+4SFP  Hardware Version is 00.00.00 
[Subslot 2] 2 STACK Hardware Version is REV.C 
""",
}
    snmp_get={}
    snmp_getnext={}
