# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## EdgeCore.ES.get_interface_status test
## Auto-generated by manage.py debug-script at 2011-03-04 21:38:31
##----------------------------------------------------------------------
## 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-38'
    version='2.3.3.16'
    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': False},
 {'interface': 'Eth 1/6', 'status': False},
 {'interface': 'Eth 1/7', 'status': False},
 {'interface': 'Eth 1/8', 'status': False},
 {'interface': 'Eth 1/9', 'status': False},
 {'interface': 'Eth 1/10', 'status': True},
 {'interface': 'Eth 1/11', 'status': True},
 {'interface': 'Eth 1/12', 'status': False},
 {'interface': 'Eth 1/13', 'status': False},
 {'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': False},
 {'interface': 'Eth 1/21', 'status': False},
 {'interface': 'Eth 1/22', 'status': False},
 {'interface': 'Eth 1/23', 'status': True},
 {'interface': 'Eth 1/24', 'status': False},
 {'interface': 'Eth 1/25', 'status': False},
 {'interface': 'Eth 1/26', 'status': True},
 {'interface': 'VLAN1', 'status': True},
 {'interface': 'VLAN113', 'status': True},
 {'interface': 'VLAN900', 'status': True},
 {'interface': 'VLAN4093', 'status': True}]
    motd=' \n\n      CLI session with the Standalone Intelligent Switch 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-41-3A-01
 Configuration: 
  Name:                   
  Port admin:             Up
  Speed-duplex:           Auto
  Capabilities:           10half, 10full, 100half, 100full
  Broadcast storm:        Enabled
  Broadcast storm limit:  10000 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-41-3A-02
 Configuration: 
  Name:                   
  Port admin:             Up
  Speed-duplex:           Auto
  Capabilities:           10half, 10full, 100half, 100full
  Broadcast storm:        Enabled
  Broadcast storm limit:  10000 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-41-3A-03
 Configuration: 
  Name:                   
  Port admin:             Up
  Speed-duplex:           Auto
  Capabilities:           10half, 10full, 100half, 100full
  Broadcast storm:        Enabled
  Broadcast storm limit:  10000 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-41-3A-04
Configuration: 
  Name:                   
  Port admin:             Up
  Speed-duplex:           Auto
  Capabilities:           10half, 10full, 100half, 100full
  Broadcast storm:        Enabled
  Broadcast storm limit:  10000 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-41-3A-05
 Configuration: 
Name:                   
  Port admin:             Up
  Speed-duplex:           Auto
  Capabilities:           10half, 10full, 100half, 100full
  Broadcast storm:        Enabled
  Broadcast storm limit:  10000 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/6
 Basic information: 
  Port type:              100TX
  Mac address:            00-12-CF-41-3A-06
 Configuration: 
  Name:                   
  Port admin:             Up
Speed-duplex:           Auto
  Capabilities:           10half, 10full, 100half, 100full
  Broadcast storm:        Enabled
  Broadcast storm limit:  10000 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-41-3A-07
 Configuration: 
  Name:                   
  Port admin:             Up
  Speed-duplex:           Auto
  Capabilities:           10half, 10full, 100half, 100full
Broadcast storm:        Enabled
  Broadcast storm limit:  10000 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/8
 Basic information: 
  Port type:              100TX
  Mac address:            00-12-CF-41-3A-08
 Configuration: 
  Name:                   
  Port admin:             Up
  Speed-duplex:           Auto
  Capabilities:           10half, 10full, 100half, 100full
  Broadcast storm:        Enabled
  Broadcast storm limit:  10000 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-41-3A-09
 Configuration: 
  Name:                   
  Port admin:             Up
  Speed-duplex:           Auto
  Capabilities:           10half, 10full, 100half, 100full
  Broadcast storm:        Enabled
  Broadcast storm limit:  10000 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-41-3A-0A
 Configuration: 
  Name:                   
  Port admin:             Up
  Speed-duplex:           Auto
  Capabilities:           10half, 10full, 100half, 100full
  Broadcast storm:        Enabled
  Broadcast storm limit:  10000 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/11
 Basic information: 
  Port type:              100TX
  Mac address:            00-12-CF-41-3A-0B
 Configuration: 
  Name:                   
  Port admin:             Up
  Speed-duplex:           Auto
  Capabilities:           10half, 10full, 100half, 100full
  Broadcast storm:        Enabled
  Broadcast storm limit:  10000 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/12
 Basic information: 
  Port type:              100TX
  Mac address:            00-12-CF-41-3A-0C
 Configuration: 
  Name:                   
  Port admin:             Up
  Speed-duplex:           Auto
  Capabilities:           10half, 10full, 100half, 100full
  Broadcast storm:        Enabled
  Broadcast storm limit:  10000 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-41-3A-0D
 Configuration: 
  Name:                   
  Port admin:             Up
  Speed-duplex:           Auto
  Capabilities:           10half, 10full, 100half, 100full
  Broadcast storm:        Enabled
  Broadcast storm limit:  10000 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/14
 Basic information: 
  Port type:              100TX
  Mac address:            00-12-CF-41-3A-0E
 Configuration: 
  Name:                   
  Port admin:             Up
  Speed-duplex:           Auto
  Capabilities:           10half, 10full, 100half, 100full
  Broadcast storm:        Enabled
  Broadcast storm limit:  10000 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-41-3A-0F
 Configuration: 
  Name:                   
  Port admin:             Up
  Speed-duplex:           Auto
  Capabilities:           10half, 10full, 100half, 100full
  Broadcast storm:        Enabled
  Broadcast storm limit:  10000 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-41-3A-10
 Configuration: 
  Name:                   
  Port admin:             Up
  Speed-duplex:           Auto
  Capabilities:           10half, 10full, 100half, 100full
  Broadcast storm:        Enabled
  Broadcast storm limit:  10000 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-41-3A-11
Configuration: 
  Name:                   
  Port admin:             Up
  Speed-duplex:           Auto
  Capabilities:           10half, 10full, 100half, 100full
  Broadcast storm:        Enabled
  Broadcast storm limit:  10000 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-41-3A-12
 Configuration: 
Name:                   
  Port admin:             Up
  Speed-duplex:           Auto
  Capabilities:           10half, 10full, 100half, 100full
  Broadcast storm:        Enabled
  Broadcast storm limit:  10000 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-41-3A-13
 Configuration: 
  Name:                   
Port admin:             Up
  Speed-duplex:           Auto
  Capabilities:           10half, 10full, 100half, 100full
  Broadcast storm:        Enabled
  Broadcast storm limit:  10000 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-41-3A-14
 Configuration: 
  Name:                   
  Port admin:             Up
Speed-duplex:           Auto
  Capabilities:           10half, 10full, 100half, 100full
  Broadcast storm:        Enabled
  Broadcast storm limit:  10000 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/21
 Basic information: 
  Port type:              100TX
  Mac address:            00-12-CF-41-3A-15
 Configuration: 
  Name:                   
  Port admin:             Up
  Speed-duplex:           Auto
  Capabilities:           10half, 10full, 100half, 100full
Broadcast storm:        Enabled
  Broadcast storm limit:  10000 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/22
 Basic information: 
  Port type:              100TX
  Mac address:            00-12-CF-41-3A-16
 Configuration: 
  Name:                   
  Port admin:             Up
  Speed-duplex:           Auto
  Capabilities:           10half, 10full, 100half, 100full
  Broadcast storm:        Enabled
  Broadcast storm limit:  10000 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-41-3A-17
 Configuration: 
  Name:                   
  Port admin:             Up
  Speed-duplex:           Auto
  Capabilities:           10half, 10full, 100half, 100full
  Broadcast storm:        Enabled
  Broadcast storm limit:  10000 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-41-3A-18
 Configuration: 
  Name:                   
  Port admin:             Up
  Speed-duplex:           Auto
  Capabilities:           10half, 10full, 100half, 100full
  Broadcast storm:        Enabled
  Broadcast storm limit:  10000 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/25
 Basic information: 
  Port type:              1000T
  Mac address:            00-12-CF-41-3A-19
 Configuration: 
  Name:                   
  Port admin:             Up
  Speed-duplex:           Auto
  Capabilities:           10half, 10full, 100half, 100full, 1000full
  Broadcast storm:        Enabled
  Broadcast storm limit:  10000 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 Eth 1/26
 Basic information: 
  Port type:              1000T
  Mac address:            00-12-CF-41-3A-1A
 Configuration: 
  Name:                   
  Port admin:             Up
  Speed-duplex:           Auto
  Capabilities:           10half, 10full, 100half, 100full, 1000full
  Broadcast storm:        Enabled
  Broadcast storm limit:  10000 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-41-3A-00

Information of VLAN 113
 MAC address:             00-12-CF-41-3A-00

Information of VLAN 900
 MAC address:             00-12-CF-41-3A-00

Information of VLAN 4093
 MAC address:             00-12-CF-41-3A-00

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