summaryrefslogtreecommitdiffstats
path: root/discover/platform.c
diff options
context:
space:
mode:
authorNishanth Aravamudan <nacc@linux.vnet.ibm.com>2015-08-19 14:05:05 -0700
committerSamuel Mendoza-Jonas <sam.mj@au1.ibm.com>2015-12-18 13:06:53 +1100
commit32d3249e252fe201eb81155cbf3b800ce5cf88e0 (patch)
treeb5666989c2906d1a923d297f01208fb01ed8abbb /discover/platform.c
parent45e9e7a53540e87e2129bb11fd853501131fb795 (diff)
downloadpetitboot-32d3249e252fe201eb81155cbf3b800ce5cf88e0.zip
petitboot-32d3249e252fe201eb81155cbf3b800ce5cf88e0.tar.gz
ui: add URL for static configurations to load a specified file
In certain configurations, e.g. automation, we want to use static networking but load a particular file, automatically and parse it as a pxelinux config file. Currently, we support something like this for DHCP based booting, but not static. Add a URL field to the UI for static configurations and reuse the logic from device_handler_process_url() to load the specified file. 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/platform.c')
-rw-r--r--discover/platform.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/discover/platform.c b/discover/platform.c
index 5f448f1..fc0930d 100644
--- a/discover/platform.c
+++ b/discover/platform.c
@@ -60,6 +60,7 @@ static void dump_config(struct config *config)
pb_log(" static:\n");
pb_log(" ip: %s\n", ifconf->static_config.address);
pb_log(" gw: %s\n", ifconf->static_config.gateway);
+ pb_log(" url: %s\n", ifconf->static_config.url);
}
}
OpenPOWER on IntegriCloud