# Path: hardware/detect_utils.py
# AUXV_FLAGS = ["AT_HWCAP", "AT_HWCAP2", "AT_PAGESZ",
#               "AT_FLAGS", "AT_PLATFORM"]
# AUXV_OPT_FLAGS = ["AT_BASE_PLATFORM"]
# def cmd(cmdline):
# def output_lines(cmdline):
# def parse_lldtool(hw_lst, interface_name, lines):
# def get_lld_status(hw_lst, interface_name):
# def parse_ethtool(hw_lst, interface_name, lines):
# def get_ethtool_status(hw_lst, interface_name):
# def which(program):
#     def is_exe(fpath):
# def size_in_gb(size):
# def clean_str(val):
# def clean_tuples(lst):
# def _get_uuid_x86_64():
# def _get_uuid_ppc64le(hw_lst):
# def get_uuid(hw_lst):
# def get_value(hw_lst, *vect):
# def get_cidr(netmask):
# def from_file(filename):
# def fix_bad_serial(hw_lst, system_uuid, mobo_id, nic_id):
# def get_cpus(hw_lst):
#     def _maybe_int(v):
#     def _get_governor(lcpu):
# def modprobe(module):
# def detect_auxv():
# def parse_ahci(words):
# def parse_dmesg():
# 
# Path: hardware/tests/utils.py
# def sample(name, mode='r'):
#     return open(os.path.join(_BASEDIR, 'samples', name), mode).read()


import unittest
from hardware import detect_utils
from hardware.tests.utils import sample
     'eth0',
     'MAC_PHY Configuration Status/PMD auto-negotiation capabilities/MAU type',
     '1000 BaseTFD'),
    ('lldp', 'eth0', 'Port Description', 'gigabitethernet1_1'),
    ('lldp', 'eth0', 'System Name', 'Switch POD'),
    ('lldp', 'eth0', 'System Description', 'R1-2401 VRTX 1Gb Switch Module'),
    ('lldp', 'eth0', 'System Capabilities/System capabilities', 'Bridge'),
    ('lldp',
     'eth0',
     'System Capabilities/System capabilities/Enabled capabilities',
     'Bridge')]

LLDPTOOL_TIN2_RESULTS = [
    ('lldp', 'eth0', 'Chassis ID/MAC', '58:f3:9c:81:ad:95'),
    ('lldp', 'eth0', 'Port ID/Ifname', 'Ethernet1_14'),
    ('lldp', 'eth0', 'Time to Live', '120'),
    ('lldp', 'eth0', 'Port Description', 'SRV-51D4-14'),
    ('lldp', 'eth0', 'System Name', 'AC3K-51D4-05.local.odcnoord.nl'),
    ('lldp',
     'eth0',
     'System Description',
     'Cisco Nexus Operating System (NX-OS) Software 6.0(2)U2(5)'),
    ('lldp', 'eth0', 'System Capabilities/System capabilities',
     'Bridge, Router'),
    ('lldp',
     'eth0',
     'System Capabilities/System capabilities/Enabled capabilities',
     'Bridge, Router'),
    ('lldp', 'eth0', 'Management Address/IPv4', '10.100.5.24'),
    ('lldp', 'eth0', 'Management Address/IPv4/Ifindex', '83886080'),

# Path: hardware/detect_utils.py
# AUXV_FLAGS = ["AT_HWCAP", "AT_HWCAP2", "AT_PAGESZ",
#               "AT_FLAGS", "AT_PLATFORM"]
# AUXV_OPT_FLAGS = ["AT_BASE_PLATFORM"]
# def cmd(cmdline):
# def output_lines(cmdline):
# def parse_lldtool(hw_lst, interface_name, lines):
# def get_lld_status(hw_lst, interface_name):
# def parse_ethtool(hw_lst, interface_name, lines):
# def get_ethtool_status(hw_lst, interface_name):
# def which(program):
#     def is_exe(fpath):
# def size_in_gb(size):
# def clean_str(val):
# def clean_tuples(lst):
# def _get_uuid_x86_64():
# def _get_uuid_ppc64le(hw_lst):
# def get_uuid(hw_lst):
# def get_value(hw_lst, *vect):
# def get_cidr(netmask):
# def from_file(filename):
# def fix_bad_serial(hw_lst, system_uuid, mobo_id, nic_id):
# def get_cpus(hw_lst):
#     def _maybe_int(v):
#     def _get_governor(lcpu):
# def modprobe(module):
# def detect_auxv():
# def parse_ahci(words):
# def parse_dmesg():
# 
# Path: hardware/tests/utils.py
# def sample(name, mode='r'):
#     return open(os.path.join(_BASEDIR, 'samples', name), mode).read()


# Path: hardware/tests/test_lldp.py
import unittest
from hardware import detect_utils
from hardware.tests.utils import sample

     'eth0',
     'MAC_PHY Configuration Status/PMD auto-negotiation capabilities/MAU type',
     '1000 BaseTFD'),
    ('lldp', 'eth0', 'Port Description', 'gigabitethernet1_1'),
    ('lldp', 'eth0', 'System Name', 'Switch POD'),
    ('lldp', 'eth0', 'System Description', 'R1-2401 VRTX 1Gb Switch Module'),
    ('lldp', 'eth0', 'System Capabilities/System capabilities', 'Bridge'),
    ('lldp',
     'eth0',
     'System Capabilities/System capabilities/Enabled capabilities',
     'Bridge')]

LLDPTOOL_TIN2_RESULTS = [
    ('lldp', 'eth0', 'Chassis ID/MAC', '58:f3:9c:81:ad:95'),
    ('lldp', 'eth0', 'Port ID/Ifname', 'Ethernet1_14'),
    ('lldp', 'eth0', 'Time to Live', '120'),
    ('lldp', 'eth0', 'Port Description', 'SRV-51D4-14'),
    ('lldp', 'eth0', 'System Name', 'AC3K-51D4-05.local.odcnoord.nl'),
    ('lldp',
     'eth0',
     'System Description',
     'Cisco Nexus Operating System (NX-OS) Software 6.0(2)U2(5)'),
    ('lldp', 'eth0', 'System Capabilities/System capabilities',
     'Bridge, Router'),
    ('lldp',
     'eth0',
     'System Capabilities/System capabilities/Enabled capabilities',
     'Bridge, Router'),
    ('lldp', 'eth0', 'Management Address/IPv4', '10.100.5.24'),
    ('lldp', 'eth0', 'Management Address/IPv4/Ifindex', '83886080'),

    ('lldp', 'eth0', 'CEE DCBX/Control TLV/SeqNo', '1, AckNo: 1'),