Comment 13 for bug 1902425

Revision history for this message
Arif Ali (arif-ali) wrote :

Seems like I have resolved my issue by disabling and enabling managed for each subnet that I have. Not sure, why I would need to do that with a fresh installation though. But as mine is a lab, I'm not too fussed, and at least I can crack on.

for line in $(maas admin subnets read | jq ".[] | {id:.id, space:.space}" --compact-output)
do
  subnet_id=$(echo $line | jq ".id")
  space=$(echo $line | jq ".space" | sed s/\"//g)

  maas admin subnet update $subnet_id managed=False
  [[ $space != "external" ]] && maas admin subnet update $subnet_id managed=True
done