# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## EdgeCore.ES.get_interface_status test
## Auto-generated by manage.py debug-script at 2011-03-04 21:38:06
##----------------------------------------------------------------------
## 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-1-SL-38'
    version='2.3.4.16'
    input={}
    result=[{'interface': 'Eth 1/1', 'status': False},
 {'interface': 'Eth 1/2', 'status': False},
 {'interface': 'Eth 1/3', 'status': False},
 {'interface': 'Eth 1/4', 'status': False},
 {'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': False},
 {'interface': 'Eth 1/11', 'status': False},
 {'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': False},
 {'interface': 'Eth 1/18', 'status': False},
 {'interface': 'Eth 1/19', 'status': False},
 {'interface': 'Eth 1/20', 'status': False},
 {'interface': 'Eth 1/21', 'status': False},
 {'interface': 'Eth 1/22', 'status': False},
 {'interface': 'Eth 1/23', 'status': False},
 {'interface': 'Eth 1/24', 'status': False},
 {'interface': 'Eth 1/25', 'status': False},
 {'interface': 'Eth 1/26', 'status': True},
 {'interface': 'VLAN1', 'status': True},
 {'interface': 'VLAN101', '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-4C-F1-61
 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/2
 Basic information: 
Port type:              100TX
  Mac address:            00-12-CF-4C-F1-62
 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/3
 Basic information: 
  Port type:              100TX
  Mac address:            00-12-CF-4C-F1-63
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-4C-F1-64
 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/5
 Basic information: 
  Port type:              100TX
  Mac address:            00-12-CF-4C-F1-65
 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-4C-F1-66
 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-4C-F1-67
 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-4C-F1-68
 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-4C-F1-69
 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-4C-F1-6A
 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/11
 Basic information: 
  Port type:              100TX
  Mac address:            00-12-CF-4C-F1-6B
 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/12
 Basic information: 
  Port type:              100TX
  Mac address:            00-12-CF-4C-F1-6C
 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-4C-F1-6D
 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/14
 Basic information: 
Port type:              100TX
  Mac address:            00-12-CF-4C-F1-6E
 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-4C-F1-6F
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-4C-F1-70
 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-4C-F1-71
 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/18
 Basic information: 
  Port type:              100TX
  Mac address:            00-12-CF-4C-F1-72
 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/19
 Basic information: 
  Port type:              100TX
  Mac address:            00-12-CF-4C-F1-73
 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/20
 Basic information: 
  Port type:              100TX
  Mac address:            00-12-CF-4C-F1-74
 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-4C-F1-75
 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-4C-F1-76
 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-4C-F1-77
 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/24
 Basic information: 
  Port type:              100TX
  Mac address:            00-12-CF-4C-F1-78
 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-4C-F1-79
 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:              SFP
Mac address:            00-12-CF-4C-F1-7A
 Configuration: 
  Name:                   
  Port admin:             Up
  Speed-duplex:           Auto
  Capabilities:           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-4C-F1-60

Information of VLAN 101
MAC address:             00-12-CF-4C-F1-60

Information of VLAN 900
 MAC address:             00-12-CF-4C-F1-60

Information of VLAN 4093
 MAC address:             00-12-CF-4C-F1-60

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