Browse Source

(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
Scott Hussey 2 months ago
parent
commit
70e85db81f
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      charts/maas/templates/bin/_register-rack-controller.sh.tpl

+ 1
- 1
charts/maas/templates/bin/_register-rack-controller.sh.tpl View File

@@ -17,7 +17,7 @@ detach_rack_controller() {
17 17
   do
18 18
     vid=$(echo "$net" | jq -r .vid)
19 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 21
   done
22 22
 }
23 23
 

Loading…
Cancel
Save