commit cfcaa895a6357a4bc08ce84928541f2d80c5b0e7
Author: Steve Baker <email address hidden>
Date: Wed Mar 6 15:29:12 2013 +1300
Allow instance NetworkInterfaces to be list of str or dict
It should be possible to specify NetworkInterfaces of an instance either
as an array of strings or as an array of dicts.
The following should now be possible:
This will define nics in the order specified by DeviceIndex
"NetworkInterfaces" : [
{ "NetworkInterfaceId" : {"Ref" : "controlXface"}, "DeviceIndex" : "0" },
{ "NetworkInterfaceId" : {"Ref" : "controlXface2"}, "DeviceIndex" : "1" },
],
This will define nics in the order specified by list position
"NetworkInterfaces" : [{"Ref" : "controlXface"}, {"Ref" : "controlXface2"}],
Mixing the 2 forms is supported but the resulting order is not defined.
Reviewed: https:/ /review. openstack. org/23645 github. com/openstack/ heat/commit/ cfcaa895a6357a4 bc08ce84928541f 2d80c5b0e7
Committed: http://
Submitter: Jenkins
Branch: master
commit cfcaa895a6357a4 bc08ce84928541f 2d80c5b0e7
Author: Steve Baker <email address hidden>
Date: Wed Mar 6 15:29:12 2013 +1300
Allow instance NetworkInterfaces to be list of str or dict
It should be possible to specify NetworkInterfaces of an instance either
as an array of strings or as an array of dicts.
The following should now be possible: erfaces" : [ ceId" : {"Ref" : "controlXface"}, "DeviceIndex" : "0" }, ceId" : {"Ref" : "controlXface2"}, "DeviceIndex" : "1" },
This will define nics in the order specified by DeviceIndex
"NetworkInt
{ "NetworkInterfa
{ "NetworkInterfa
],
This will define nics in the order specified by list position erfaces" : [{"Ref" : "controlXface"}, {"Ref" : "controlXface2"}],
"NetworkInt
Mixing the 2 forms is supported but the resulting order is not defined.
Amazon documentation is ambigious about which form is actually supported docs.aws. amazon. com/AWSCloudFor mation/ latest/ UserGuide/ aws-properties- ec2-instance. html#cfn- ec2-instance- networkinterfac es docs.aws. amazon. com/AWSCloudFor mation/ latest/ UserGuide/ quickref- ec2.html# cfn-template- snippets- eni
http://
http://
Fixes: Bug #1096013
Change-Id: Id387d2e750cbe5 33a9b8a1fedc49d 5bcf690fbcf