add security group pro in network field when creating server

Registered by Jeffrey Zhang on 2015-07-02

in Neutron Network, we can attach more than one network to the instance. It will be confused using the following cli.

    nova boot test --flavor m1.tiny --security_group ssh --security_group \
            http --nic net-id=xxxxxxxxxxx --nic port-id=yyyyyyyyyyy

Which port/nic the security group should bind to? the first one? both? or none?

The legacy network will be removed and I think it is the time to change the API to satisfied the new situation. May be the new cli like below:

    nova boot test --flavor m1.tiny --nic net-id=xxxxxx,security_group=ssh \
         --nic port-id=yyyyyyyyy \
         --nic net-id=zzzzzzzz,security_group=http,security_group=mysql

So I think we should refactor the nova api to support above cli. May be we need a new micro version api

Blueprint information

Status:
Not started
Approver:
None
Priority:
Undefined
Drafter:
Jeffrey Zhang
Direction:
Needs approval
Assignee:
Jeffrey Zhang
Definition:
New
Series goal:
None
Implementation:
Unknown
Milestone target:
None

Related branches

Sprints

Whiteboard

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.