Browse Source

Rename launch config network interface method

Enis Afgan 10 years ago
parent
commit
baa0d45d8e
2 changed files with 7 additions and 5 deletions
  1. 1 1
      cloudbridge/cloud/base.py
  2. 6 4
      cloudbridge/cloud/interfaces/resources.py

+ 1 - 1
cloudbridge/cloud/base.py

@@ -246,7 +246,7 @@ class BaseLaunchConfig(LaunchConfig):
             is_volume=True, source=source, is_root=is_root, size=size,
             is_volume=True, source=source, is_root=is_root, size=size,
             delete_on_terminate=delete_on_terminate)
             delete_on_terminate=delete_on_terminate)
 
 
-    def add_net_id(self, net_id):
+    def add_network_iterface(self, net_id):
         self.net_ids.append(net_id)
         self.net_ids.append(net_id)
 
 
 
 

+ 6 - 4
cloudbridge/cloud/interfaces/resources.py

@@ -391,16 +391,18 @@ class LaunchConfig(object):
         pass
         pass
 
 
     @abstractmethod
     @abstractmethod
-    def add_net_id(self, net_id):
+    def add_network_iterface(self, net_id):
         """
         """
-        Add a private netword ID to the launch configuration.
+        Add a private network info to the launch configuration.
 
 
         :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