# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## EdgeCore.ES.get_version test
## Auto-generated by manage.py debug-script at 2010-12-24 17:56:46
##----------------------------------------------------------------------
## Copyright (C) 2007-2010 The NOC Project
## See LICENSE for details
##----------------------------------------------------------------------
from noc.lib.test import ScriptTestCase
class EdgeCore_ES_get_version_Test(ScriptTestCase):
    script="EdgeCore.ES.get_version"
    vendor="EdgeCore"
    platform='ES3526S'
    version='1.0.3.8'
    input={}
    result={'platform': 'ES3526S', 'version': '1.0.3.8', 'vendor': 'EdgeCore'}
    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, 20 minutes, and 15.1 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 --------------------
""",
}
    snmp_get={}
    snmp_getnext={}
