# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## EdgeCore.ES.get_interface_status test
## Auto-generated by manage.py debug-script at 2011-03-04 21:37:25
##----------------------------------------------------------------------
## 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='ES3526XA-V2'
    version='1.1.0.29'
    input={}
    result=[{'interface': 'Eth 1/1', 'status': False},
 {'interface': 'Eth 1/2', 'status': False},
 {'interface': 'Eth 1/3', 'status': True},
 {'interface': 'Eth 1/4', 'status': False},
 {'interface': 'Eth 1/5', 'status': True},
 {'interface': 'Eth 1/6', 'status': False},
 {'interface': 'Eth 1/7', 'status': True},
 {'interface': 'Eth 1/8', 'status': False},
 {'interface': 'Eth 1/9', 'status': False},
 {'interface': 'Eth 1/10', 'status': False},
 {'interface': 'Eth 1/11', 'status': True},
 {'interface': 'Eth 1/12', 'status': False},
 {'interface': 'Eth 1/13', 'status': True},
 {'interface': 'Eth 1/14', 'status': False},
 {'interface': 'Eth 1/15', 'status': False},
 {'interface': 'Eth 1/16', 'status': False},
 {'interface': 'Eth 1/17', 'status': True},
 {'interface': 'Eth 1/18', 'status': True},
 {'interface': 'Eth 1/19', 'status': True},
 {'interface': 'Eth 1/20', 'status': True},
 {'interface': 'Eth 1/21', 'status': True},
 {'interface': 'Eth 1/22', 'status': False},
 {'interface': 'Eth 1/23', 'status': True},
 {'interface': 'Eth 1/24', 'status': True},
 {'interface': 'Eth 1/25', 'status': True},
 {'interface': 'Eth 1/26', 'status': True},
 {'interface': 'VLAN1', 'status': True},
 {'interface': 'VLAN104', 'status': True},
 {'interface': 'VLAN900', 'status': True},
 {'interface': 'VLAN4093', 'status': True}]
    motd=' \n\n      CLI session with the ES3526XA 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-89-C1-41
 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/2
 Basic Information: 
  Port Type:              100TX
  Mac Address:            00-12-CF-89-C1-42
 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/3
 Basic Information: 
  Port Type:              100TX
  Mac Address:            00-12-CF-89-C1-43
 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/4
 Basic Information: 
  Port Type:              100TX
  Mac Address:            00-12-CF-89-C1-44
 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/5
 Basic Information: 
  Port Type:              100TX
  Mac Address:            00-12-CF-89-C1-45
 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/6
 Basic Information: 
  Port Type:              100TX
  Mac Address:            00-12-CF-89-C1-46
 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-89-C1-47
 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-89-C1-48
 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/9
 Basic Information: 
  Port Type:              100TX
  Mac Address:            00-12-CF-89-C1-49
 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/10
 Basic Information: 
  Port Type:              100TX
Mac Address:            00-12-CF-89-C1-4A
 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/11
 Basic Information: 
  Port Type:              100TX
  Mac Address:            00-12-CF-89-C1-4B
 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/12
 Basic Information: 
  Port Type:              100TX
  Mac Address:            00-12-CF-89-C1-4C
 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/13
 Basic Information: 
  Port Type:              100TX
  Mac Address:            00-12-CF-89-C1-4D
 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/14
 Basic Information: 
  Port Type:              100TX
  Mac Address:            00-12-CF-89-C1-4E
 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/15
 Basic Information: 
  Port Type:              100TX
  Mac Address:            00-12-CF-89-C1-4F
 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/16
 Basic Information: 
  Port Type:              100TX
  Mac Address:            00-12-CF-89-C1-50
 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/17
 Basic Information: 
  Port Type:              100TX
  Mac Address:            00-12-CF-89-C1-51
 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/18
 Basic Information: 
  Port Type:              100TX
  Mac Address:            00-12-CF-89-C1-52
 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/19
 Basic Information: 
  Port Type:              100TX
  Mac Address:            00-12-CF-89-C1-53
 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/20
 Basic Information: 
  Port Type:              100TX
  Mac Address:            00-12-CF-89-C1-54
 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/21
 Basic Information: 
  Port Type:              100TX
  Mac Address:            00-12-CF-89-C1-55
 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/22
 Basic Information: 
  Port Type:              100TX
  Mac Address:            00-12-CF-89-C1-56
 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/23
 Basic Information: 
  Port Type:              100TX
  Mac Address:            00-12-CF-89-C1-57
 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/24
 Basic Information: 
  Port Type:              100TX
  Mac Address:            00-12-CF-89-C1-58
 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/25
 Basic Information: 
  Port Type:              1000Base SFP
  Mac Address:            00-12-CF-89-C1-59
 Configuration: 
  Name:                   
  Port Admin:             Up
  Speed-duplex:           Auto
  Capabilities:           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: 1000full
  Flow Control Type:      None

Information of Eth 1/26
 Basic Information: 
  Port Type:              1000T
  Mac Address:            00-12-CF-89-C1-5A
 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: 1000full
  Flow Control Type:      None

Information of VLAN 1
 MAC Address:             00-12-CF-89-C1-40

Information of VLAN 104
 MAC Address:             00-12-CF-89-C1-40

Information of VLAN 900
 MAC Address:             00-12-CF-89-C1-40

Information of VLAN 4093
 MAC Address:             00-12-CF-89-C1-40

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