def get_interface_files(interfaces):
    update_files = {}

    for ifname, interface in interfaces.iteritems():
        ifaces, route_data = _get_file_data(ifname, interface)

        for ifname, data in ifaces:
            update_files[INTERFACE_FILE % ifname] = data

        if route_data:
            update_files[ROUTE_FILE % ifname] = route_data

    return update_files
dataset/ETHPy150Open rackerlabs/openstack-guest-agents-unix/commands/redhat/network.py/get_interface_files/original