RIFT-14835: DHCP enabled false now sent in instantiation package 38/538/1
authorLaurence Maultsby <laurence.maultsby@riftio.com>
Tue, 11 Oct 2016 15:38:03 +0000 (11:38 -0400)
committerLaurence Maultsby <laurence.maultsby@riftio.com>
Fri, 14 Oct 2016 14:04:36 +0000 (10:04 -0400)
Signed-off-by: Laurence Maultsby <laurence.maultsby@riftio.com>
skyquake/plugins/launchpad/src/instantiate/instantiateStore.js

index 2e27246..69953d7 100644 (file)
@@ -509,7 +509,9 @@ class LaunchNetworkServiceStore {
                     }
                     //Removing DCHP property on disable to allow instantiation
                     if(!value) {
-                        delete self.ipProfiles[i]['ip-profile-params']['dhcp-params'];
+                        self.ipProfiles[i]['ip-profile-params']['dhcp-params'] = {
+                            enabled: false
+                        };
                     } else {
                         self.ipProfiles[i]['ip-profile-params']['dhcp-params'][property] = value;
                     }