# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## H3C.VRP.get_vlans test
## Auto-generated by manage.py debug-script at 2011-03-11 09:19:37
##----------------------------------------------------------------------
## 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='5500-EI'
    version='3.02.03s56'
    input={}
    result=[{'name': 'VLAN 0001', 'vlan_id': 1},
 {'name': 'STK', 'vlan_id': 40},
 {'name': 'Voice', 'vlan_id': 99},
 {'name': 'Smartcom monitor', 'vlan_id': 463},
 {'name': 'Smartcom TS', 'vlan_id': 711},
 {'name': 'TTK Internet', 'vlan_id': 1998},
 {'name': 'TTK NSK', 'vlan_id': 1999}]
    motd='\n'
    cli={
## 'display vlan all'
'display vlan all': """display vlan all
 VLAN ID: 1
 VLAN Type: static
 Route Interface: configured
 IP Address: 192.168.4.1
 Subnet Mask: 255.255.255.0
 Description: VLAN 0001
 Name: VLAN 0001
 Tagged   Ports: none
 Untagged Ports: 
  Ethernet1/0/4            Ethernet1/0/5            Ethernet1/0/6            
  Ethernet1/0/7            Ethernet1/0/8            Ethernet1/0/9            
  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           GigabitEthernet1/0/25    
  GigabitEthernet1/0/26    GigabitEthernet1/0/27    GigabitEthernet1/0/28    

 VLAN ID: 40
 VLAN Type: static
 Route Interface: configured
 IP Address: 192.168.134.40
 Subnet Mask: 255.255.255.0
 Description: STK
 Name: STK
                                           Tagged   Ports: none
 Untagged Ports: 
  Ethernet1/0/22           

 VLAN ID: 99
 VLAN Type: static
 Route Interface: configured
 IP Address: 10.99.40.2
 Subnet Mask: 255.255.240.0
 Description: Voice
 Name: Voice
 Tagged   Ports: none
 Untagged Ports: 
  Ethernet1/0/1            Ethernet1/0/2            Ethernet1/0/3            
  Ethernet1/0/10           

 VLAN ID: 463
 VLAN Type: static
 Route Interface: configured
 IP Address: 192.168.29.66
 Subnet Mask: 255.255.255.252
 Description: Smartcom monitor
 Name: Smartcom monitor
 Tagged   Ports: 
                                            Ethernet1/0/23           
 Untagged Ports: none

 VLAN ID: 711
 VLAN Type: static
 Route Interface: configured
 IP Address: 192.168.132.40
 Subnet Mask: 255.255.255.240
 Description: Smartcom TS
 Name: Smartcom TS
 Tagged   Ports: 
  Ethernet1/0/23           
 Untagged Ports: none

 VLAN ID: 1998
 VLAN Type: static
 Route Interface: not configured
 Description: TTK Internet
 Name: TTK Internet
 Tagged   Ports: 
  Ethernet1/0/23           Ethernet1/0/24           
 Untagged Ports: none

 VLAN ID: 1999
                                           VLAN Type: static
 Route Interface: not configured
 Description: TTK NSK
 Name: TTK NSK
 Tagged   Ports: 
  Ethernet1/0/23           Ethernet1/0/24           
 Untagged Ports: none
""",
## 'display version'
'display version': """
%Oct 23 01:09:54:602 2000 5500-EI-TC SHELL/5/LOGIN:- 1 - admin(172.20.0.181) in unit1 logindisplay version
3Com Corporation
SuperStack 4 Switch 5500-EI 28-Port Software Version 3Com OS V3.02.03s56
Copyright (c) 2004-2007 3Com Corporation and its licensors, All rights reserved.
SuperStack 4 Switch 5500-EI 28-Port uptime is 29 weeks, 1 day, 1 hour, 14 minutes

SuperStack 4 Switch 5500-EI 28-Port with 1 MIPS Processor
64M     bytes DRAM
16384K  bytes Flash Memory
Config Register points to FLASH

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