summaryrefslogtreecommitdiff
path: root/src/network/networkd-network.c
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2013-11-14 16:22:51 +0100
committerTom Gundersen <teg@jklm.no>2013-11-17 23:12:27 +0100
commitf882c247ad59776c3a7753bb963c1f8e2386cb79 (patch)
treefa042fb8ddef72319f7a66aa4c267fa8824c5995 /src/network/networkd-network.c
parent8cd11a0f0f4ca05199e1166f6a07472b296f7455 (diff)
networkd: make all calls async
Diffstat (limited to 'src/network/networkd-network.c')
-rw-r--r--src/network/networkd-network.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/src/network/networkd-network.c b/src/network/networkd-network.c
index 69c55edb8f..638343459c 100644
--- a/src/network/networkd-network.c
+++ b/src/network/networkd-network.c
@@ -157,8 +157,6 @@ int network_get(Manager *manager, struct udev_device *device, Network **ret) {
}
int network_apply(Manager *manager, Network *network, Link *link) {
- Address *address;
- Route *route;
int r;
log_info("Network '%s' being applied to link '%u'",
@@ -166,21 +164,9 @@ int network_apply(Manager *manager, Network *network, Link *link) {
link->network = network;
- LIST_FOREACH(addresses, address, network->addresses) {
- r = address_configure(manager, address, link);
- if (r < 0)
- return r;
- }
-
- r = link_up(manager, link);
+ r = link_configure(link);
if (r < 0)
return r;
- LIST_FOREACH(routes, route, network->routes) {
- r = route_configure(manager, route, link);
- if (r < 0)
- return r;
- }
-
return 0;
}