# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## EdgeCore.ES.get_vlans test
## Auto-generated by manage.py debug-script at 2010-11-30 12:58:11
##----------------------------------------------------------------------
## Copyright (C) 2007-2010 The NOC Project
## See LICENSE for details
##----------------------------------------------------------------------
from noc.lib.test import ScriptTestCase
class EdgeCore_ES_get_vlans_Test(ScriptTestCase):
    script="EdgeCore.ES.get_vlans"
    vendor="EdgeCore"
    platform='ES4626-SFP'
    version='5.4.146.0'
    input={}
    result=[{'name': 'default', 'vlan_id': 1},
 {'name': 'VLAN0010', 'vlan_id': 10},
 {'name': 'VLAN0011', 'vlan_id': 11},
 {'name': 'VLAN0019', 'vlan_id': 19},
 {'name': 'VLAN0021', 'vlan_id': 21},
 {'name': 'VLAN0022', 'vlan_id': 22},
 {'name': 'Untagged-01', 'vlan_id': 4001},
 {'name': 'Untagged-02', 'vlan_id': 4002},
 {'name': 'Untagged-03', 'vlan_id': 4003},
 {'name': 'Untagged-04', 'vlan_id': 4004},
 {'name': 'Untagged-05', 'vlan_id': 4005},
 {'name': 'Untagged-06', 'vlan_id': 4006},
 {'name': 'Untagged-07', 'vlan_id': 4007},
 {'name': 'Untagged-08', 'vlan_id': 4008},
 {'name': 'Untagged-09', 'vlan_id': 4009},
 {'name': 'Untagged-10', 'vlan_id': 4010},
 {'name': 'Untagged-11', 'vlan_id': 4011},
 {'name': 'Untagged-12', 'vlan_id': 4012},
 {'name': 'Untagged-13', 'vlan_id': 4013},
 {'name': 'Untagged-14', 'vlan_id': 4014},
 {'name': 'Untagged-15', 'vlan_id': 4015},
 {'name': 'Untagged-16', 'vlan_id': 4016},
 {'name': 'Untagged-17', 'vlan_id': 4017},
 {'name': 'Untagged-18', 'vlan_id': 4018},
 {'name': 'Untagged-19', 'vlan_id': 4019},
 {'name': 'Untagged-20', 'vlan_id': 4020},
 {'name': 'Untagged-21', 'vlan_id': 4021},
 {'name': 'Untagged-22', 'vlan_id': 4022},
 {'name': 'Untagged-23', 'vlan_id': 4023},
 {'name': 'Untagged-24', 'vlan_id': 4024},
 {'name': 'Untagged-25', 'vlan_id': 4025},
 {'name': 'Untagged-26', 'vlan_id': 4026}]
    motd='********\n'
    cli={
## 'show version 1'
'show version 1': """show version 1
  ES4626-SFP Device, Compiled Jan 15 18:30:40 2009
  SoftWare Package Version ES4626-SFP_5.4.146.0
  BootRom Version ES4626-SFP_1.6.5
  HardWare Version 3.0
  Copyright (C) 2001-2007 by Accton Technology Corp.
  All rights reserved.
  Last reboot is cold reset.
  Uptime is 24 weeks, 4 days, 2 hours, 52 minutes.""",
## 'show system'
'show system': """show system
                     ^
% Invalid input detected at '^' marker.
""",
## 'show vlan'
'show vlan': """show vlan
VLAN Name         Type       Media     Ports
---- ------------ ---------- --------- ----------------------------------------
1    default      Static     ENET      Ethernet1/1         Ethernet1/4        
                                       Ethernet1/5         Ethernet1/6        
                                       Ethernet1/7         Ethernet1/8        
                                       Ethernet1/9         Ethernet1/10       
                                       Ethernet1/11        Ethernet1/12       
                                       Ethernet1/21        Ethernet1/22       
                                       Ethernet1/23        Ethernet1/25       
                                       Ethernet1/26       
10   VLAN0010     Static     ENET      Ethernet1/3(T)      Ethernet1/14(T)    
11   VLAN0011     Static     ENET      Ethernet1/2(T)      Ethernet1/3(T)     
                                       Ethernet1/15(T)     Ethernet1/20(T)    
19   VLAN0019     Static     ENET      Ethernet1/2(T)     
21   VLAN0021     Static     ENET      Ethernet1/24(T)    
22   VLAN0022     Static     ENET     
4001 Untagged-01  Static     ENET     
4002 Untagged-02  Static     ENET      Ethernet1/2(T)     
4003 Untagged-03  Static     ENET      Ethernet1/3(T)     
4004 Untagged-04  Static     ENET     
4005 Untagged-05  Static     ENET     
4006 Untagged-06  Static     ENET     
4007 Untagged-07  Static     ENET     
4008 Untagged-08  Static     ENET     
4009 Untagged-09  Static     ENET     
4010 Untagged-10  Static     ENET     
4011 Untagged-11  Static     ENET     
4012 Untagged-12  Static     ENET     
 4013 Untagged-13  Static     ENET      Ethernet1/13(T)    
4014 Untagged-14  Static     ENET      Ethernet1/14(T)    
4015 Untagged-15  Static     ENET      Ethernet1/15(T)    
4016 Untagged-16  Static     ENET      Ethernet1/16(T)    
4017 Untagged-17  Static     ENET      Ethernet1/17(T)    
4018 Untagged-18  Static     ENET      Ethernet1/18(T)    
4019 Untagged-19  Static     ENET      Ethernet1/19(T)     Ethernet1/20(T)    
4020 Untagged-20  Static     ENET     
4021 Untagged-21  Static     ENET     
4022 Untagged-22  Static     ENET     
4023 Untagged-23  Static     ENET     
4024 Untagged-24  Static     ENET      Ethernet1/24(T)    
4025 Untagged-25  Static     ENET     
4026 Untagged-26  Static     ENET     """,
}
    snmp_get={}
    snmp_getnext={}
