# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## H3C.VRP.get_vlans test
## Auto-generated by manage.py debug-script at 2011-03-11 09:52:41
##----------------------------------------------------------------------
## 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='4500G'
    version='5.02.00s56p12'
    input={}
    result=[{'name': 'VLAN 0001', 'vlan_id': 1},
 {'name': 'asutp', 'vlan_id': 16},
 {'name': 'term', 'vlan_id': 25},
 {'name': 'PRPOER', 'vlan_id': 31},
 {'name': 'VLAN 0099', 'vlan_id': 99}]
    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.20.175
 Subnet Mask: 255.255.255.0
 Description: VLAN 0001
 Name: VLAN 0001
 Tagged   Ports: none
 Untagged Ports: 
    GigabitEthernet1/0/1     GigabitEthernet1/0/2     GigabitEthernet1/0/3     
    GigabitEthernet1/0/4     GigabitEthernet1/0/6     GigabitEthernet1/0/7     
    GigabitEthernet1/0/8     GigabitEthernet1/0/10    GigabitEthernet1/0/11    
    GigabitEthernet1/0/12    GigabitEthernet1/0/13    GigabitEthernet1/0/14    
    GigabitEthernet1/0/16    GigabitEthernet1/0/17    GigabitEthernet1/0/18    
    GigabitEthernet1/0/19    GigabitEthernet1/0/20    GigabitEthernet1/0/22    
    GigabitEthernet1/0/23    GigabitEthernet1/0/24    GigabitEthernet1/0/25    
    GigabitEthernet1/0/26    GigabitEthernet1/0/27    GigabitEthernet1/0/28    

 VLAN ID: 16
 VLAN Type: static
 Route Interface: not configured
 Description: VLAN 0016
 Name: asutp
                 Tagged   Ports: 
    GigabitEthernet1/0/1     GigabitEthernet1/0/10    GigabitEthernet1/0/27    
    GigabitEthernet1/0/28    
 Untagged Ports: 
    GigabitEthernet1/0/9     GigabitEthernet1/0/21    

 VLAN ID: 25
 VLAN Type: static
 Route Interface: not configured
 Description: term
 Name: term
 Tagged   Ports: 
    GigabitEthernet1/0/1     GigabitEthernet1/0/27    GigabitEthernet1/0/28    
 Untagged Ports: 
    GigabitEthernet1/0/15    

 VLAN ID: 31
 VLAN Type: static
 Route Interface: not configured
 Description: PRP OmskEnergoRemont
 Name: PRPOER
 Tagged   Ports: 
    GigabitEthernet1/0/1     GigabitEthernet1/0/27    GigabitEthernet1/0/28    
                 Untagged Ports: none

 VLAN ID: 99
 VLAN Type: static
 Route Interface: not configured
 Description: VLAN 0099
 Name: VLAN 0099
 Tagged   Ports: 
    GigabitEthernet1/0/27    GigabitEthernet1/0/28    
 Untagged Ports: 
    GigabitEthernet1/0/5     
""",
## 'display version'
'display version': """display version
3Com Corporation
3Com Switch 4500G 24-Port Software Version 3Com OS V5.02.00s56p12
Copyright (c) 2004-2009 3Com Corp. and its licensors. All rights reserved.
3Com Switch 4500G 24-Port uptime is 41 weeks, 2 days, 5 hours, 11 minutes

3Com Switch 4500G 24-Port with 1 Processor
128M    bytes SDRAM
16384K  bytes Flash Memory

Hardware Version is REV.B
CPLD Version is 007
Bootrom Version is 503
[SubSlot 0] 24GE+4SFP Hardware Version is REV.B
""",
}
    snmp_get={}
    snmp_getnext={}
