{"shas":[["c2fb9485f956482a5e6d628bb80e86d3e8d90d3a","e057834b74eb0167f99f20cedd8de2c839c5c54a@gmail.com","Our goal is to add optional parameter to the Create server OS 1.0 and 1.1 API to achieve following objectives:-\n\n1) Specify number and order of networks to the create server API.\n\nIn the current implementation every instance you launch for a project having 3 networks assigned to it will always have 3 vnics. In this case it is not possible to have one instance with 2 vnics ,another with 1 vnic and so on. This is not flexible enough and the network resources are not used effectively.\n\n2) Specify fixed IP address to the vnic at the boot time. When you launch a server, you can specify the fixed IP address you want to be assigned to the vnic from a particular network. If this fixed IP address is already in use, it will give exception.\n\nExample of Server Create API request XML:\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<server xmlns=\"http://docs.nttpflab.com/servers/api/v1.0\"\n        name=\"new-server-test\" imageId=\"1\" flavorId=\"1\">\n  <metadata>\n    <meta key=\"My Server Name\">Apache1</meta>\n  </metadata>\n  <personality>\n    <file path=\"/etc/banner.txt\">\n        ICAgICAgDQoiQSBjbG91ZCBkb2VzIG5vdCBrbm93IHdoeSBp\n    </file>\n  </personality>\n  <networks>\n      <network uuid=\"6622436e-5289-460f-8479-e4dcc63f16c5\" fixed_ip=\"10.0.0.3\">\n      <network uuid=\"d97efefc-e071-4174-b6dd-b33af0a37706\" fixed_ip=\"10.0.1.3\">\n  </networks>\n</server>\n\n3) Networks is an optional parameter, so if you don't provide any networks to the server Create API, it will behave exactly the same as of today.\n\nThis feature is supported to all of the network models.","Tushar Patil"]],"ref":"refs/heads/master","size":1,"head":"c2fb9485f956482a5e6d628bb80e86d3e8d90d3a","push_id":40327737}