(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
This commit is contained in:
Scott Hussey 2019-01-30 16:36:12 -06:00
parent 8d56122554
commit 70e85db81f
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ detach_rack_controller() {
do
vid=$(echo "$net" | jq -r .vid)
fid=$(echo "$net" | jq -r .fabric_id)
maas local vlan update "$fid" "$vid" primary_rack='' secondary_rack=''
maas local vlan update "$fid" "$vid" primary_rack='' secondary_rack='' dhcp_on=false
done
}