Ejemplo n.º 1
0
 def get_all_networks(self, tenant_id, **kwargs):
     networks = []
     for c in self.clusters:
         networks.extend(nvplib.get_all_networks(c, tenant_id, networks))
     LOG.debug("get_all_networks() completed for tenant %s: %s" % (
         tenant_id, networks))
     return networks
Ejemplo n.º 2
0
 def get_all_networks(self, tenant_id, **kwargs):
     networks = []
     for c in self.clusters:
         networks.extend(nvplib.get_all_networks(c, tenant_id, networks))
     LOG.debug("get_all_networks() completed for tenant %s: %s" %
               (tenant_id, networks))
     return networks
    def get_all_networks(self, tenant_id, **kwargs):
        '''
        Returns a dictionary containing all <network_uuid, network_name> for
        the specified tenant.

        :returns: a list of mapping sequences with the following signature:
                     [{'net-id': uuid that uniquely identifies
                                      the particular quantum network,
                        'net-name': a human-readable name associated
                                      with network referenced by net-id
                      },
                       ....
                       {'net-id': uuid that uniquely identifies the
                                       particular quantum network,
                        'net-name': a human-readable name associated
                                       with network referenced by net-id
                      }
                   ]
        :raises: None
        '''
        networks = nvplib.get_all_networks(self.controller, tenant_id,
                                           [])
        LOG.debug("get_all_networks() completed for tenant %s: %s" % (
            tenant_id, networks))
        return networks
Ejemplo n.º 4
0
    def get_all_networks(self, tenant_id, **kwargs):
        """
        Returns a dictionary containing all <network_uuid, network_name> for
        the specified tenant.

        :returns: a list of mapping sequences with the following signature:
                     [{'net-id': uuid that uniquely identifies
                                      the particular quantum network,
                        'net-name': a human-readable name associated
                                      with network referenced by net-id
                      },
                       ....
                       {'net-id': uuid that uniquely identifies the
                                       particular quantum network,
                        'net-name': a human-readable name associated
                                       with network referenced by net-id
                      }
                   ]
        :raises: None
        """
        networks = nvplib.get_all_networks(self.controller, tenant_id, [])
        LOG.debug("get_all_networks() completed for tenant %s: %s" %
                  (tenant_id, networks))
        return networks
Ejemplo n.º 5
0
 def get_all_networks(self, tenant_id, **kwargs):
     networks = nvplib.get_all_networks(self.blue, tenant_id, [])
     LOG.debug("get_all_networks() completed for tenant %s: %s" %
               (tenant_id, networks))
     return networks