# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## EdgeCore.ES.get_interface_status test
## Auto-generated by manage.py debug-script at 2011-03-04 21:58:19
##----------------------------------------------------------------------
## Copyright (C) 2007-2011 The NOC Project
## See LICENSE for details
##----------------------------------------------------------------------
from noc.lib.test import ScriptTestCase
class EdgeCore_ES_get_interface_status_Test(ScriptTestCase):
    script="EdgeCore.ES.get_interface_status"
    vendor="EdgeCore"
    platform='ES3510'
    version='1.1.0.26'
    input={}
    result=[{'interface': 'Eth 1/1', 'status': True},
 {'interface': 'Eth 1/2', 'status': True},
 {'interface': 'Eth 1/3', 'status': False},
 {'interface': 'Eth 1/4', 'status': True},
 {'interface': 'Eth 1/5', 'status': True},
 {'interface': 'Eth 1/6', 'status': False},
 {'interface': 'Eth 1/7', 'status': True},
 {'interface': 'Eth 1/8', 'status': True},
 {'interface': 'Eth 1/9', 'status': True},
 {'interface': 'Eth 1/10', 'status': False},
 {'interface': 'VLAN1', 'status': True},
 {'interface': 'VLAN27', 'status': True},
 {'interface': 'VLAN101', 'status': True},
 {'interface': 'VLAN900', 'status': True},
 {'interface': 'VLAN4093', 'status': True}]
    motd=' \n\n      CLI session with the ES3510 is opened.\n      To end the CLI session, enter [Exit].\n\n'
    cli={
'show interface status | include line protocol is':  "show interface status | include line protocol is\n                                              ^\n% Invalid input detected at '^' marker.\n",
## 'show interface status'
'show interface status': """show interface status
Information of Eth 1/1
 Basic Information: 
  Port Type:              100TX
  Mac Address:            00-12-CF-8A-F3-31
 Configuration: 
  Name:                   
  Port Admin:             Up
  Speed-duplex:           Auto
  Capabilities:           10half, 10full, 100half, 100full
  Broadcast Storm:        Enabled
  Broadcast Storm Limit:  scale:8000K level:5 octets/second
  Flow Control:           Disabled
  LACP:                   Disabled
  Port Security:          Disabled
  Max MAC Count:          0
  Port Security Action:   None
 Current Status: 
  Link Status:            Up
  Port Operation Status:  Up
  Operation Speed-duplex: 100full
  Flow Control Type:      None

Information of Eth 1/2
 Basic Information: 
  Port Type:              100TX
  Mac Address:            00-12-CF-8A-F3-32
 Configuration: 
  Name:                   
  Port Admin:             Up
  Speed-duplex:           Auto
  Capabilities:           10half, 10full, 100half, 100full
  Broadcast Storm:        Enabled
  Broadcast Storm Limit:  scale:8000K level:5 octets/second
  Flow Control:           Disabled
  LACP:                   Disabled
  Port Security:          Disabled
  Max MAC Count:          0
  Port Security Action:   None
 Current Status: 
Link Status:            Up
  Port Operation Status:  Up
  Operation Speed-duplex: 100full
  Flow Control Type:      None

Information of Eth 1/3
 Basic Information: 
  Port Type:              100TX
  Mac Address:            00-12-CF-8A-F3-33
 Configuration: 
  Name:                   
  Port Admin:             Up
  Speed-duplex:           Auto
  Capabilities:           10half, 10full, 100half, 100full
  Broadcast Storm:        Enabled
  Broadcast Storm Limit:  scale:8000K level:5 octets/second
  Flow Control:           Disabled
  LACP:                   Disabled
  Port Security:          Disabled
  Max MAC Count:          0
  Port Security Action:   None
 Current Status: 
  Link Status:            Down
  Operation Speed-duplex: 100full
  Flow Control Type:      None

Information of Eth 1/4
 Basic Information: 
  Port Type:              100TX
  Mac Address:            00-12-CF-8A-F3-34
 Configuration: 
  Name:                   
  Port Admin:             Up
  Speed-duplex:           Auto
  Capabilities:           10half, 10full, 100half, 100full
  Broadcast Storm:        Enabled
  Broadcast Storm Limit:  scale:8000K level:5 octets/second
  Flow Control:           Disabled
  LACP:                   Disabled
Port Security:          Disabled
  Max MAC Count:          0
  Port Security Action:   None
 Current Status: 
  Link Status:            Up
  Port Operation Status:  Up
  Operation Speed-duplex: 100full
  Flow Control Type:      None

Information of Eth 1/5
 Basic Information: 
  Port Type:              100TX
  Mac Address:            00-12-CF-8A-F3-35
 Configuration: 
  Name:                   
  Port Admin:             Up
  Speed-duplex:           Auto
  Capabilities:           10half, 10full, 100half, 100full
  Broadcast Storm:        Enabled
  Broadcast Storm Limit:  scale:8000K level:5 octets/second
  Flow Control:           Disabled
  LACP:                   Disabled
  Port Security:          Disabled
  Max MAC Count:          0
  Port Security Action:   None
 Current Status: 
  Link Status:            Up
  Port Operation Status:  Up
  Operation Speed-duplex: 10full
  Flow Control Type:      None

Information of Eth 1/6
 Basic Information: 
  Port Type:              100TX
  Mac Address:            00-12-CF-8A-F3-36
 Configuration: 
  Name:                   
  Port Admin:             Up
  Speed-duplex:           Auto
Capabilities:           10half, 10full, 100half, 100full
  Broadcast Storm:        Enabled
  Broadcast Storm Limit:  scale:8000K level:5 octets/second
  Flow Control:           Disabled
  LACP:                   Disabled
  Port Security:          Disabled
  Max MAC Count:          0
  Port Security Action:   None
 Current Status: 
  Link Status:            Down
  Operation Speed-duplex: 100full
  Flow Control Type:      None

Information of Eth 1/7
 Basic Information: 
  Port Type:              100TX
  Mac Address:            00-12-CF-8A-F3-37
 Configuration: 
  Name:                   
  Port Admin:             Up
  Speed-duplex:           Auto
  Capabilities:           10half, 10full, 100half, 100full
  Broadcast Storm:        Enabled
  Broadcast Storm Limit:  scale:8000K level:5 octets/second
  Flow Control:           Disabled
  LACP:                   Disabled
  Port Security:          Disabled
  Max MAC Count:          0
  Port Security Action:   None
 Current Status: 
  Link Status:            Up
  Port Operation Status:  Up
  Operation Speed-duplex: 100full
  Flow Control Type:      None

Information of Eth 1/8
 Basic Information: 
  Port Type:              100TX
  Mac Address:            00-12-CF-8A-F3-38
Configuration: 
  Name:                   
  Port Admin:             Up
  Speed-duplex:           Auto
  Capabilities:           10half, 10full, 100half, 100full
  Broadcast Storm:        Enabled
  Broadcast Storm Limit:  scale:8000K level:5 octets/second
  Flow Control:           Disabled
  LACP:                   Disabled
  Port Security:          Disabled
  Max MAC Count:          0
  Port Security Action:   None
 Current Status: 
  Link Status:            Up
  Port Operation Status:  Up
  Operation Speed-duplex: 100full
  Flow Control Type:      None

Information of Eth 1/9
 Basic Information: 
  Port Type:              1000T
  Mac Address:            00-12-CF-8A-F3-39
 Configuration: 
  Name:                   
  Port Admin:             Up
  Speed-duplex:           Auto
  Capabilities:           10half, 10full, 100half, 100full, 1000full
  Broadcast Storm:        Enabled
  Broadcast Storm Limit:  scale:8000K level:5 octets/second
  Flow Control:           Disabled
  LACP:                   Disabled
  Port Security:          Disabled
  Max MAC Count:          0
  Port Security Action:   None
 Current Status: 
  Link Status:            Up
  Port Operation Status:  Up
  Operation Speed-duplex: 100full
  Flow Control Type:      None

Information of Eth 1/10
 Basic Information: 
  Port Type:              1000T
  Mac Address:            00-12-CF-8A-F3-3A
 Configuration: 
  Name:                   
  Port Admin:             Up
  Speed-duplex:           Auto
  Capabilities:           10half, 10full, 100half, 100full, 1000full
  Broadcast Storm:        Enabled
  Broadcast Storm Limit:  scale:8000K level:5 octets/second
  Flow Control:           Disabled
  LACP:                   Disabled
  Port Security:          Disabled
  Max MAC Count:          0
  Port Security Action:   None
 Current Status: 
  Link Status:            Down
  Operation Speed-duplex: 1000full
  Flow Control Type:      None

Information of VLAN 1
 MAC Address:             00-12-CF-8A-F3-30

Information of VLAN 27
 MAC Address:             00-12-CF-8A-F3-30

Information of VLAN 101
 MAC Address:             00-12-CF-8A-F3-30

Information of VLAN 900
 MAC Address:             00-12-CF-8A-F3-30

Information of VLAN 4093
 MAC Address:             00-12-CF-8A-F3-30

""",
}
    snmp_get={}
    snmp_getnext={}
