Pushing this to 3.0.1, since I think this needs some considering. Even in 2.9, you couldn't create an alias with no IP. You'd have to create the alias, and then edit it to make it Unconfigured.
I think that itself was a bug, that was fixed for 3.0. Netplan doesn't support interface alias without IPs, and I couldn't find a way to create it in the API either. It explicitly errors out if you try to do that:
salvia:~> maas maas29 interface link-subnet 8kpkp6 4 subnet=3 mode=LINK_UP
{"mode": ["Cannot configure interface to link up (with no IP address) while other links are already configured. Specify force=True to override this behavior and delete all links."]}
Pushing this to 3.0.1, since I think this needs some considering. Even in 2.9, you couldn't create an alias with no IP. You'd have to create the alias, and then edit it to make it Unconfigured.
I think that itself was a bug, that was fixed for 3.0. Netplan doesn't support interface alias without IPs, and I couldn't find a way to create it in the API either. It explicitly errors out if you try to do that:
salvia:~> maas maas29 interface link-subnet 8kpkp6 4 subnet=3 mode=LINK_UP
{"mode": ["Cannot configure interface to link up (with no IP address) while other links are already configured. Specify force=True to override this behavior and delete all links."]}
Or how do you do this with the API?