Skip to content

Commit

Permalink
ifup: apply policies and enable() device in order
Browse files Browse the repository at this point in the history
  • Loading branch information
wipawel committed Jul 16, 2015
1 parent e8c1b92 commit 2d4e003
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/ifup.c
Expand Up @@ -181,7 +181,7 @@ ni_ifup_hire_nanny(ni_ifworker_array_t *array, ni_bool_t set_persistent)

/* Send policies to nanny */
for (i = 0; i < array->count; i++) {
ni_ifworker_t *w = array->data[array->count-1-i];
ni_ifworker_t *w = array->data[i];

if (!w || xml_node_is_empty(w->config.node))
continue;
Expand All @@ -197,7 +197,7 @@ ni_ifup_hire_nanny(ni_ifworker_array_t *array, ni_bool_t set_persistent)

/* Enable devices with policies */
for (i = 0; i < array->count; i++) {
ni_ifworker_t *w = array->data[array->count-1-i];
ni_ifworker_t *w = array->data[i];
ni_netdev_t *dev = w ? w->device : NULL;

/* Ignore non-existing device */
Expand Down

0 comments on commit 2d4e003

Please sign in to comment.