diff options
author | Dixsie Wolmers <dixsie@ibm.com> | 2020-12-16 23:25:04 +0300 |
---|---|---|
committer | Derick Montague <derick.montague@ibm.com> | 2021-02-08 06:36:20 +0300 |
commit | 157d2ffe6175e5849c7137dabdb05dd5b50ed372 (patch) | |
tree | 1eebca2d70137cd8c48131b4257c4a8b16e4c90f /src/store/modules/Configuration/NetworkSettingsStore.js | |
parent | f4e909d5415b1fe6764b1184dd0de35800b994d7 (diff) | |
download | webui-vue-157d2ffe6175e5849c7137dabdb05dd5b50ed372.tar.xz |
Add DHCP enable to Network Settings page
- Adds ability to disable or enable DHCP from UI.
- Displays DHCP addresses in table.
- Displays only Static addresses in Static table
Note for testing:
- If BMC does not have a DHCP server on the network
when enabling DHCP then system will go down (no IP
addresses will be available)
Signed-off-by: Dixsie Wolmers <dixsie@ibm.com>
Change-Id: I4a9e6e13a80bcac8233e4382c0f4accc59c8adb8
Diffstat (limited to 'src/store/modules/Configuration/NetworkSettingsStore.js')
-rw-r--r-- | src/store/modules/Configuration/NetworkSettingsStore.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/store/modules/Configuration/NetworkSettingsStore.js b/src/store/modules/Configuration/NetworkSettingsStore.js index 9cdcd415..159c5bf6 100644 --- a/src/store/modules/Configuration/NetworkSettingsStore.js +++ b/src/store/modules/Configuration/NetworkSettingsStore.js @@ -82,6 +82,9 @@ const NetworkSettingsStore = { const data = { HostName: networkSettingsForm.hostname, MACAddress: networkSettingsForm.macAddress, + DHCPv4: { + DHCPEnabled: networkSettingsForm.isDhcpEnabled, + }, }; // If DHCP disabled, update static DNS or static ipv4 |