# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## Huawei.VRP.get_mac_address_table test
## Auto-generated by manage.py debug-script at 2011-02-08 17:16:30
##----------------------------------------------------------------------
## Copyright (C) 2007-2011 The NOC Project
## See LICENSE for details
##----------------------------------------------------------------------
from noc.lib.test import ScriptTestCase
class Huawei_VRP_get_mac_address_table_Test(ScriptTestCase):
    script="Huawei.VRP.get_mac_address_table"
    vendor="Huawei"
    platform='NE40E'
    version='5.50'
    input={}
    result=[{'interfaces': ['Eth-Trunk3'],
  'mac': '00:30:48:DD:A2:55',
  'type': 'D',
  'vlan_id': 64},
 {'interfaces': ['Eth-Trunk4'],
  'mac': '00:1B:21:4B:D8:F9',
  'type': 'D',
  'vlan_id': 64}]
    motd='\nInfo: The max number of VTY users is 10, and the number\n      of current VTY users on line is 2.\n'
    cli={
'screen-length 0 temporary':  'screen-length 0 temporary\nInfo: The configuration takes effect on the current user terminal interface only.\n',
## 'display mac-address'
'display mac-address': """display mac-address
MAC address table of slot 1:
-------------------------------------------------------------------------------
MAC Address    VLAN/       PEVLAN CEVLAN Port            Type      LSP/        
               VSI/SI                                              MAC-Tunnel  
-------------------------------------------------------------------------------
0030-48dd-a255 64          -      -      Eth-Trunk3      dynamic   -           
001b-214b-d8f9 64          -      -      Eth-Trunk4      dynamic   -           

-------------------------------------------------------------------------------
Total matching items on slot 1 displayed = 2
""",
## 'display version'
'display version': """display version
Huawei Versatile Routing Platform Software
VRP (R) software, Version 5.50 (V300R003C02B608)
Copyright (C) 2000-2008 Huawei Technologies Co., Ltd.
Quidway NetEngine 40E uptime is 685 days, 5 hours, 19 minutes
  
BKP 0 version information:
  1. PCB      Version : CR52BKPB REV A
  2. MPU Slot Quantity: 0
  3. SRU Slot Quantity: 2
  4. SFU Slot Quantity: 2
  5. LPU Slot Quantity: 8
  
MPU  9(Master) : uptime is 685 days, 5 hours, 19 minutes
                 StartupTime   2009/03/25   17:00:50 
  SDRAM Memory Size   : 2048M bytes  
  Flash Memory Size   : 32M  bytes 
  NVRAM Memory Size   : 512K bytes
  CF Card1 Memory Size: 487M bytes 
  CF Card2 Memory Size: 489M bytes 
  MPU version information: 
  1. PCB      Version : CR52SRUA REV C
  2. EPLD1    Version : 106
  3. EPLD2    Version : 108
  4. FPGA     Version : 009
  5. BootROM  Version : 74.0
  6. BootLoad Version : 216.0
  7. Software Version : Version 5.50 RELEASE 0041
  MIF version information: 
  1. PCB      Version : CR52MIFB REV C
  2. FPGA     Version : 009
  MonitorBUS version information: 
  1. PCB      Version : CR31MBSA REV A
  2. EPLD     Version : 019
  3. Software Version : 3.8
  
MPU 10(Slave)  : uptime is 685 days, 5 hours, 18 minutes
                 StartupTime   2009/03/25   17:01:27 
  SDRAM Memory Size   : 2048M bytes  
  Flash Memory Size   : 32M  bytes 
  NVRAM Memory Size   : 512K bytes
  CF Card1 Memory Size: 487M bytes 
  CF Card2 Memory Size: 489M bytes 
  MPU version information: 
  1. PCB      Version : CR52SRUA REV C
  2. EPLD1    Version : 106
  3. EPLD2    Version : 108
  4. FPGA     Version : 009
  5. BootROM  Version : 74.0
  6. BootLoad Version : 216.0
  7. Software Version : Version 5.50 RELEASE 0041
  MIF version information: 
  1. PCB      Version : CR52MIFB REV C
  2. FPGA     Version : 009
  MonitorBUS version information: 
  1. PCB      Version : CR31MBSA REV A
  2. EPLD     Version : 019
  3. Software Version : 3.8
  
LPU 1  : uptime is 685 days, 5 hours, 16 minutes
         StartupTime   2009/03/25   17:04:12 
  Host    processor :
  1. SDRAM Memory Size:  512M  bytes
  2. Flash Memory Size:   32M  bytes
  LPU version information:
  1. PCB      Version : CR52LPUG REV E
  2. EPLD     Version : 009
  3. NP       Version : 010
  4. BootROM  Version : 71.0
  5. BootLoad Version : 223.0
  6. FSU\t     Version : Version 2.1 RELEASE 0372
  7. EFU\t     Version : Version 23.0 RELEASE 0372
  TCM version information:
  1. PCB      Version : CR52TCMH REV A
  FAD version information:
  1. PCB      Version : CR52FADD REV C
  2. EPLD     Version : 005
  3. FPGA1    Version : 5191
  4. FPGA2    Version : 5191
  5. FPGA3    Version : 181
  LPC version information:
  1. PCB      Version : CR52LPCA REV B
  2. EPLD     Version : 000
  MonitorBUS version information:
  1. PCB      Version : CR31MBSA REV A
  2. EPLD     Version : 019
  3. Software Version : 3.8
  PIC0's version information:
  1. PCB      Version : CR52EAGF REV A
  2. EPLD     Version : 004
  
LPU 2  : uptime is 592 days, 7 hours, 58 minutes
         StartupTime   2009/06/26   10:25:38 
  Host    processor :
  1. SDRAM Memory Size: 1024M  bytes
  2. Flash Memory Size:   32M  bytes
  LPU version information:
  1. PCB      Version : CR52LPUK REV B
  2. EPLD     Version : 302
  3. EPLD2    Version : 300
  4. BootROM  Version : 11.0
  5. BootLoad Version : 52.0
  6. FSU\t     Version : Version 2.1 RELEASE 0372
  7. ASE      Version : 103
  8. LOAMNET  Version : 215
  9. PE       Version : 320
  MonitorBUS version information:
  1. PCB      Version : CR31MBSA REV A
  2. EPLD     Version : 019
  3. Software Version : 3.8
  PIC0's version information:
  1. PCB      Version : CR52L1XX REV A
  2. EPLD     Version : 201
  
SPU 8  : uptime is 580 days, 5 hours, 36 minutes
         StartupTime   2009/07/08   12:47:33 
  Host    processor :
  1. SDRAM Memory Size:  512M  bytes
  2. Flash Memory Size:   16M  bytes
  NP-1 processor :
  1. SDRAM Memory Size:   64M  bytes
  2. Flash Memory Size:   16M  bytes
  NP-1 version information:
  1. PCB      Version : CR01SPU REV A
  2. EPLD     Version : 010
  3. BootROM  Version : 2.0
  4. BootLoad Version : 8.0
  5. FSU\t     Version : Version 3.0 RELEASE 0152
  FAD version information:
  1. PCB      Version : CR52FADA REV B
  2. EPLD     Version : 107
  3. BootROM  Version : 64.0
  4. BootLoad Version : 70.0
  5. FSU\t     Version : Version 3.0 RELEASE 0338
  6. EFU\t     Version : Version 2.37 RELEASE 0338
  7. RIC EPLD Version : 050
  8. CP PCB   Version : RS01HPMB REV C
  9. CP EPLD  Version : 006
  MonitorBUS version information:
  1. PCB      Version : CR31MBSA REV A
  2. EPLD     Version : 019
  3. Software Version : 3.8

SFU 11 : uptime is 203 days, 12 hours, 30 minutes
         StartupTime   2010/07/20   05:49:12 
  SDRAM Memory Size   :  32M bytes
  Flash Memory Size   :   8M bytes
  PCB         Version : CR52SFUD REV C
  EPLD        Version : 004
  BootROM     Version : 68.0
  BootLoad    Version : 80.0
  Software    Version : Version 2.0 RELEASE 0033
  MonitorBUS version information:
  1. PCB      Version : CR31MBSA REV A
  2. EPLD     Version : 019
  3. Software Version : 3.8

SFU 12 : uptime is 685 days, 5 hours, 17 minutes
         StartupTime   2009/03/25   17:02:40 
  SDRAM Memory Size   :  32M bytes
  Flash Memory Size   :   8M bytes
  PCB         Version : CR52SFUD REV C
  EPLD        Version : 004
  BootROM     Version : 68.0
  BootLoad    Version : 80.0
  Software    Version : Version 2.0 RELEASE 0033
  MonitorBUS version information:
  1. PCB      Version : CR31MBSA REV A
  2. EPLD     Version : 019
  3. Software Version : 3.8

SFU 13 : uptime is 685 days, 5 hours, 17 minutes
         StartupTime   2009/03/25   17:02:39 
  SDRAM Memory Size   :  32M bytes
  Flash Memory Size   :   8M bytes
  PCB         Version : CR52SRUA REV C
  EPLD        Version : 103
  BootROM     Version : 68.0
  BootLoad    Version : 80.0
  Software    Version : Version 2.0 RELEASE 0033
  MonitorBUS version information:
  1. PCB      Version : CR31MBSA REV A
  2. EPLD     Version : 019
  3. Software Version : 3.8

SFU 14 : uptime is 685 days, 5 hours, 17 minutes
         StartupTime   2009/03/25   17:02:39 
  SDRAM Memory Size   :  32M bytes
  Flash Memory Size   :   8M bytes
  PCB         Version : CR52SRUA REV C
  EPLD        Version : 103
  BootROM     Version : 68.0
  BootLoad    Version : 80.0
  Software    Version : Version 2.0 RELEASE 0033
  MonitorBUS version information:
  1. PCB      Version : CR31MBSA REV A
  2. EPLD     Version : 019
  3. Software Version : 3.8
  
CLK 15 : uptime is 685 days, 5 hours, 19 minutes
         StartupTime   2009/03/25   17:01:05 
  1. PCB      Version : CR52CLKA REV B
  2. EPLD     Version : 016
  3. Software version : 021
  
CLK 16 : uptime is 685 days, 5 hours, 17 minutes
         StartupTime   2009/03/25   17:02:25 
  1. PCB      Version : CR52CLKA REV B
  2. EPLD     Version : 016
  3. Software version : 021
  
Fan19's MonitorBUS version information:
  PCB         Version : CR52FCBB REV B
  Software    Version : 1.1
""",
}
    snmp_get={}
    snmp_getnext={}
