# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## EdgeCore.ES.get_vlans test
## Auto-generated by manage.py debug-script at 2010-11-30 13:02:10
##----------------------------------------------------------------------
## 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='ES4612'
    version='1.0.6.5'
    input={}
    result=[{'name': 'DefaultVlan', 'vlan_id': 1},
            {'name': 'Blackhole', 'vlan_id': 20},
            {'name': 'Managment', 'vlan_id': 69},
            {'name': 'iptv_uriki', 'vlan_id': 1100},
            {'name': 'KPD_NNNNlink4', 'vlan_id': 2108}]
    motd=''
    cli={
## 'show version'
'show version': """show version
Unit1
 Serial number          : A815031476
 Hardware version       : R01A
 Number of ports        :12
 Main power status      :up
 Redundant power status :not present

Agent (master)
 Unit ID                : 1
 Loader version         : 2.3.0.2
 Boot ROM version       : 2.2.0.1
 Operation code version : 1.0.6.5
""",
## 'show system'
'show system': """show system
System description: 8 SFP ports + 4 Gigabit Combo ports L2/L3/L4 managed standalone switch
System OID string: 1.3.6.1.4.1.259.6.10.57
System information
 System Up time: 362 days, 5 hours, 17 minutes, and 17.29 seconds
 System Name            : sw030-009-Piskarevskiy25
 System Location        : [NONE]
 System Contact         : [NONE]
 MAC address            : 00-12-CF-90-F5-00
 Web server             : enable
 Web server port        : 80
 Web secure server      : enable
 Web secure server port : 443
 Telnet server          : enable
 Telnet port            : 23
 Authentication login   :  TACACS local none
 Jumbo Frame :            Disabled 
 POST result              
DUMMY Test 1.................PASS
UART LOOP BACK Test..........PASS
DRAM Test....................PASS
Timer Test...................PASS
PCI Device 1 Test............PASS
I2C bus Initialization.......PASS
RTC Initialization...........PASS
Switch Int Loopback test.....PASS

Done All Pass.""",
## 'show vlan'
'show vlan': """show vlan
VLAN Type    Name             Status    Ports/Port Channel 
---- ------- ---------------- --------- ----------------------------------------
   1  Static      DefaultVlan    Active
  20  Static        Blackhole Suspended Eth1/ 1 Eth1/ 2 Eth1/ 3 Eth1/ 4 Eth1/ 5
                                        Eth1/ 6 Eth1/ 7 Eth1/ 8 Eth1/ 9 Eth1/11
                                        Eth1/12
  69  Static        Managment    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
1100  Static       iptv_uriki    Active Eth1/ 1 Eth1/ 2 Eth1/ 3 Eth1/ 4 Eth1/ 5
                                        Eth1/ 6 Eth1/ 7 Eth1/ 8 Eth1/ 9 Eth1/11
                                        Eth1/12
2108  Static    KPD_NNNNlink4    Active Eth1/ 8 Eth1/12""",
}
    snmp_get={}
    snmp_getnext={}
