# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## H3C.VRP.get_vlans test
## Auto-generated by manage.py debug-script at 2011-03-11 09:11:05
##----------------------------------------------------------------------
## 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='4200G'
    version='3.01.00s56'
    input={}
    result=[{'name': 'VLAN 0001', 'vlan_id': 1},
 {'name': 'VLAN 0020', 'vlan_id': 20},
 {'name': 'VLAN 0231', 'vlan_id': 231},
 {'name': 'VLAN 0232', 'vlan_id': 232}]
    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.200
 Subnet Mask: 255.255.0.0
 Description: TGK11
 Name: VLAN 0020
 Tagged   Ports: 
  TenGigabitEthernet1/1/1  
 Untagged Ports: 
  GigabitEthernet1/0/1     GigabitEthernet1/0/2     GigabitEthernet1/0/3     
  GigabitEthernet1/0/4     GigabitEthernet1/0/5     GigabitEthernet1/0/6     
  GigabitEthernet1/0/7     GigabitEthernet1/0/8     GigabitEthernet1/0/9     
  GigabitEthernet1/0/10    GigabitEthernet1/0/11    GigabitEthernet1/0/17    
  GigabitEthernet1/0/18    GigabitEthernet1/0/19    GigabitEthernet1/0/20    
  GigabitEthernet1/0/21    GigabitEthernet1/0/22    GigabitEthernet1/0/25    
                                            GigabitEthernet1/0/26    GigabitEthernet1/0/27    GigabitEthernet1/0/28    
  GigabitEthernet1/0/29    GigabitEthernet1/0/30    GigabitEthernet1/0/31    
  GigabitEthernet1/0/32    GigabitEthernet1/0/33    GigabitEthernet1/0/34    
  GigabitEthernet1/0/35    GigabitEthernet1/0/36    GigabitEthernet1/0/37    
  GigabitEthernet1/0/38    GigabitEthernet1/0/39    GigabitEthernet1/0/40    
  GigabitEthernet1/0/41    GigabitEthernet1/0/42    GigabitEthernet1/0/43    
  GigabitEthernet1/0/44    GigabitEthernet1/0/45    GigabitEthernet1/0/46    

 VLAN ID: 231
 VLAN Type: static
 Route Interface: not configured
 Description: noPanda
 Name: VLAN 0231
 Tagged   Ports: 
  TenGigabitEthernet1/1/1  
 Untagged Ports: 
  GigabitEthernet1/0/11    GigabitEthernet1/0/12    GigabitEthernet1/0/16    

 VLAN ID: 232
 VLAN Type: static
 Route Interface: not configured
 Description: Panda
 Name: VLAN 0232
 Tagged   Ports: 
                                            TenGigabitEthernet1/1/1  
 Untagged Ports: 
  GigabitEthernet1/0/11    GigabitEthernet1/0/13    GigabitEthernet1/0/14    
  GigabitEthernet1/0/15    
""",
## 'display version'
'display version': """
%Dec  9 17:01:06:174 2000 4200G SHELL/5/LOGIN:- 1 - admin(172.20.0.181) in unit1 logindisplay version
3Com Corporation
Switch 4200G 48-Port Software Version 3Com OS V3.01.00s56
Copyright(c) 2004-2006 3Com Corporation and its licensors, All rights reserved.
Switch 4200G 48-Port uptime is 35 weeks, 6 days, 17 hours, 6 minutes

Switch 4200G 48-Port with 1 MIPS Processor
64M   bytes DRAM
16M   bytes Flash Memory
Config Register points to FLASH

Hardware Version is REV.B
CPLD Version is 002
Bootrom Version is 1.00
[SubSlot 0] 48 GE ( 4 COMBO ) Hardware Version is REV.B
[SubSlot 1] 1  XGE Hardware Version is REV.B
""",
}
    snmp_get={}
    snmp_getnext={}
