def find_layer3_devices(testbed, layer3_devices_list):
    """find_layer3_devices

    Given a testbed object, and list of device names, return a list of testbed devices of the names
    """
    layer3_devices = []

    for name in layer3_devices_list:
        if name in testbed.devices:
            layer3_devices.append(testbed.devices[name])
        else:
            print(f"Error: Device with name {name} not found in testbed.")

    return layer3_devices