discover/network: Add find_interface_by_uuid
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>
Mon, 5 Sep 2016 04:22:07 +0000 (14:22 +1000)
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>
Thu, 8 Sep 2016 04:26:27 +0000 (14:26 +1000)
commit82b4c9d7ecbfada62295620a6082caf1b9860ff6
tree9e84ed4802673c3c177160ee989487c4eccf0ddb
parent1def8f21aecc41ac22652e7b8bd1f5bf7a4dae98
discover/network: Add find_interface_by_uuid

Currently in network_register_device() and network_unregister_device()
the appropriate interface is searched for by name. However it is
possible in some scenarios for multiple interfaces to have the same
name, so instead search by UUID to be sure that the correct interface is
being selected.

Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
discover/network.c