summaryrefslogtreecommitdiffstats
path: root/discover/discover-server.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/discover-server.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/discover-server.c')
-rw-r--r--discover/discover-server.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/discover/discover-server.c b/discover/discover-server.c
index e4f3b67..6806589 100644
--- a/discover/discover-server.c
+++ b/discover/discover-server.c
@@ -266,7 +266,8 @@ static int discover_server_process_message(void *arg)
case PB_PROTOCOL_ACTION_ADD_URL:
url = pb_protocol_deserialise_string((void *) client, message);
- device_handler_process_url(client->server->device_handler, url);
+ device_handler_process_url(client->server->device_handler,
+ url, NULL, NULL);
break;
default:
OpenPOWER on IntegriCloud