# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## Huawei.VRP.get_mac_address_table test
## Auto-generated by manage.py debug-script at 2011-02-08 17:16:00
##----------------------------------------------------------------------
## 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='S9306'
    version='5.50'
    input={}
    result=[{'interfaces': ['GigabitEthernet2/0/2'],
  'mac': '00:50:8D:98:D4:18',
  'type': 'D',
  'vlan_id': 1},
 {'interfaces': ['GigabitEthernet2/0/2'],
  'mac': '60:FB:42:F8:DB:2A',
  'type': 'D',
  'vlan_id': 1},
 {'interfaces': ['GigabitEthernet2/0/2'],
  'mac': '00:22:15:24:82:7B',
  'type': 'D',
  'vlan_id': 1},
 {'interfaces': ['GigabitEthernet2/0/2'],
  'mac': '00:17:59:99:BF:81',
  'type': 'D',
  'vlan_id': 1},
 {'interfaces': ['GigabitEthernet2/0/2'],
  'mac': '00:13:20:E9:2D:2C',
  'type': 'D',
  'vlan_id': 1},
 {'interfaces': ['GigabitEthernet2/0/2'],
  'mac': '00:1C:C4:2A:3E:19',
  'type': 'D',
  'vlan_id': 1},
 {'interfaces': ['GigabitEthernet2/0/2'],
  'mac': '00:07:0E:07:FB:88',
  'type': 'D',
  'vlan_id': 1},
 {'interfaces': ['GigabitEthernet2/0/2'],
  'mac': '00:17:F2:CF:32:FB',
  'type': 'D',
  'vlan_id': 1},
 {'interfaces': ['GigabitEthernet2/0/2'],
  'mac': '00:17:F2:D1:2B:3B',
  'type': 'D',
  'vlan_id': 1},
 {'interfaces': ['GigabitEthernet2/0/2'],
  'mac': '00:1A:4B:C0:8C:22',
  'type': 'D',
  'vlan_id': 1},
 {'interfaces': ['GigabitEthernet2/0/2'],
  'mac': '80:80:FF:BF:58:AA',
  'type': 'D',
  'vlan_id': 1},
 {'interfaces': ['GigabitEthernet2/0/2'],
  'mac': '00:12:CF:41:39:E0',
  'type': 'D',
  'vlan_id': 1},
 {'interfaces': ['GigabitEthernet2/0/2'],
  'mac': '00:17:59:99:BF:80',
  'type': 'D',
  'vlan_id': 1},
 {'interfaces': ['GigabitEthernet2/0/2'],
  'mac': '00:19:DB:27:A6:09',
  'type': 'D',
  'vlan_id': 1},
 {'interfaces': ['GigabitEthernet2/0/2'],
  'mac': '00:50:8D:98:D5:31',
  'type': 'D',
  'vlan_id': 1},
 {'interfaces': ['GigabitEthernet2/0/2'],
  'mac': '00:22:15:5E:BE:6B',
  'type': 'D',
  'vlan_id': 1},
 {'interfaces': ['GigabitEthernet2/0/2'],
  'mac': '00:12:CF:99:D2:80',
  'type': 'D',
  'vlan_id': 1},
 {'interfaces': ['Eth-Trunk1'],
  'mac': '00:E0:4D:04:FB:FC',
  'type': 'D',
  'vlan_id': 1},
 {'interfaces': ['GigabitEthernet2/0/2'],
  'mac': '00:0E:2E:52:D8:15',
  'type': 'D',
  'vlan_id': 1},
 {'interfaces': ['GigabitEthernet2/0/2'],
  'mac': '00:1D:72:19:82:AC',
  'type': 'D',
  'vlan_id': 1},
 {'interfaces': ['GigabitEthernet2/0/2'],
  'mac': '60:FB:42:F8:DB:2A',
  'type': 'D',
  'vlan_id': 1},
 {'interfaces': ['GigabitEthernet2/0/2'],
  'mac': '00:50:8D:98:D4:18',
  'type': 'D',
  'vlan_id': 1},
 {'interfaces': ['GigabitEthernet2/0/2'],
  'mac': '00:09:E8:25:63:71',
  'type': 'D',
  'vlan_id': 69},
 {'interfaces': ['GigabitEthernet2/0/2'],
  'mac': '00:22:15:24:82:7B',
  'type': 'D',
  'vlan_id': 1},
 {'interfaces': ['GigabitEthernet2/0/2'],
  'mac': '00:13:20:E9:2D:2C',
  'type': 'D',
  'vlan_id': 1},
 {'interfaces': ['GigabitEthernet2/0/2'],
  'mac': '00:1C:C4:2A:3E:19',
  'type': 'D',
  'vlan_id': 1},
 {'interfaces': ['GigabitEthernet2/0/2'],
  'mac': '00:07:0E:07:FB:88',
  'type': 'D',
  'vlan_id': 1},
 {'interfaces': ['GigabitEthernet2/0/2'],
  'mac': '00:12:CF:4C:64:80',
  'type': 'D',
  'vlan_id': 69},
 {'interfaces': ['GigabitEthernet2/0/2'],
  'mac': '00:17:F2:CF:32:FB',
  'type': 'D',
  'vlan_id': 1},
 {'interfaces': ['GigabitEthernet2/0/2'],
  'mac': '00:17:F2:D1:2B:3B',
  'type': 'D',
  'vlan_id': 1},
 {'interfaces': ['GigabitEthernet2/0/2'],
  'mac': '00:0F:E2:6A:CF:40',
  'type': 'D',
  'vlan_id': 69},
 {'interfaces': ['GigabitEthernet2/0/2'],
  'mac': '00:12:CF:4C:57:80',
  'type': 'D',
  'vlan_id': 69},
 {'interfaces': ['GigabitEthernet2/0/2'],
  'mac': '00:12:CF:4C:01:80',
  'type': 'D',
  'vlan_id': 69},
 {'interfaces': ['GigabitEthernet2/0/2'],
  'mac': '00:12:CF:41:37:C0',
  'type': 'D',
  'vlan_id': 69},
 {'interfaces': ['GigabitEthernet2/0/2'],
  'mac': '00:1A:4B:C0:8C:22',
  'type': 'D',
  'vlan_id': 1},
 {'interfaces': ['GigabitEthernet2/0/2'],
  'mac': '00:12:CF:71:45:A0',
  'type': 'D',
  'vlan_id': 69},
 {'interfaces': ['GigabitEthernet2/0/2'],
  'mac': '00:12:CF:41:39:E0',
  'type': 'D',
  'vlan_id': 1},
 {'interfaces': ['GigabitEthernet2/0/2'],
  'mac': '00:17:59:99:BF:80',
  'type': 'D',
  'vlan_id': 1},
 {'interfaces': ['GigabitEthernet2/0/2'],
  'mac': '00:19:66:93:54:F4',
  'type': 'D',
  'vlan_id': 1},
 {'interfaces': ['GigabitEthernet2/0/2'],
  'mac': '00:19:DB:27:A6:09',
  'type': 'D',
  'vlan_id': 1},
 {'interfaces': ['GigabitEthernet2/0/2'],
  'mac': '00:50:8D:98:D5:31',
  'type': 'D',
  'vlan_id': 1},
 {'interfaces': ['GigabitEthernet2/0/2'],
  'mac': '00:22:15:5E:BE:6B',
  'type': 'D',
  'vlan_id': 1},
 {'interfaces': ['GigabitEthernet2/0/2'],
  'mac': '00:12:CF:90:F5:00',
  'type': 'D',
  'vlan_id': 69},
 {'interfaces': ['GigabitEthernet2/0/2'],
  'mac': '00:12:CF:4C:6B:C0',
  'type': 'D',
  'vlan_id': 69},
 {'interfaces': ['GigabitEthernet2/0/2'],
  'mac': '00:12:CF:99:D2:80',
  'type': 'D',
  'vlan_id': 1},
 {'interfaces': ['Eth-Trunk1'],
  'mac': '00:E0:4D:04:FB:FC',
  'type': 'D',
  'vlan_id': 1},
 {'interfaces': ['GigabitEthernet2/0/2'],
  'mac': '00:12:CF:39:95:90',
  'type': 'D',
  'vlan_id': 69},
 {'interfaces': ['GigabitEthernet2/0/2'],
  'mac': '00:17:31:E7:97:F6',
  'type': 'D',
  'vlan_id': 69},
 {'interfaces': ['GigabitEthernet2/0/2'],
  'mac': '00:0E:2E:52:D8:15',
  'type': 'D',
  'vlan_id': 1},
 {'interfaces': ['GigabitEthernet2/0/2'],
  'mac': '00:1D:72:19:82:AC',
  'type': 'D',
  'vlan_id': 1},
 {'interfaces': ['GigabitEthernet2/0/2'],
  'mac': '00:17:59:99:BF:81',
  'type': 'D',
  'vlan_id': 1},
 {'interfaces': ['GigabitEthernet2/0/2'],
  'mac': '80:80:FF:BF:58:AA',
  'type': 'D',
  'vlan_id': 1}]
    motd='\nInfo: The max number of VTY users is 10, and the number\n      of current VTY users on line is 1.\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  
-------------------------------------------------------------------------------
0050-8d98-d418 1           -      -      GE2/0/2         dynamic   -           
60fb-42f8-db2a 1           -      -      GE2/0/2         dynamic   -           
0022-1524-827b 1           -      -      GE2/0/2         dynamic   -           
0017-5999-bf81 1           -      -      GE2/0/2         dynamic   -           
0013-20e9-2d2c 1           -      -      GE2/0/2         dynamic   -           
001c-c42a-3e19 1           -      -      GE2/0/2         dynamic   -           
0007-0e07-fb88 1           -      -      GE2/0/2         dynamic   -           
0017-f2cf-32fb 1           -      -      GE2/0/2         dynamic   -           
0017-f2d1-2b3b 1           -      -      GE2/0/2         dynamic   -           
001a-4bc0-8c22 1           -      -      GE2/0/2         dynamic   -           
8080-ffbf-58aa 1           -      -      GE2/0/2         dynamic   -           
0012-cf41-39e0 1           -      -      GE2/0/2         dynamic   -           
0017-5999-bf80 1           -      -      GE2/0/2         dynamic   -           
0019-db27-a609 1           -      -      GE2/0/2         dynamic   -           
0050-8d98-d531 1           -      -      GE2/0/2         dynamic   -           
0022-155e-be6b 1           -      -      GE2/0/2         dynamic   -           
0012-cf99-d280 1           -      -      GE2/0/2         dynamic   -           
00e0-4d04-fbfc 1           -      -      Eth-Trunk1      dynamic   -           
000e-2e52-d815 1           -      -      GE2/0/2         dynamic   -           
001d-7219-82ac 1           -      -      GE2/0/2         dynamic   -           
-------------------------------------------------------------------------------
Total matching items on slot 1 displayed = 20 

MAC address table of slot 2:
-------------------------------------------------------------------------------
MAC Address    VLAN/       PEVLAN CEVLAN Port            Type      LSP/        
               VSI/SI                                              MAC-Tunnel  
-------------------------------------------------------------------------------
60fb-42f8-db2a 1           -      -      GE2/0/2         dynamic   -           
0050-8d98-d418 1           -      -      GE2/0/2         dynamic   -           
0009-e825-6371 69          -      -      GE2/0/2         dynamic   -           
0022-1524-827b 1           -      -      GE2/0/2         dynamic   -           
0013-20e9-2d2c 1           -      -      GE2/0/2         dynamic   -           
001c-c42a-3e19 1           -      -      GE2/0/2         dynamic   -           
0007-0e07-fb88 1           -      -      GE2/0/2         dynamic   -           
0012-cf4c-6480 69          -      -      GE2/0/2         dynamic   -           
0017-f2cf-32fb 1           -      -      GE2/0/2         dynamic   -           
0017-f2d1-2b3b 1           -      -      GE2/0/2         dynamic   -           
000f-e26a-cf40 69          -      -      GE2/0/2         dynamic   -           
0012-cf4c-5780 69          -      -      GE2/0/2         dynamic   -           
0012-cf4c-0180 69          -      -      GE2/0/2         dynamic   -           
0012-cf41-37c0 69          -      -      GE2/0/2         dynamic   -           
001a-4bc0-8c22 1           -      -      GE2/0/2         dynamic   -           
0012-cf71-45a0 69          -      -      GE2/0/2         dynamic   -           
0012-cf41-39e0 1           -      -      GE2/0/2         dynamic   -           
0017-5999-bf80 1           -      -      GE2/0/2         dynamic   -           
0019-6693-54f4 1           -      -      GE2/0/2         dynamic   -           
0019-db27-a609 1           -      -      GE2/0/2         dynamic   -           
0050-8d98-d531 1           -      -      GE2/0/2         dynamic   -           
0022-155e-be6b 1           -      -      GE2/0/2         dynamic   -           
0012-cf90-f500 69          -      -      GE2/0/2         dynamic   -           
0012-cf4c-6bc0 69          -      -      GE2/0/2         dynamic   -           
0012-cf99-d280 1           -      -      GE2/0/2         dynamic   -           
00e0-4d04-fbfc 1           -      -      Eth-Trunk1      dynamic   -           
0012-cf39-9590 69          -      -      GE2/0/2         dynamic   -           
0017-31e7-97f6 69          -      -      GE2/0/2         dynamic   -           
000e-2e52-d815 1           -      -      GE2/0/2         dynamic   -           
001d-7219-82ac 1           -      -      GE2/0/2         dynamic   -           
0017-5999-bf81 1           -      -      GE2/0/2         dynamic   -           
8080-ffbf-58aa 1           -      -      GE2/0/2         dynamic   -           
-------------------------------------------------------------------------------
Total matching items on slot 2 displayed = 32 
""",
## 'display version'
'display version': """display version
Huawei Versatile Routing Platform Software
VRP (R) software, Version 5.50 (S9300 V100R002C00SPC200)
Copyright (C) 2003-2010 HUAWEI TECH CO., LTD
Quidway S9306 Terabit Routing Switch uptime is 0 week, 0 day, 6 hours, 9 minutes
BKP 0 version information:
1. PCB      Version  : LE01BAKH VER.A
2. If Supporting PoE : No
3. Board Type        : BAKH
4. MPU Slot Quantity : 2
5. LPU Slot Quantity : 6

Slot 7(Slave) : uptime is 0 week, 0 day, 6 hours, 8 minutes
                StartupTime 2011/02/08   16:04:47 
SDRAM Memory Size    :1024    M bytes
Flash Memory Size    :64      M bytes
NVRAM Memory Size    :512     K bytes
CF Card1 Memory Size :488     M bytes
MPU version information : 
1. PCB      Version  :LE02SRUA   VER.B
2. MAB      Version  :0
3. Board    Type     :SRUA      
4. CPLD1    Version  :100
5. BootROM  Version  :102
6. BootLoad Version  :102

Slot 8(Master) : uptime is 0 week, 0 day, 6 hours, 9 minutes
                StartupTime 2011/02/08   16:03:53 
SDRAM Memory Size    :1024    M bytes
Flash Memory Size    :64      M bytes
NVRAM Memory Size    :512     K bytes
CF Card1 Memory Size :497     M bytes
MPU version information : 
1. PCB      Version  :LE02SRUA   VER.B
2. MAB      Version  :0
3. Board    Type     :SRUA      
4. CPLD1    Version  :100
5. BootROM  Version  :106
6. BootLoad Version  :102

Slot 1 : uptime is 0 week, 0 day, 6 hours, 8 minutes
        StartupTime 2011/02/08   16:04:43 
SDRAM Memory Size    :256     M bytes
Flash Memory Size    :16      M bytes
LPU version information :
1. PCB      Version  :LE02X4UX   VER.B
2. MAB      Version  :0
3. Board    Type     :X2UXA     
4. CPLD1    Version  :102
5. BootROM  Version  :102
6. BootLoad Version  :102

Slot 2 : uptime is 0 week, 0 day, 6 hours, 8 minutes
        StartupTime 2011/02/08   16:04:43 
SDRAM Memory Size    :256     M bytes
Flash Memory Size    :16      M bytes
LPU version information :
1. PCB      Version  :LE02G48S   VER.B
2. MAB      Version  :0
3. Board    Type     :G24SD     
4. CPLD1    Version  :102
5. CPLD2    Version  :102
6. BootROM  Version  :256
7. BootLoad Version  :102
Tcam version information :
1. Tcam size         :36      M bytes

Slot CMU1(Master) : uptime is 0 week, 0 day, 6 hours, 8 minutes
                StartupTime 2011/02/08   16:04:33 
CMU version information :
1. PCB      Version  :LE02CMUA   VER.B
2. MAB      Version  :0
3. Board    Type     :CMUA      
""",
}
    snmp_get={}
    snmp_getnext={}
