Example #1
0
    def get_repositories(include_image_vm=False):
        from vms.models.image import ImageVm  # circular imports

        repos = OrderedDict(sorted(iteritems(DefaultDc().settings.VMS_IMAGE_REPOSITORIES)))
        image_vm = ImageVm()

        if include_image_vm and image_vm and image_vm.has_ip():
            repos[image_vm.repo_name] = image_vm.repo_url

        return repos
Example #2
0
 def get_additional_sources():
     return DefaultDc().settings.VMS_IMAGE_SOURCES  # dc1_settings
Example #3
0
 def get_uuid():
     return DefaultDc().settings.VMS_IMAGE_VM  # dc1_settings
Example #4
0
 def get_nic_id():
     return DefaultDc().settings.VMS_IMAGE_VM_NIC  # dc1_settings
Example #5
0
 def get_repositories():
     return DefaultDc().settings.VMS_IMAGE_REPOSITORIES