summaryrefslogtreecommitdiffstats
path: root/discover/user-event.c
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/user-event.c
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/user-event.c')
-rw-r--r--discover/user-event.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/discover/user-event.c b/discover/user-event.c
index 8cad1a9..8926458 100644
--- a/discover/user-event.c
+++ b/discover/user-event.c
@@ -439,7 +439,7 @@ static int user_event_url(struct user_event *uev, struct event *event)
url = event_get_param(event, "url");
if (url)
- device_handler_process_url(handler, url);
+ device_handler_process_url(handler, url, NULL, NULL);
return 0;
}
OpenPOWER on IntegriCloud