# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## EdgeCore.ES.get_vlans test
## Auto-generated by manage.py debug-script at 2010-12-24 18:19:28
##----------------------------------------------------------------------
## 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='ES3526S'
    version='1.0.3.8'
    input={}
    result=[{'name': 'DefaultVlan', 'vlan_id': 1},
 {'name': 'Management', 'vlan_id': 99},
 {'name': 'CityTV', 'vlan_id': 100},
 {'name': 'PPPoE_Clients', 'vlan_id': 600}]
    motd=''
    cli={
## 'show version'
'show version': """show version
Unit1
 Serial number          :0012CF4B2223
 Service tag            :
 Hardware version       :R01
 Module A type          :not present
 Module B type          :not present
 Number of ports        :27
 Main power status      :up
 Redundant power status :not present
Agent(master)
 Unit id                :1
 Loader version         :1.7.0.2
 Boot rom version       :0.0.5.1
 Operation code version :1.0.3.8""",
## 'show system'
'show system': """show system
System description: ES3526S
System OID string: 1.3.6.1.4.1.259.6.10.46
System information
 System Up time: 49 days, 8 hours, 42 minutes, and 56.50 seconds
 System Name            : sw-3-potapovo
 System Location        : [NONE]
 System Contact         : [NONE]
 MAC address            : 00-12-CF-4B-22-23
 Web server             : enable
 Web server port        : 80
 Fan(1)                 : Ok
 Fan(2)                 : Ok
 Fan(3)                 : Ok
 Ingress rate limit     : Disabled
 POST result             
UART Loopback Test......................PASS
Timer Test..............................PASS
DRAM Test ..............................PASS
I2C Initialization......................PASS
AN983 Initialization....................PASS
AN983 Internal Loopback Test ...........PASS
Runtime Image Check ....................PASS
PCI Device Check .......................PASS
Writing Xlinx FPGA image................PASS
Switch Driver Initialization............PASS
------------------- DONE --------------------
""",
## 'show vlan'
'show vlan': """show vlan
VLAN Type    Name             Status    Ports/Channel groups
---- ------- ---------------- --------- ----------------------------------------
   1  Static      DefaultVlan    Active Eth1/ 1 Eth1/ 2 Eth1/ 3 Eth1/ 4 Eth1/ 5
                                        Eth1/ 6 Eth1/ 7 Eth1/ 8 Eth1/ 9 Eth1/10
                                        Eth1/11 Eth1/12 Eth1/13 Eth1/14 Eth1/15
                                        Eth1/16 Eth1/17 Eth1/18 Eth1/19 Eth1/20
                                        Eth1/21 Eth1/22 Eth1/23 Eth1/24 Eth1/26
                                        Eth1/27
  99  Static       Management    Active Eth1/ 1 Eth1/ 2 Eth1/ 3 Eth1/ 4 Eth1/ 5
                                        Eth1/ 6 Eth1/ 7 Eth1/ 8 Eth1/ 9 Eth1/10
                                        Eth1/11 Eth1/12 Eth1/13 Eth1/14 Eth1/15
                                        Eth1/16 Eth1/17 Eth1/18 Eth1/19 Eth1/20
                                        Eth1/21 Eth1/22 Eth1/23 Eth1/24 Eth1/25
                                        Eth1/26
 100  Static           CityTV    Active Eth1/ 1 Eth1/ 2 Eth1/ 3 Eth1/ 4 Eth1/ 5
                                        Eth1/ 6 Eth1/ 7 Eth1/ 8 Eth1/ 9 Eth1/10
                                        Eth1/11 Eth1/12 Eth1/13 Eth1/14 Eth1/15
                                        Eth1/16 Eth1/17 Eth1/18 Eth1/19 Eth1/20
                                        Eth1/21 Eth1/22 Eth1/23 Eth1/24 Eth1/25
                                        Eth1/26
 600  Static    PPPoE_Clients    Active Eth1/ 1 Eth1/ 2 Eth1/ 3 Eth1/ 4 Eth1/ 5
                                        Eth1/ 6 Eth1/ 7 Eth1/ 8 Eth1/ 9 Eth1/10
                                        Eth1/11 Eth1/12 Eth1/13 Eth1/14 Eth1/15
                                    Eth1/16 Eth1/17 Eth1/18 Eth1/19 Eth1/20
                                        Eth1/21 Eth1/22 Eth1/23 Eth1/24 Eth1/25
                                        Eth1/26""",
}
    snmp_get={}
    snmp_getnext={}
