# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## DLink.DxS.get_interface_status test
## Auto-generated by manage.py debug-script at 2011-03-29 13:15:13
##----------------------------------------------------------------------
## Copyright (C) 2007-2011 The NOC Project
## See LICENSE for details
##----------------------------------------------------------------------
from noc.lib.test import ScriptTestCase
class DLink_DxS_get_interface_status_Test(ScriptTestCase):
    script="DLink.DxS.get_interface_status"
    vendor="DLink"
    platform='DGS-3120-24TC'
    version='1.01.B033'
    input={}
    result=[{'interface': '1:1', 'status': True},
 {'interface': '1:2', 'status': True},
 {'interface': '1:3', 'status': True},
 {'interface': '1:4', 'status': True},
 {'interface': '1:5', 'status': True},
 {'interface': '1:6', 'status': True},
 {'interface': '1:7', 'status': True},
 {'interface': '1:8', 'status': True},
 {'interface': '1:9', 'status': True},
 {'interface': '1:10', 'status': True},
 {'interface': '1:11', 'status': False},
 {'interface': '1:12', 'status': False},
 {'interface': '1:13', 'status': False},
 {'interface': '1:14', 'status': False},
 {'interface': '1:15', 'status': False},
 {'interface': '1:16', 'status': False},
 {'interface': '1:17', 'status': False},
 {'interface': '1:18', 'status': False},
 {'interface': '1:19', 'status': False},
 {'interface': '1:20', 'status': False},
 {'interface': '1:21', 'status': False},
 {'interface': '1:22', 'status': False},
 {'interface': '1:23', 'status': False},
 {'interface': '1:24', 'status': False}]
    motd='**********\n\n'
    cli={
## 'disable clipaging'
'disable clipaging': """disable clipaging
Command: disable clipaging

Success.                                                          
""", 
## 'cable_diag ports all'
'cable_diag ports all': """cable_diag ports all
Command: cable_diag ports all

Perform Cable Diagnostics ...

Port      Type      Link Status    Test Result                 Cable Length (M)
------  ----------  -------------  -------------------------  -----------------
1:1     1000BASE-T  Link Up        OK                                4
1:2     1000BASE-T  Link Up        OK                                1
1:3     1000BASE-T  Link Up        OK                                3
1:4     1000BASE-T  Link Up        OK                                1
1:5     1000BASE-T  Link Up        Pair 1 Short     at   1M          -
                                   Pair 2 OK        at   4M
                                   Pair 3 OK        at   0M
                                   Pair 4 Short     at   1M
1:6     1000BASE-T  Link Up        OK                                3
1:7     1000BASE-T  Link Up        OK                                3
1:8     1000BASE-T  Link Up        Pair 1 Short     at   1M          -
                                   Pair 2 OK        at   1M
                                   Pair 3 OK        at   1M
                                   Pair 4 Short     at   1M
1:9     1000BASE-T  Link Up        OK                                3
1:10    1000BASE-T  Link Up        OK                                5
1:11    1000BASE-T  Link Down      No Cable                          -
1:12    1000BASE-T  Link Down      No Cable                          -
1:13    1000BASE-T  Link Down      No Cable                          -
1:14    1000BASE-T  Link Down      No Cable                          -
1:15    1000BASE-T  Link Down      No Cable                          -
1:16    1000BASE-T  Link Down      No Cable                          -
1:17    1000BASE-T  Link Down      No Cable                          -
1:18    1000BASE-T  Link Down      No Cable                          -
1:19    1000BASE-T  Link Down      No Cable                          -
1:20    1000BASE-T  Link Down      No Cable                          -
1:21    1000BASE-T  Link Down      No Cable                          -
1:22    1000BASE-T  Link Down      No Cable                          -
1:23    1000BASE-T  Link Down      No Cable                          -
1:24    1000BASE-T  Link Down      No Cable                          -

""", 
}
    snmp_get={}
    snmp_getnext={}
