I think it is better to add an "--security-group" option to the client. This option can be specified multiple times if you want to associate multiple security groups with the port.
$ quantum port-update --security-group sg1 $port_id $ quantum port-update --security-group sg1 --security-group sg2 $port_id
I think it is better to add an "--security-group" option to the client.
This option can be specified multiple times if you want to associate multiple security groups with the port.
$ quantum port-update --security-group sg1 $port_id
$ quantum port-update --security-group sg1 --security-group sg2 $port_id