summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Hussey <sh8121@att.com>2019-01-30 16:36:12 -0600
committerScott Hussey <sh8121@att.com>2019-01-30 16:36:12 -0600
commit70e85db81fad6d718d0a4953d1ac4fa6e498373f (patch)
tree1f62843fa07fd56f42d9a745168115892e0c8ec9
parent8d56122554cda0ab57a39907509c60de260e1079 (diff)
(fix) disable dhcp when detaching rack
- When the register-rack-controller service runs, it removes rack controllers from all VLANs. However it leaves the VLAN in a unsupported config with dhcp_on as true and no rack controllers. Also disable dhcp_on when detaching the rack controllers. Change-Id: I9f91ac60372873497b67b793940b2675eb98ff64
Notes
Notes (review): Code-Review+1: Nishant Kumar <nishant.e.kumar@ericsson.com> Code-Review+2: Sean Eagan <sean.eagan@att.com> Code-Review+2: Bryan Strassner <strassner.bryan@gmail.com> Workflow+1: Bryan Strassner <strassner.bryan@gmail.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Thu, 31 Jan 2019 16:33:40 +0000 Reviewed-on: https://review.openstack.org/634061 Project: openstack/airship-maas Branch: refs/heads/master
-rw-r--r--charts/maas/templates/bin/_register-rack-controller.sh.tpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/charts/maas/templates/bin/_register-rack-controller.sh.tpl b/charts/maas/templates/bin/_register-rack-controller.sh.tpl
index 37e4bb0..ef4c444 100644
--- a/charts/maas/templates/bin/_register-rack-controller.sh.tpl
+++ b/charts/maas/templates/bin/_register-rack-controller.sh.tpl
@@ -17,7 +17,7 @@ detach_rack_controller() {
17 do 17 do
18 vid=$(echo "$net" | jq -r .vid) 18 vid=$(echo "$net" | jq -r .vid)
19 fid=$(echo "$net" | jq -r .fabric_id) 19 fid=$(echo "$net" | jq -r .fabric_id)
20 maas local vlan update "$fid" "$vid" primary_rack='' secondary_rack='' 20 maas local vlan update "$fid" "$vid" primary_rack='' secondary_rack='' dhcp_on=false
21 done 21 done
22} 22}
23 23