# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## EdgeCore.ES.get_vlans test
## Auto-generated by manage.py debug-script at 2010-11-30 12:58:40
##----------------------------------------------------------------------
## 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='ES3510'
    version='1.1.0.26'
    input={}
    result=[{'name': 'DefaultVlan', 'vlan_id': 1},
 {'name': 'Native', 'vlan_id': 20},
 {'name': 'Management', 'vlan_id': 69},
 {'name': '', 'vlan_id': 4093}]
    motd=' \n\n      CLI session with the ES3510 is opened.\n      To end the CLI session, enter [Exit].\n\n'
    cli={
## 'show version'
'show version': """show version
 Serial Number:           0012CF8B00D0
 Service Tag:             
 Hardware Version:        R01
 EPLD Version:            0.00
 Number of Ports:         10
 Main Power Status:       Up
 Loader Version:          1.0.0.2
 Boot ROM Version:        1.0.0.5
 Operation Code Version:  1.1.0.26
""",
## 'show system'
'show system': """show system
System Description: Layer2+ Fast Ethernet Standalone Switch ES3510
System OID String: 1.3.6.1.4.1.259.8.1.6
System Information
 System Up Time:          19 days, 14 hours, 7 minutes, and 24.91 seconds
 System Name:             Maliy_pr_Petr_Stor_2/5_Mika
 System Location:         [NONE]
 System Contact:          [NONE]
 MAC Address (Unit1):     00-12-CF-8B-00-D0
 Web Server:              Enabled
 Web Server Port:         80
 Web Secure Server:       Enabled
 Web Secure Server Port:  443
 Telnet Server:           Enable
 Telnet Server Port:      23
 Authentication Login:     TACACS Local None
 Jumbo Frame:             Disabled 

 POST Result:              
DUMMY Test 1 ................. PASS
UART Loopback Test ........... PASS
DRAM Test .................... PASS
Switch Int Loopback Test ..... PASS

Done All Pass.""",
## 'show vlan'
'show vlan': """show vlan
Default VLAN ID : 1


VLAN ID:               1
Type:                  Static
Name:                  DefaultVlan
Status:                Active
Ports/Port Channels:   Eth1/ 1(S) Eth1/ 2(S) Eth1/ 3(S) Eth1/ 4(S) Eth1/ 5(S)
                       Eth1/ 6(S) Eth1/ 7(S) Eth1/ 8(S) Eth1/ 9(S) Eth1/10(S)


VLAN ID:               20
Type:                  Static
Name:                  Native
Status:                Suspended
Ports/Port Channels:   Eth1/ 9(S) Eth1/10(S)


VLAN ID:               69
Type:                  Static
Name:                  Management
Status:                Active
Ports/Port Channels:   Eth1/ 9(S) Eth1/10(S)


VLAN ID:               4093
Type:                  Static
Name:                  
Status:                Active
Ports/Port Channels:   Eth1/ 1(S) Eth1/ 2(S) Eth1/ 3(S) Eth1/ 4(S) Eth1/ 5(S)
                       Eth1/ 6(S) Eth1/ 7(S) Eth1/ 8(S) Eth1/ 9(S) Eth1/10(S)
""",
}
    snmp_get={}
    snmp_getnext={}
