Exemple #1
0
    def delete_partition(self, service, bigips):
        """Deletes partition from a set of BIG-IP systems.

        Deletes partition if it is not named "Common".

        :param service: Dictionary which contains a load balancer definition.
        :param bigips: Array of BigIP class instances to delete partition.
        """
        folder = ServiceModelAdapter.get_partition(service)
        if folder != "Common":
            for bigip in bigips:
                self.folder_helper.delete(bigip, name=folder["name"])
Exemple #2
0
    def create_partition(self, service, bigips):
        """Create tenant partition on set of BIG-IPs.

        Creates a partition if it is not named "Common".

        :param service: Dictionary which contains a both a listener
        and load balancer definition.
        :param bigips: Array of BigIP class instances to create Listener.
        """
        folder = ServiceModelAdapter.get_partition(service)
        if folder != "Common":
            for bigip in bigips:
                self.folder_helper.create(bigip, folder)