fog/fog — pull request #1642 by jedipunkz (2013-03-08 03:48:34+00:00)
Title: enabled to select the net-id of quantum when you boot the instance.

I enabled to select the net-id of quantum when you boot instances.

This OpenStack API Guide does not contain about booting with net-id of quantum.
So I checked API by executing the 'nova boot --nic' command.

and This patch also enabled to select 'v4-fixed-ip' and 'port-id'.

I did test with mock and real OpenStack router of folsom (2012.2.1) release.

If you boot with fog like this, you can select the net-id.

@compute.create_server('fogtest05', image_id, flavor_id, {'net_id' => uuid, 'v4_fixed_ip' => ip, 'port_id' => port})

or

@compute.create_server('fogtest05', image_id, flavor_id, {'net_id' => uuid})

Best Regards from Tokyo. :D