summaryrefslogtreecommitdiffstats
path: root/discover/device-handler.h
diff options
context:
space:
mode:
authorNishanth Aravamudan <nacc@linux.vnet.ibm.com>2015-08-19 14:05:43 -0700
committerSamuel Mendoza-Jonas <sam.mj@au1.ibm.com>2015-12-18 13:06:53 +1100
commitf155a58a64c660e46e74123293482561b816a39a (patch)
tree9dd50fadc6c42cdbc0f34d28d67cac4653240946 /discover/device-handler.h
parent32d3249e252fe201eb81155cbf3b800ce5cf88e0 (diff)
downloadtalos-petitboot-f155a58a64c660e46e74123293482561b816a39a.tar.gz
talos-petitboot-f155a58a64c660e46e74123293482561b816a39a.zip
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>
Diffstat (limited to 'discover/device-handler.h')
-rw-r--r--discover/device-handler.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/discover/device-handler.h b/discover/device-handler.h
index d18910a..e5501ec 100644
--- a/discover/device-handler.h
+++ b/discover/device-handler.h
@@ -133,7 +133,7 @@ void device_handler_cancel_default(struct device_handler *handler);
void device_handler_update_config(struct device_handler *handler,
struct config *config);
void device_handler_process_url(struct device_handler *handler,
- const char *url);
+ const char *url, const char *mac, const char *ip);
void device_handler_reinit(struct device_handler *handler);
int device_request_write(struct discover_device *dev, bool *release);
OpenPOWER on IntegriCloud