hil
hil copied to clipboard
Introduce macros in CLI
Once #431 is done so that we have a good CLI framework, we should implement CLI flags that use the API calls to:
- Remove networks from nodes that someone would like to release from their project
- Remove nodes from networks from projects they're releasing.
For example, instead of:
haas show_node node-36 (get list of networks it's attached to)
haas node-detach-network node-36 interface net-a
haas node-detach-network node-36 interface net-b
haas node-detach-network node-36 interface net-c
haas project_detach_node project node-36
one could do something like:
haas project_detach_node -r project node-36
You could also implement this for project_delete
Also network_delete
Remove networks from nodes that someone would like to release from their project.
Something like revert_port would help here, but it's admin only. This brings up a question, why didn't we just do a revert_nic in the first place? @zenhack