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
def get_additional_sources(): return DefaultDc().settings.VMS_IMAGE_SOURCES # dc1_settings
def get_uuid(): return DefaultDc().settings.VMS_IMAGE_VM # dc1_settings
def get_nic_id(): return DefaultDc().settings.VMS_IMAGE_VM_NIC # dc1_settings
def get_repositories(): return DefaultDc().settings.VMS_IMAGE_REPOSITORIES