# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## EdgeCore.ES.get_arp test
## Auto-generated by manage.py debug-script at 2011-02-03 12:28:27
##----------------------------------------------------------------------
## Copyright (C) 2007-2011 The NOC Project
## See LICENSE for details
##----------------------------------------------------------------------
from noc.lib.test import ScriptTestCase
class EdgeCore_ES_get_arp_Test(ScriptTestCase):
    script="EdgeCore.ES.get_arp"
    vendor="EdgeCore"
    platform='ES4612'
    version='1.0.6.5'
    input={}
    result=[{'interface': 'Vlan 801', 'ip': '172.16.0.33', 'mac': '00:12:CF:82:09:24'},
 {'interface': 'Vlan 801', 'ip': '172.16.0.34', 'mac': '00:12:CF:7E:0D:60'},
 {'interface': 'Vlan 901', 'ip': '172.16.6.1', 'mac': '00:12:CF:7E:0D:60'},
 {'interface': 'Vlan 901', 'ip': '172.16.6.2', 'mac': '00:12:CF:4C:D7:00'},
 {'interface': 'Vlan 901', 'ip': '172.16.6.4', 'mac': '00:12:CF:4C:D4:80'},
 {'interface': 'Vlan 901', 'ip': '172.16.6.5', 'mac': '00:12:CF:4C:D4:C0'},
 {'interface': 'Vlan 901', 'ip': '172.16.6.8', 'mac': '00:12:CF:4C:69:20'},
 {'interface': 'Vlan 901', 'ip': '172.16.6.9', 'mac': '00:12:CF:4C:6E:E0'},
 {'interface': 'Vlan 901', 'ip': '172.16.6.11', 'mac': '00:12:CF:41:4A:C0'},
 {'interface': 'Vlan 901', 'ip': '172.16.6.127', 'mac': 'FF:FF:FF:FF:FF:FF'}]
    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          : A751035018
 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.5
""",
## 'show arp'
'show arp': """show arp
Arp cache timeout: 1200 (seconds)

    IP Address       MAC Address      Type   Interface
--------------- ----------------- --------- -----------
    172.16.0.33 00-12-cf-82-09-24   dynamic         801
    172.16.0.34 00-12-cf-7e-0d-60     other         801
     172.16.6.1 00-12-cf-7e-0d-60     other         901
     172.16.6.2 00-12-cf-4c-d7-00   dynamic         901
     172.16.6.4 00-12-cf-4c-d4-80   dynamic         901
     172.16.6.5 00-12-cf-4c-d4-c0   dynamic         901
     172.16.6.8 00-12-cf-4c-69-20   dynamic         901
     172.16.6.9 00-12-cf-4c-6e-e0   dynamic         901
    172.16.6.11 00-12-cf-41-4a-c0   dynamic         901
   172.16.6.127 ff-ff-ff-ff-ff-ff   dynamic         901

Total entry : 10""",
## '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: 13 days, 21 hours, 31 minutes, and 41.18 seconds
 System Name            : Kosigina27
 System Location        : [NONE]
 System Contact         : [NONE]
 MAC address            : 00-12-CF-7E-0D-60
 Web server             : enable
 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.""",
}
    snmp_get={}
    snmp_getnext={}
