Skip to content

Commit

Permalink
nanny: register device also on device-up event
Browse files Browse the repository at this point in the history
Useful for devices like ovs bridge which receive device-create
followed by device-up event, which triggers refresh then and
device is considered ready afterwards.
Should not cause any harm, since ni_nanny_register_device()
checks if such device is already registered and return if so.
  • Loading branch information
wipawel committed Sep 4, 2015
1 parent 2a4c05a commit 686cc1e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nanny/nanny.c
Expand Up @@ -788,6 +788,7 @@ ni_nanny_process_fsm_event(ni_fsm_t *fsm, ni_ifworker_t *w, ni_fsm_event_t *ev)

switch (ev->event_type) {
case NI_EVENT_DEVICE_READY:
case NI_EVENT_DEVICE_UP:
ni_nanny_register_device(mgr, w);
break;

Expand Down

0 comments on commit 686cc1e

Please sign in to comment.