# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## EdgeCore.ES.get_vlans test
## Auto-generated by manage.py debug-script at 2010-11-30 12:57:25
##----------------------------------------------------------------------
## 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='ES3526XA-V2'
    version='1.1.0.26'
    input={}
    result=[{'name': 'DefaultVlan', 'vlan_id': 1},
 {'name': 'Management', 'vlan_id': 69},
 {'name': 'servers', 'vlan_id': 100},
 {'name': 'VoIP', 'vlan_id': 298},
 {'name': 'DialUP-Server', 'vlan_id': 341},
 {'name': 'ELAN-Nortel', 'vlan_id': 999},
 {'name': '', 'vlan_id': 4093}]
    motd=' \n\n      CLI session with the ES3526XA is opened.\n      To end the CLI session, enter [Exit].\n\n'
    cli={
## 'show version'
'show version': """show version
 Serial Number:           A816001726
 Service Tag:             
 Hardware Version:        R01A2
 EPLD Version:            0.00
 Number of Ports:         26
 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 ES3526XA
System OID String: 1.3.6.1.4.1.259.8.1.5
System Information
 System Up Time:          379 days, 2 hours, 12 minutes, and 2.4 seconds
 System Name:             Polustrovskiy32
 System Location:         [NONE]
 System Contact:          [NONE]
 MAC Address (Unit1):     00-12-CF-90-82-A0
 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/17(S) Eth1/18(S) Eth1/19(S) Eth1/26(S)


VLAN ID:               69
Type:                  Static
Name:                  Management
Status:                Active
Ports/Port Channels:   Eth1/ 9(S) Eth1/21(S) Eth1/22(S) Eth1/23(S) Eth1/26(S)


VLAN ID:               100
Type:                  Static
Name:                  servers
Status:                Active
Ports/Port Channels:   Eth1/19(S) Eth1/26(S)


VLAN ID:               298
Type:                  Static
Name:                  VoIP
Status:                Active
Ports/Port Channels:   Eth1/18(S) Eth1/19(S) Eth1/25(S) Eth1/26(S)


VLAN ID:               341
Type:                  Static
Name:                  DialUP-Server
Status:                Active
Ports/Port Channels:   Eth1/20(S) Eth1/26(S)


VLAN ID:               999
Type:                  Static
Name:                  ELAN-Nortel
Status:                Active
Ports/Port Channels:   Eth1/ 1(S) Eth1/ 2(S) Eth1/ 3(S) Eth1/ 4(S) Eth1/ 5(S)
                   Eth1/ 6(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/10(S) Eth1/11(S)
                       Eth1/12(S) Eth1/13(S) Eth1/14(S) Eth1/15(S) Eth1/16(S)
                       Eth1/17(S) Eth1/18(S) Eth1/19(S) Eth1/20(S) Eth1/22(S)
                       Eth1/23(S) Eth1/24(S) Eth1/25(S) Eth1/26(S)
""",
}
    snmp_get={}
    snmp_getnext={}
