From 157d2ffe6175e5849c7137dabdb05dd5b50ed372 Mon Sep 17 00:00:00 2001 From: Dixsie Wolmers Date: Wed, 16 Dec 2020 14:25:04 -0600 Subject: 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 Change-Id: I4a9e6e13a80bcac8233e4382c0f4accc59c8adb8 --- src/store/modules/Configuration/NetworkSettingsStore.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/store') 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 -- cgit v1.2.3