]> git.ozlabs.org Git - petitboot/commit
discover: extend URL in UI to support auto-discovery
authorNishanth Aravamudan <nacc@linux.vnet.ibm.com>
Wed, 19 Aug 2015 21:05:43 +0000 (14:05 -0700)
committerSamuel Mendoza-Jonas <sam.mj@au1.ibm.com>
Fri, 18 Dec 2015 02:06:53 +0000 (13:06 +1100)
commitf155a58a64c660e46e74123293482561b816a39a
tree9dd50fadc6c42cdbc0f34d28d67cac4653240946
parent32d3249e252fe201eb81155cbf3b800ce5cf88e0
discover: extend URL in UI to support auto-discovery

The URL field currently only supports loading a particular file for
static network configurations. But it makes sense in certain static
network configurations to 'auto-discover' a file like petitboot does
with DHCP -- based off the MAC address and IP. Extend
device_handler_process_url to take those as parameters, and toggle off
the URL ending in a '/' to indicate whether to 'auto-discover' or
directly load the specified URL.

Signed-off-by: Nishanth Aravamudan <nacc@linux.vnet.ibm.com>
Signed-off-by: Samuel Mendoza-Jonas <sam.mj@au1.ibm.com>
discover/device-handler.c
discover/device-handler.h
discover/discover-server.c
discover/network.c
discover/user-event.c