|
@@ -391,16 +391,29 @@ class LaunchConfig(object):
|
|
|
pass
|
|
pass
|
|
|
|
|
|
|
|
@abstractmethod
|
|
@abstractmethod
|
|
|
- def add_net_id(self, net_id):
|
|
|
|
|
|
|
+ def add_network_interface(self, net_id):
|
|
|
"""
|
|
"""
|
|
|
- Add a private netword ID to the launch configuration.
|
|
|
|
|
|
|
+ Add a private network info to the launch configuration.
|
|
|
|
|
+
|
|
|
|
|
+ Examples:
|
|
|
|
|
+ ```
|
|
|
|
|
+ lc = provider.compute.instances.create_launch_config()
|
|
|
|
|
+
|
|
|
|
|
+ # 1. Add a VPC subnet for use with AWS
|
|
|
|
|
+ lc.add_network_interface('subnet-c24aeaff')
|
|
|
|
|
+
|
|
|
|
|
+ # 2. Add a network ID for use with OpenStack
|
|
|
|
|
+ lc.add_network_interface('5820c766-75fe-4fc6-96ef-798f67623238')
|
|
|
|
|
+ ```
|
|
|
|
|
|
|
|
:type net_id: str
|
|
:type net_id: str
|
|
|
:param net_id: Network ID to launch an instance into. This is a
|
|
:param net_id: Network ID to launch an instance into. This is a
|
|
|
preliminary implementation (pending full private cloud
|
|
preliminary implementation (pending full private cloud
|
|
|
- support within cloudbridge) so native netowrk IDs need
|
|
|
|
|
|
|
+ support within cloudbridge) so native network IDs need
|
|
|
to be supplied. For OpenStack, this is the Neutron
|
|
to be supplied. For OpenStack, this is the Neutron
|
|
|
- network ID. For AWS, this is a subnet ID.
|
|
|
|
|
|
|
+ network ID. For AWS, this is a VPC subnet ID. For the
|
|
|
|
|
+ time being, only a single network interface can be
|
|
|
|
|
+ supplied.
|
|
|
"""
|
|
"""
|
|
|
pass
|
|
pass
|
|
|
|
|
|