Пример #1
0
 def _assign_floating_ips(self, instances):
     for instance in instances:
         with context.set_current_instance_id(instance.instance_id):
             node_group = instance.node_group
             if node_group.floating_ip_pool:
                 networks.assign_floating_ip(instance.instance_id,
                                             node_group.floating_ip_pool)
Пример #2
0
 def _assign_floating_ips(self, instances):
     for instance in instances:
         with context.set_current_instance_id(instance.instance_id):
             node_group = instance.node_group
             if node_group.floating_ip_pool:
                 networks.assign_floating_ip(instance.instance_id,
                                             node_group.floating_ip_pool)
Пример #3
0
 def _assign_floating_ips(self, instances):
     for instance in instances:
         node_group = instance.node_group
         if node_group.floating_ip_pool:
             networks.assign_floating_ip(instance.instance_id,
                                         node_group.floating_ip_pool)
Пример #4
0
 def _assign_floating_ips(self, instances):
     for instance in instances:
         node_group = instance.node_group
         if node_group.floating_ip_pool:
             networks.assign_floating_ip(instance.instance_id,
                                         node_group.floating_ip_pool)