Is it possible to make IP Mode: DHCP the default?
For us it would be useful in two ways:
-
For using our sitewide DHCP servers.
-
For using Intel AMT with DHCP.
Currently the best I’ve been able to figure out is something like this after commissioning, which is ugly and which I’m not yet sure how to make happen automatically when commissioning of a node is finished:
$ maas admin nodes read | jq -r --arg NODE $NODE ‘.[] | select(.hostname==$NODE) | .system_id as $node_id | .interface_set[] | .id as $interface_id | .links[] | [$node_id, $interface_id, .id] | @sh’ | awk ‘{cmd=“maas admin interface unlink-subnet “$1” “$2” id=”$3; print(cmd); system(cmd)}’
$ maas admin nodes read | jq -r --arg NODE $NODE ‘.[] | select(.hostname==$NODE) | .system_id as $node_id | .interface_set[] | select(.link_connected==true) | .id as $interface_id | [$node_id, $interface_id] | @sh’ | awk ‘{cmd=“maas admin interface link-subnet “$1” “$2” subnet=192.168.43.0/24 mode=dhcp”; print(cmd); system(cmd)}’
It would be nice to not have to do that for the ~500 nodes we need to transition and any future nodes we bring in, but instead to have it as a default.