Thanks for the clarification; I think I understand the requirement now.
I plan to propose a branch which does two things:
(1) Allow subnet to be changed for a mode=LINK_UP even if another LINK_UP already exists.
(2) Add a "force=True" option to the `link-subnet` API to:
- Allow selection of an arbitrary subnet, even if MAAS does not believe it to be on the VLAN that interface was discovered on. (This will implicitly change the VLAN.)
- Allow mode=LINK_UP to be set on the interface even if links already exist (those links will be deleted).
Thanks for the clarification; I think I understand the requirement now.
I plan to propose a branch which does two things:
(1) Allow subnet to be changed for a mode=LINK_UP even if another LINK_UP already exists.
(2) Add a "force=True" option to the `link-subnet` API to:
- Allow selection of an arbitrary subnet, even if MAAS does not believe it to be on the VLAN that interface was discovered on. (This will implicitly change the VLAN.)
- Allow mode=LINK_UP to be set on the interface even if links already exist (those links will be deleted).