# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## EdgeCore.ES.get_portchannel test
## Auto-generated by manage.py debug-script at 2011-02-07 17:48:18
##----------------------------------------------------------------------
## Copyright (C) 2007-2011 The NOC Project
## See LICENSE for details
##----------------------------------------------------------------------
from noc.lib.test import ScriptTestCase
class EdgeCore_ES_get_portchannel_Test(ScriptTestCase):
    script="EdgeCore.ES.get_portchannel"
    vendor="EdgeCore"
    platform='ES4612'
    version='1.0.6.9'
    input={}
    result=[{'interface': 'Trunk 2', 'members': ['Eth 1/10', 'Eth 1/11'], 'type': 'S'}]
    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 version'
'show version': """show version
Unit1
 Serial number          : A747005484
 Hardware version       : R01A
 Number of ports        :12
 Main power status      :up
 Redundant power status :not present

Agent (master)
 Unit ID                : 1
 Loader version         : 2.3.0.2
 Boot ROM version       : 2.2.0.1
 Operation code version : 1.0.6.9
""",
## 'show system'
'show system': """show system
System description: 8 SFP ports + 4 Gigabit Combo ports L2/L3/L4 managed standalone switch
System OID string: 1.3.6.1.4.1.259.6.10.57
System information
 System Up time: 25 days, 1 hours, 44 minutes, and 30.57 seconds
 System Name            : SW014-001
 System Location        : [NONE]
 System Contact         : [NONE]
 MAC address            : 00-12-CF-75-80-D0
 Web server             : disable
 Web server port        : 80
 Web secure server      : enable
 Web secure server port : 443
 Telnet server          : enable
 Telnet port            : 23
 Authentication login   :  TACACS local none
 Jumbo Frame :            Disabled 
 POST result              
DUMMY Test 1.................PASS
UART LOOP BACK Test..........PASS
DRAM Test....................PASS
Timer Test...................PASS
PCI Device 1 Test............PASS
I2C bus Initialization.......PASS
RTC Initialization...........PASS
Switch Int Loopback test.....PASS

Done All Pass.""",
## 'show interface status'
'show interface status': """show interface status
Information of Eth 1/1
 Basic information: 
  Port type: SFP
  Mac address: 00-12-CF-75-80-D1
 Configuration: 
  Name: 
  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/2
 Basic information: 
  Port type: SFP
  Mac address: 00-12-CF-75-80-D2
 Configuration: 
  Name: 
  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/3
 Basic information: 
  Port type: SFP
  Mac address: 00-12-CF-75-80-D3
 Configuration: 
  Name: 
  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/4
 Basic information: 
  Port type: SFP
  Mac address: 00-12-CF-75-80-D4
 Configuration: 
  Name: 
  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/5
 Basic information: 
  Port type: SFP
  Mac address: 00-12-CF-75-80-D5
 Configuration: 
  Name: 
  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/6
 Basic information: 
  Port type: SFP
  Mac address: 00-12-CF-75-80-D6
 Configuration: 
  Name: 
  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/7
 Basic information: 
  Port type: SFP
  Mac address: 00-12-CF-75-80-D7
 Configuration: 
  Name: 
  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/8
 Basic information: 
  Port type: SFP
  Mac address: 00-12-CF-75-80-D8
 Configuration: 
  Name: 
  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/9
 Basic information: 
  Port type: 1000T
  Mac address: 00-12-CF-75-80-D9
 Configuration: 
  Name: 
  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 Eth 1/10
 Basic information: 
  Member port of trunk 2, that was created by user.
  Port type: 1000T
  Mac address: 00-12-CF-75-80-DA
 Configuration: 
  Name: 
  Port admin: Up
  Speed-duplex: Auto
  Capabilities: 10half, 10full, 100half, 100full
  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: Enabled
  Combo forced mode: SFP preferred auto
 Current status: 
  Link status: Up
Port operation status: Up
  Operation speed-duplex: 100full
  Flow control type: None

Information of Eth 1/11
 Basic information: 
  Member port of trunk 2, that was created by user.
  Port type: 1000T
  Mac address: 00-12-CF-75-80-DB
 Configuration: 
  Name: 
  Port admin: Up
  Speed-duplex: Auto
  Capabilities: 10half, 10full, 100half, 100full
  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: Enabled
  Combo forced mode: SFP preferred auto
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: 1000T
  Mac address: 00-12-CF-75-80-DC
 Configuration: 
  Name: 
  Port admin: Up
  Speed-duplex: Auto
  Capabilities: 10half, 10full, 100half, 100full
  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 Trunk 2
 Basic information: 
  Port type: 1000T
  Mac address: 00-12-CF-75-80-DA
 Configuration: 
  Name: 
  Port admin: Up
  Speed-duplex: Auto
  Capabilities: 10half, 10full, 100half, 100full
  Flow control: Disabled
  VLAN Trunking: Disabled
  Port security: Disabled
  Max MAC count: 0
 Current status: 
  Created by: User
  Link status: Up
  Port operation status: Up
Operation speed-duplex: 100full
  Flow control type: None
  Member Ports: Eth1/10, Eth1/11, 

Information of VLAN 1
 MAC address: 00-12-CF-75-80-D0

Information of VLAN 20
 MAC address: 00-12-CF-75-80-D0

Information of VLAN 69
 MAC address: 00-12-CF-75-80-D0

Information of VLAN 383
 MAC address: 00-12-CF-75-80-D0

Information of VLAN 553
 MAC address: 00-12-CF-75-80-D0

Information of VLAN 663
 MAC address: 00-12-CF-75-80-D0

Information of VLAN 762
MAC address: 00-12-CF-75-80-D0
""",
}
    snmp_get={}
    snmp_getnext={}
