# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## EdgeCore.ES.get_interface_status test
## Auto-generated by manage.py debug-script at 2011-03-04 21:51:13
##----------------------------------------------------------------------
## 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='ES4612'
    version='1.0.6.9'
    input={}
    result=[{'interface': 'Eth 1/1', 'status': False},
 {'interface': 'Eth 1/2', 'status': True},
 {'interface': 'Eth 1/3', 'status': True},
 {'interface': 'Eth 1/4', 'status': True},
 {'interface': 'Eth 1/5', 'status': True},
 {'interface': 'Eth 1/6', 'status': True},
 {'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': 'Eth 1/11', 'status': False},
 {'interface': 'Eth 1/12', 'status': True},
 {'interface': 'VLAN1', 'status': True},
 {'interface': 'VLAN20', 'status': True},
 {'interface': 'VLAN120', 'status': True},
 {'interface': 'VLAN733', 'status': True},
 {'interface': 'VLAN741', 'status': True},
 {'interface': 'VLAN900', 'status': True},
 {'interface': 'VLAN2539', 'status': True}]
    motd=' \n\n      CLI session with the 8 SFP ports + 4 Gigabit Combo ports L2/L3/L4 managed standalone 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: SFP
  Mac address: 00-12-CF-7E-0F-31
 Configuration: 
  Name: Free_port
  Port admin: Up
  Speed-duplex: Auto
  Capabilities: 1000full
  Broadcast storm: Enabled
  Broadcast storm limit: 500 packets/second
  Flow control: Disabled
  VLAN Trunking: Disabled
  LACP: Disabled
  Port security: Disabled
  Max MAC count: 0
  Port security action: None
  Combo forced mode: None
 Current status: 
  Link status: Down
  Operation speed-duplex: 1000full
  Flow control type: None

Information of Eth 1/2
 Basic information: 
  Port type: SFP
  Mac address: 00-12-CF-7E-0F-32
 Configuration: 
  Name: Section#9_>_Section#8
  Port admin: Up
  Speed-duplex: Auto
  Capabilities: 1000full
  Broadcast storm: Enabled
  Broadcast storm limit: 500 packets/second
  Flow control: Disabled
  VLAN Trunking: Disabled
  LACP: Disabled
  Port security: Disabled
  Max MAC count: 0
  Port security action: None
  Combo forced mode: None
 Current status: 
  Link status: Up
  Port operation status: Up
  Operation speed-duplex: 1000full
  Flow control type: None

Information of Eth 1/3
 Basic information: 
  Port type: SFP
  Mac address: 00-12-CF-7E-0F-33
 Configuration: 
  Name: Section#7_>_Section#6
  Port admin: Up
  Speed-duplex: Auto
  Capabilities: 1000full
  Broadcast storm: Enabled
  Broadcast storm limit: 500 packets/second
  Flow control: Disabled
  VLAN Trunking: Disabled
  LACP: Disabled
  Port security: Disabled
  Max MAC count: 0
  Port security action: None
  Combo forced mode: None
 Current status: 
  Link status: Up
  Port operation status: Up
  Operation speed-duplex: 1000full
Flow control type: None

Information of Eth 1/4
 Basic information: 
  Port type: SFP
  Mac address: 00-12-CF-7E-0F-34
 Configuration: 
  Name: Section#5_>_Section#4
  Port admin: Up
  Speed-duplex: Auto
  Capabilities: 1000full
  Broadcast storm: Enabled
  Broadcast storm limit: 500 packets/second
  Flow control: Disabled
  VLAN Trunking: Disabled
  LACP: Disabled
  Port security: Disabled
  Max MAC count: 0
  Port security action: None
  Combo forced mode: None
 Current status: 
  Link status: Up
  Port operation status: Up
Operation speed-duplex: 1000full
  Flow control type: None

Information of Eth 1/5
 Basic information: 
  Port type: SFP
  Mac address: 00-12-CF-7E-0F-35
 Configuration: 
  Name: Section#3_>_Section#2
  Port admin: Up
  Speed-duplex: Auto
  Capabilities: 1000full
  Broadcast storm: Enabled
  Broadcast storm limit: 500 packets/second
  Flow control: Disabled
  VLAN Trunking: Disabled
  LACP: Disabled
  Port security: Disabled
  Max MAC count: 0
  Port security action: None
  Combo forced mode: None
 Current status: 
  Link status: Up
Port operation status: Up
  Operation speed-duplex: 1000full
  Flow control type: None

Information of Eth 1/6
 Basic information: 
  Port type: SFP
  Mac address: 00-12-CF-7E-0F-36
 Configuration: 
  Name: Section#1
  Port admin: Up
  Speed-duplex: Auto
  Capabilities: 1000full
  Broadcast storm: Enabled
  Broadcast storm limit: 500 packets/second
  Flow control: Disabled
  VLAN Trunking: Disabled
  LACP: Disabled
  Port security: Disabled
  Max MAC count: 0
  Port security action: None
  Combo forced mode: None
 Current status: 
Link status: Up
  Port operation status: Up
  Operation speed-duplex: 1000full
  Flow control type: None

Information of Eth 1/7
 Basic information: 
  Port type: SFP
  Mac address: 00-12-CF-7E-0F-37
 Configuration: 
  Name: Section#10_>_Section#11
  Port admin: Up
  Speed-duplex: Auto
  Capabilities: 1000full
  Broadcast storm: Enabled
  Broadcast storm limit: 500 packets/second
  Flow control: Disabled
  VLAN Trunking: Disabled
  LACP: Disabled
  Port security: Disabled
  Max MAC count: 0
  Port security action: None
  Combo forced mode: None
Current status: 
  Link status: Up
  Port operation status: Up
  Operation speed-duplex: 1000full
  Flow control type: None

Information of Eth 1/8
 Basic information: 
  Port type: SFP
  Mac address: 00-12-CF-7E-0F-38
 Configuration: 
  Name: Section#12_>_Section#13
  Port admin: Up
  Speed-duplex: Auto
  Capabilities: 1000full
  Broadcast storm: Enabled
  Broadcast storm limit: 500 packets/second
  Flow control: Disabled
  VLAN Trunking: Disabled
  LACP: Disabled
  Port security: Disabled
  Max MAC count: 0
  Port security action: None
Combo forced mode: None
 Current status: 
  Link status: Up
  Port operation status: Up
  Operation speed-duplex: 1000full
  Flow control type: None

Information of Eth 1/9
 Basic information: 
  Port type: SFP
  Mac address: 00-12-CF-7E-0F-39
 Configuration: 
  Name: Section#14_>_Section#15
  Port admin: Up
  Speed-duplex: Auto
  Capabilities: 1000full
  Broadcast storm: Enabled
  Broadcast storm limit: 500 packets/second
  Flow control: Disabled
  VLAN Trunking: Disabled
  LACP: Disabled
  Port security: Disabled
  Max MAC count: 0
Port security action: None
  Combo forced mode: SFP preferred auto
 Current status: 
  Link status: Up
  Port operation status: Up
  Operation speed-duplex: 1000full
  Flow control type: None

Information of Eth 1/10
 Basic information: 
  Port type: 1000T
  Mac address: 00-12-CF-7E-0F-3A
 Configuration: 
  Name: Free_port
  Port admin: Up
  Speed-duplex: Auto
  Capabilities: 10half, 10full, 100half, 100full, 1000full
  Broadcast storm: Enabled
  Broadcast storm limit: 500 packets/second
  Flow control: Disabled
  VLAN Trunking: Disabled
  LACP: Disabled
  Port security: Disabled
Max MAC count: 0
  Port security action: None
  Combo forced mode: SFP preferred auto
 Current status: 
  Link status: Down
  Operation speed-duplex: 1000full
  Flow control type: None

Information of Eth 1/11
 Basic information: 
  Port type: 1000T
  Mac address: 00-12-CF-7E-0F-3B
 Configuration: 
  Name: Free_port
  Port admin: Up
  Speed-duplex: Auto
  Capabilities: 10half, 10full, 100half, 100full, 1000full
  Broadcast storm: Enabled
  Broadcast storm limit: 500 packets/second
  Flow control: Disabled
  VLAN Trunking: Disabled
  LACP: Disabled
  Port security: Disabled
Max MAC count: 0
  Port security action: None
  Combo forced mode: SFP preferred auto
 Current status: 
  Link status: Down
  Operation speed-duplex: 1000full
  Flow control type: None

Information of Eth 1/12
 Basic information: 
  Port type: 1000T
  Mac address: 00-12-CF-7E-0F-3C
 Configuration: 
  Name: Uplink_sw001-001-Tavricheskaya45#Gi0/2
  Port admin: Up
  Speed-duplex: Auto
  Capabilities: 10half, 10full, 100half, 100full, 1000full
  Broadcast storm: Enabled
  Broadcast storm limit: 500 packets/second
  Flow control: Disabled
  VLAN Trunking: Disabled
  LACP: Disabled
  Port security: Disabled
Max MAC count: 0
  Port security action: None
  Combo forced mode: SFP preferred auto
 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-7E-0F-30

Information of VLAN 20
 MAC address: 00-12-CF-7E-0F-30

Information of VLAN 120
 MAC address: 00-12-CF-7E-0F-30

Information of VLAN 733
 MAC address: 00-12-CF-7E-0F-30

Information of VLAN 741
 MAC address: 00-12-CF-7E-0F-30

Information of VLAN 900
 MAC address: 00-12-CF-7E-0F-30

Information of VLAN 2539
 MAC address: 00-12-CF-7E-0F-30

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