noc.sa.interfaces.igetcoppertdrdiag

Module Contents

class noc.sa.interfaces.igetcoppertdrdiag.IGetCopperTDRDiag

Bases: noc.core.interface.base.BaseInterface

Get copper cable TDR diagnostic results

>>> IGetCopperTDRDiag().clean_result([        {            "interface": "Gi 0/1",            "pairs": [                {"pair": 1, "status": "T", "distance_cm": 600},                {"pair": 2, "status": "T", "distance_cm": 600},                {"pair": 3, "status": "T", "distance_cm": 600},                {"pair": 4, "status": "T", "distance_cm": 600}            ]        },        {            "interface": "Gi 0/2",            "pairs": [                {"pair": 1, "status": "T",                    "distance_cm": 600, "variance_cm": 200},                {"pair": 2, "status": "S",                    "distance_cm": 300, "variance_cm": "200"},                {"pair": 3, "status": "O", "distance_cm": 0},                {"pair": 4, "status": "O", "distance_cm": 0}            ]        }    ])
[{'interface': 'Gi 0/1',        'pairs': [{'pair': 1, 'status': 'T', 'distance_cm': 600},                 {'pair': 2, 'status': 'T', 'distance_cm': 600},                 {'pair': 3, 'status': 'T', 'distance_cm': 600},                 {'pair': 4, 'status': 'T', 'distance_cm': 600}]},     {'interface': 'Gi 0/2',        'pairs': [{'pair': 1, 'status': 'T',                    'distance_cm': 600, 'variance_cm': 200},                 {'pair': 2, 'status': 'S',                    'distance_cm': 300, 'variance_cm': 200},                 {'pair': 3, 'status': 'O', 'distance_cm': 0},                 {'pair': 4, 'status': 'O', 'distance_cm': 0}]}]
interface
returns