(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:
parent
8d56122554
commit
70e85db81f
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user