CCI-MOC / hil

Hardware Isolation Layer, formerly Hardware as a Service
Apache License 2.0
24 stars 54 forks source link

Introduce macros in CLI #576

Open henn opened 8 years ago

henn commented 8 years ago

Once #431 is done so that we have a good CLI framework, we should implement CLI flags that use the API calls to:

  1. Remove networks from nodes that someone would like to release from their project
  2. 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
henn commented 8 years ago

You could also implement this for project_delete

gsilvis commented 8 years ago

Also network_delete

naved001 commented 6 years ago

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