# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## H3C.VRP.get_vlans test
## Auto-generated by manage.py debug-script at 2011-03-11 09:25:08
##----------------------------------------------------------------------
## 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='4500'
    version='3.03.02s56p05'
    input={}
    result=[{'name': 'VLAN 0001', 'vlan_id': 1}, {'name': 'VLAN 0020', 'vlan_id': 20}]
    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.201
 Subnet Mask: 255.255.0.0
 Description: TGK11
 Name: VLAN 0020
 Tagged   Ports: 
  GigabitEthernet1/0/51    GigabitEthernet1/0/52    
 Untagged Ports: 
  Ethernet1/0/1            Ethernet1/0/2            Ethernet1/0/3            
  Ethernet1/0/4            Ethernet1/0/5            Ethernet1/0/6            
  Ethernet1/0/7            Ethernet1/0/8            Ethernet1/0/9            
  Ethernet1/0/10           Ethernet1/0/11           Ethernet1/0/12           
  Ethernet1/0/13           Ethernet1/0/14           Ethernet1/0/15           
  Ethernet1/0/16           Ethernet1/0/17           Ethernet1/0/18           
                                            Ethernet1/0/19           Ethernet1/0/20           Ethernet1/0/21           
  Ethernet1/0/22           Ethernet1/0/23           Ethernet1/0/24           
  Ethernet1/0/25           Ethernet1/0/26           Ethernet1/0/27           
  Ethernet1/0/28           Ethernet1/0/29           Ethernet1/0/30           
  Ethernet1/0/31           Ethernet1/0/32           Ethernet1/0/33           
  Ethernet1/0/34           Ethernet1/0/35           Ethernet1/0/36           
  Ethernet1/0/37           Ethernet1/0/38           Ethernet1/0/39           
  Ethernet1/0/40           Ethernet1/0/41           Ethernet1/0/42           
  Ethernet1/0/43           Ethernet1/0/44           Ethernet1/0/45           
  Ethernet1/0/46           Ethernet1/0/47           Ethernet1/0/48           
""",
## 'display version'
'display version': """
%Mar 11 09:25:02:209 2011 4500 SHELL/5/LOGIN:- 1 - admin(172.20.0.181) in unit1 logindisplay version
3Com Corporation
Switch 4500 50-Port Software Version 3Com OS V3.03.02s56p05
Copyright (c) 2004-2009 3Com Corporation and its licensors, All rights reserved.
Switch 4500 50-Port uptime is 14 weeks, 2 days, 11 hours, 58 minutes

Switch 4500 50-Port with 1 Processor
64M     bytes DRAM
8196K   bytes Flash Memory
Config Register points to FLASH

CPLD Version is CPLD 001
Bootrom Version is 4.02
[Subslot 0] 48 FE + 4 GE Hardware Version is 00.00.00 
""",
}
    snmp_get={}
    snmp_getnext={}
