summaryrefslogtreecommitdiffstats
path: root/app/configuration/controllers/network-controller.html
diff options
context:
space:
mode:
authorGunnar Mills <gmills@us.ibm.com>2018-09-04 09:08:09 -0500
committerGunnar Mills <gmills@us.ibm.com>2018-09-04 09:43:33 -0500
commite364faa0314c8c98a31260bf69df78a104b106a1 (patch)
treec3ae858861258056f0812d072c97a5693fd9b497 /app/configuration/controllers/network-controller.html
parent4ddda586452cb65560bba645ef30e92200633405 (diff)
downloadphosphor-webui-e364faa0314c8c98a31260bf69df78a104b106a1.tar.gz
phosphor-webui-e364faa0314c8c98a31260bf69df78a104b106a1.zip
Remove hack for 1/0 booleans
With https://github.com/openbmc/phosphor-rest-server/commit/6691e7ca4e2adf52bac1fc3a82ed35adfce4349c and https://github.com/openbmc/bmcweb/commit/b79d4eef01f5fd2a24bb8dd28792810aa718cdee merged, this is no longer needed. This code removed here was breaking displaying the DHCP value. Change-Id: I465908190b1254238da8699a324a31a51771dace Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
Diffstat (limited to 'app/configuration/controllers/network-controller.html')
-rw-r--r--app/configuration/controllers/network-controller.html5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/configuration/controllers/network-controller.html b/app/configuration/controllers/network-controller.html
index 7a24671..1dd92eb 100644
--- a/app/configuration/controllers/network-controller.html
+++ b/app/configuration/controllers/network-controller.html
@@ -41,14 +41,13 @@
<fieldset>
<div class="row column">
<label class="control-radio" for="dhcp-address">Obtain an IP address automatically using DHCP
- <!-- TODO: openbmc/openbmc#3154 Rest server should return a proper JSON bool instead of "0" or "1"-->
- <input type="radio" name="ip-address" id="dhcp-address" ng-checked="true" ng-model="interface.DHCPEnabled" ng-value="1">
+ <input type="radio" name="ip-address" id="dhcp-address" ng-checked="true" ng-model="interface.DHCPEnabled" ng-value="true">
<span class="control__indicator control__indicator-on"></span>
</label>
</div>
<div class="row column">
<label class="control-radio" for="static-ip-address">Assign a static IP address
- <input type="radio" name="ip-address" id="static-ip-address" ng-model="interface.DHCPEnabled" ng-value="0"/>
+ <input type="radio" name="ip-address" id="static-ip-address" ng-model="interface.DHCPEnabled" ng-value="false"/>
<span class="control__indicator control__indicator-on"></span>
</label>
</div>
OpenPOWER on IntegriCloud