@pytest.fixture(scope='module', params=['ingress', 'egress'])
def stage(request, duthosts, rand_one_dut_hostname):
    'Parametrize tests for Ingress/Egress stage testing.\n\n    Args:\n        request: A fixture to interact with Pytest data.\n        duthosts: All DUTs belong to the testbed.\n        rand_one_dut_hostname: hostname of a random chosen dut to run test.\n\n    Returns:\n        str: The ACL stage to be tested.\n\n    '
    duthost = duthosts[rand_one_dut_hostname]
    pytest_require(((request.param == 'ingress') or (duthost.facts['asic_type'] not in 'broadcom')), 'Egress ACLs are not currently supported on "{}" ASICs'.format(duthost.facts['asic_type']))
    return request.param
Parametrize tests for Ingress/Egress stage testing.

Args:
    request: A fixture to interact with Pytest data.
    duthosts: All DUTs belong to the testbed.
    rand_one_dut_hostname: hostname of a random chosen dut to run test.

Returns:
    str: The ACL stage to be tested.
@pytest.fixture(scope='module', params=['ingress', 'egress'])
def stage(request, duthosts, rand_one_dut_hostname):
    'Parametrize tests for Ingress/Egress stage testing.\n\n    Args:\n        request: A fixture to interact with Pytest data.\n        duthosts: All DUTs belong to the testbed.\n        rand_one_dut_hostname: hostname of a random chosen dut to run test.\n\n    Returns:\n        str: The ACL stage to be tested.\n\n    '
    duthost = duthosts[rand_one_dut_hostname]
    pytest_require(((request.param == 'ingress') or (duthost.facts['asic_type'] not in 'broadcom')), 'Egress ACLs are not currently supported on "{}" ASICs'.format(duthost.facts['asic_type']))
    return request.param