[2.3, CLI, docstring] 'subnet update' docstrings and error message is misleading
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Invalid
|
Medium
|
Unassigned |
Bug Description
MAAS 2.3.3 subnet update command parameter value expectations are inconsistent.
This method accepts keyword arguments:
:param name: Name of the subnet.
:param description: Description of the subnet.
:param vlan: VLAN this subnet belongs to.
:param space: Space this subnet is in.
:param cidr: The network CIDR for this subnet.
:param gateway_ip: The gateway IP address for this subnet.
:param rdns_mode: How reverse DNS is handled for this subnet.
:param allow_proxy: Configure maas-proxy to allow requests from this subnet.
:param dns_servers: Comma-seperated list of DNS servers for this subnet.
When trying to invoke with vlan parameter:
maas maas subnet update 46 fabric=3 vlan=1502 name=100.70.0.0/20 cidr=100.70.0.0/20 gateway_ip=
{"vlan": ["Select a valid choice. That choice is not one of the available choices."]}
This way it is impossible to reassign subnet vlan from CLI.
Changed in maas: | |
status: | Incomplete → Invalid |
Changed in maas: | |
milestone: | 2.4.0rc2 → 2.5.0 |
Changed in maas: | |
milestone: | 2.5.0 → 2.5.x |
Hi Michal,
Can you please clarify what you mean by "invoking the vlan parameter"? What are you trying to do?
That said, the error does indeed seem non-informative, but at the same time, it could actually be an issue given that the vlan=1502 may not exist...
Also, in your report you have 'gateway_ip='
Thanks