import six


def switch_interface_config_select_name(switch_interface_config, names):
    """Select and return all switch interfaces matching requested names.

    :param switch_interface_config: Switch interface configuration dict
    :param names: String or list of strings - interface names to match
    """
    if isinstance(names, six.string_types):
        names = [names]

    return {
        name: config
        for name, config in switch_interface_config.items()
        if name in names
    }