[2.x, CLI] Cannot update interface IP assignment mode

Bug #1700795 reported by Peter Matulis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Invalid
High
Mike Pontillo
2.2
Won't Fix
High
Unassigned

Bug Description

Updating the IP assignment mode (DHCP, AUTO, STATIC, LINK_UP) does not seem to be possible via the CLI. It is not documented via 'maas $PROFILE interface update -h' and the below guess appears to work (no error) but does not:

$ maas $PROFILE interface update $SYSTEM_ID $INT_ID mode=$LINK_MODE

For example,

$ maas $PROFILE interface read nxfsff 40 | grep mode
                "rdns_mode": 2,
            "mode": "dhcp"

$ maas $PROFILE interface update nxfsff 40 mode=auto

$ maas $PROFILE interface read nxfsff 40 | grep mode
                "rdns_mode": 2,
            "mode": "dhcp"

Tags: docteam
Revision history for this message
Andres Rodriguez (andreserl) wrote :

YOu need to use the 'interface' endpoint with 'link-subnet': e.g.

maas admin interface link-subnet d77f3f 63 mode=AUTO subnet=10.248.64.0/19

Changed in maas:
status: New → Invalid
Revision history for this message
Peter Matulis (petermatulis) wrote :

Although I was using the wrong command, the bug remains valid: I cannot update, I need to destroy and create with 'unlink-subnet' and 'link-subnet'. This is inconsistent with the update capabilities of other commands.

Comment: The unlink command requires the system_id, the interface_id, and the link_id. This is painful. It would be nice to make this easier. Like gaining a command that provides IDs for various things.

Changed in maas:
status: Invalid → New
Changed in maas:
status: New → Triaged
summary: - [CLI] Cannot update interface IP assignment mode
+ [2.x, CLI] Cannot update interface IP assignment mode
Changed in maas:
milestone: none → 2.3.0
importance: Undecided → High
Changed in maas:
milestone: 2.3.0 → 2.3.0beta2
Changed in maas:
assignee: nobody → Björn Tillenius (bjornt)
Changed in maas:
milestone: 2.3.0beta2 → 2.3.0beta3
Changed in maas:
milestone: 2.3.0beta3 → 2.3.0beta4
assignee: Björn Tillenius (bjornt) → nobody
Changed in maas:
milestone: 2.3.0beta4 → 2.3.x
Changed in maas:
assignee: nobody → Mike Pontillo (mpontillo)
milestone: 2.3.x → 2.5.x
Revision history for this message
Adam Collard (adam-collard) wrote :

This bug has not seen any activity in the last 6 months, so it is being automatically closed.

If you are still experiencing this issue, please feel free to re-open.

MAAS Team

Changed in maas:
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.