# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## Huawei.VRP.get_arp test
## Auto-generated by manage.py debug-script at 2011-02-01 16:26:41
##----------------------------------------------------------------------
## Copyright (C) 2007-2011 The NOC Project
## See LICENSE for details
##----------------------------------------------------------------------
from noc.lib.test import ScriptTestCase
class Huawei_VRP_get_arp_Test(ScriptTestCase):
    script="Huawei.VRP.get_arp"
    vendor="Huawei"
    platform='NE40E'
    version='5.50'
    input={}
    result=[{'interface': 'Vlanif64', 'ip': '172.29.245.97', 'mac': '00:18:82:3C:C4:55'},
 {'interface': 'Eth-Trunk3',
  'ip': '172.29.245.101',
  'mac': '00:30:48:DD:A2:55'},
 {'interface': 'Eth-Trunk4',
  'ip': '172.29.245.102',
  'mac': '00:1B:21:4B:D8:F9'},
 {'interface': 'Eth-Trunk2.2007',
  'ip': '172.29.245.153',
  'mac': '00:18:82:3C:C4:55'},
 {'interface': 'Eth-Trunk2.2007',
  'ip': '172.29.245.154',
  'mac': '00:0F:E2:6A:CF:40'},
 {'interface': 'GE0/0/0', 'ip': '10.10.10.2', 'mac': '00:18:82:3C:C4:55'},
 {'interface': 'GE1/0/1', 'ip': '217.98.247.95', 'mac': '00:18:82:38:03:0F'},
 {'interface': 'GE1/0/0', 'ip': '89.114.31.182', 'mac': '00:18:82:38:03:0E'},
 {'interface': 'GE2/0/0.851',
  'ip': '172.29.245.73',
  'mac': '00:18:82:EF:C8:6A'},
 {'interface': 'GE2/0/0.2500',
  'ip': '21.16.123.222',
  'mac': '00:18:82:EF:C8:6A'},
 {'interface': 'GE2/0/0.850',
  'ip': '172.29.245.69',
  'mac': '00:18:82:EF:C8:6A'},
 {'interface': 'GE2/0/0.827',
  'ip': '93.32.48.186',
  'mac': '00:18:82:EF:C8:6A'},
 {'interface': 'GE2/0/0.826',
  'ip': '93.32.48.182',
  'mac': '00:18:82:EF:C8:6A'},
 {'interface': 'GE2/0/0.5', 'ip': '172.29.245.89', 'mac': '00:18:82:EF:C8:6A'},
 {'interface': 'GE2/0/0.497',
  'ip': '83.93.179.198',
  'mac': '00:18:82:EF:C8:6A'},
 {'interface': 'GE2/0/0.628',
  'ip': '193.131.245.60',
  'mac': '00:18:82:EF:C8:6A'},
 {'interface': 'GE2/0/0.628',
  'ip': '193.131.247.60',
  'mac': '00:18:82:EF:C8:6A'},
 {'interface': 'GE2/0/0.150',
  'ip': '80.14.101.162',
  'mac': '00:18:82:EF:C8:6A'},
 {'interface': 'GE2/0/0.240',
  'ip': '212.199.18.38',
  'mac': '00:18:82:EF:C8:6A'},
 {'interface': 'GE2/0/0.109',
  'ip': '190.85.177.48',
  'mac': '00:18:82:EF:C8:6A'},
 {'interface': 'GE2/0/0.2000',
  'ip': '172.29.245.129',
  'mac': '00:18:82:EF:C8:6A'},
 {'interface': 'GE2/0/0.901',
  'ip': '172.29.230.81',
  'mac': '00:18:82:EF:C8:6A'},
 {'interface': 'GE2/0/0.504',
  'ip': '39.242.84.98',
  'mac': '00:18:82:EF:C8:6A'},
 {'interface': 'GE2/0/0.121',
  'ip': '172.29.237.109',
  'mac': '00:18:82:EF:C8:6A'},
 {'interface': 'GE2/0/0.850',
  'ip': '172.29.245.70',
  'mac': '00:1D:70:D3:2C:4A'},
 {'interface': 'GE2/0/0.2000',
  'ip': '172.29.245.130',
  'mac': '00:0F:E2:6A:CF:40'},
 {'interface': 'GE2/0/0.851',
  'ip': '172.29.245.74',
  'mac': '00:14:F2:79:53:C8'},
 {'interface': 'GE2/0/0.826',
  'ip': '93.32.48.181',
  'mac': '00:1E:F7:F7:0C:00'},
 {'interface': 'GE2/0/0.901',
  'ip': '172.29.230.82',
  'mac': '00:18:73:DB:22:C2'},
 {'interface': 'GE2/0/0.121',
  'ip': '172.29.237.110',
  'mac': '00:30:48:C5:94:33'},
 {'interface': 'GE2/0/0.2500',
  'ip': '21.16.123.221',
  'mac': '00:24:DC:45:2F:C0'},
 {'interface': 'GE2/0/0.827',
  'ip': '93.32.48.185',
  'mac': '00:21:59:0E:80:01'}]
    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 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 678 days, 4 hours, 29 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 678 days, 4 hours, 29 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 678 days, 4 hours, 28 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 678 days, 4 hours, 26 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 585 days, 7 hours, 8 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 573 days, 4 hours, 46 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 196 days, 11 hours, 40 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 678 days, 4 hours, 27 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 678 days, 4 hours, 27 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 678 days, 4 hours, 27 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 678 days, 4 hours, 29 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 678 days, 4 hours, 27 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
""",
## 'display arp all'
'display arp all': """display arp all
IP ADDRESS      MAC ADDRESS     EXPIRE(M) TYPE        INTERFACE   VPN-INSTANCE
                                          VLAN/CEVLAN PVC
------------------------------------------------------------------------------
172.29.245.97   0018-823c-c455            I -         Vlanif64
172.29.245.101  0030-48dd-a255  18        DF1         Eth-Trunk3
                                            64/-
172.29.245.102  001b-214b-d8f9  20        DF1         Eth-Trunk4
                                            64/-
172.29.245.153  0018-823c-c455            I -         Eth-Trunk2.2007
172.29.245.154  000f-e26a-cf40  4         D-1         Eth-Trunk2.2007
                                          2007/-
10.10.10.2      0018-823c-c455            I -         GE0/0/0
217.98.247.95   0018-8238-030f            I -         GE1/0/1
89.114.31.182   0018-8238-030e            I -         GE1/0/0
172.29.245.73   0018-82ef-c86a            I -         GE2/0/0.851
21.16.123.222   0018-82ef-c86a            I -         GE2/0/0.2500
172.29.245.69   0018-82ef-c86a            I -         GE2/0/0.850
93.32.48.186    0018-82ef-c86a            I -         GE2/0/0.827
93.32.48.182    0018-82ef-c86a            I -         GE2/0/0.826
172.29.245.89   0018-82ef-c86a            I -         GE2/0/0.5
83.93.179.198   0018-82ef-c86a            I -         GE2/0/0.497
193.131.245.60  0018-82ef-c86a            I -         GE2/0/0.628
193.131.247.60  0018-82ef-c86a            I -         GE2/0/0.628
80.14.101.162   0018-82ef-c86a            I -         GE2/0/0.150
212.199.18.38   0018-82ef-c86a            I -         GE2/0/0.240
190.85.177.48   0018-82ef-c86a            I -         GE2/0/0.109
172.29.245.129  0018-82ef-c86a            I -         GE2/0/0.2000
172.29.230.81   0018-82ef-c86a            I -         GE2/0/0.901
39.242.84.98    0018-82ef-c86a            I -         GE2/0/0.504
172.29.237.109  0018-82ef-c86a            I -         GE2/0/0.121
172.29.245.70   001d-70d3-2c4a  3         D-2         GE2/0/0.850
                                           850/-
172.29.245.130  000f-e26a-cf40  4         D-2         GE2/0/0.2000
                                          2000/-
172.29.245.74   0014-f279-53c8  5         D-2         GE2/0/0.851
                                           851/-
93.32.48.181    001e-f7f7-0c00  6         D-2         GE2/0/0.826
                                           826/-
172.29.230.82   0018-73db-22c2  10        D-2         GE2/0/0.901
                                           901/-
172.29.237.110  0030-48c5-9433  10        D-2         GE2/0/0.121
                                           121/-
21.16.123.221   0024-dc45-2fc0  14        D-2         GE2/0/0.2500
                                          2500/-
93.32.48.185    0021-590e-8001  17        D-2         GE2/0/0.827
                                           827/-
------------------------------------------------------------------------------
Total:32        Dynamic:11      Static:0    Interface:21""",
}
    snmp_get={}
    snmp_getnext={}
