Fixed the broken scheduler FlatSingle
Removed the add_nic and attach_to_network methods from the NetworkGroup scheduler. Those are randered obsolete by the mac address scheduler and ip address scheduler
Fixed a faulty method name in the scheduler node module and added some TODO comments for myself
Removed the add_nic and attach_to_network methods from scheduler VifsRequestParam
Removed VifTemplate network scheduler
Deleted VifParamTemplate network scheduler
Removed the NatOneToOne network scheduler
Merge branch 'delete-old-network-schedulers' into cleanup-network-schedulers
Removed the SpecifyNetwork scheduler. It was only a quick and very dirty workaround for the attach_to_network method in the first place
Removed network scheduler FlatSingle
Added NetworkGroup to the default PerInstance scheduler
Fixed a refactoring mistake
Fixed a faulty check for ip_lease
Made sure to add network vifs to instances only after the vifs were saved in the database. This prevents a crash when instances are terminated due to a scheduler error. Also removed the attach_to_network method from VifsRequestParam.
Took mac address schedulers out of the network schedulers so we don't need to repeat that code all the time
Cleaned up the RequestParamToGroup network scheduler. Removed the add_nic and attach_to_network methods. Made it use the NetworkGroup scheduler's algorithms for selecting a network from a group
Removed Instance#add_nic method. It's not used any more
Add the instance's security groups to the vifs parameter in the api. This used to be done by the add_nic method.
Removed dirty whitespace
Made the incremental ip address scheduler able to handle nat ip assignment