示例#1
0
    def setCrashDumpForHosts(self, pool_ids):
        '''
        Set crash_dump_for_hosts relationship by Host id.

        Used by modeling.
        '''
        updateToMany(relationship=self.crash_dump_for_hosts,
                     root=self.device(),
                     type_=CLASS_NAME['Host'],
                     ids=pool_ids)
    def setVMs(self, vm_ids):
        '''
        Update VM relationship given ids.

        Used by modeling.
        '''
        updateToMany(relationship=self.vms,
                     root=self.device(),
                     type_=CLASS_NAME['VM'],
                     ids=vm_ids)
示例#3
0
    def setSuspendImageForHosts(self, pool_ids):
        '''
        Set suspend_image_for_hosts relationship by Host id.

        Used by modeling.
        '''
        updateToMany(relationship=self.suspend_image_for_hosts,
                     root=self.device(),
                     type_=CLASS_NAME['Host'],
                     ids=pool_ids)
示例#4
0
    def setSuspendImageForPools(self, pool_ids):
        '''
        Set suspend_image_for_pools relationship by Pool id.

        Used by modeling.
        '''
        updateToMany(relationship=self.suspend_image_for_pools,
                     root=self.device(),
                     type_=CLASS_NAME['Pool'],
                     ids=pool_ids)
示例#5
0
    def setCrashDumpForPools(self, pool_ids):
        '''
        Set crash_dump_for_pools relationship by Pool id.

        Used by modeling.
        '''
        updateToMany(relationship=self.crash_dump_for_pools,
                     root=self.device(),
                     type_=CLASS_NAME['Pool'],
                     ids=pool_ids)
示例#6
0
    def setPBDs(self, pbd_ids):
        '''
        Update PBD relationship given PBD ids.

        Used by modeling.
        '''
        updateToMany(relationship=self.pbds,
                     root=self.device(),
                     type_=CLASS_NAME['PBD'],
                     ids=pbd_ids)
示例#7
0
    def setDefaultForPools(self, pool_ids):
        '''
        Set default_for_pools relationship by Pool id.

        Used by modeling.
        '''
        updateToMany(relationship=self.default_for_pools,
                     root=self.device(),
                     type_=CLASS_NAME['Pool'],
                     ids=pool_ids)
示例#8
0
    def setLocalCacheForHosts(self, pool_ids):
        '''
        Set local_cache_for_hosts relationship by Host id.

        Used by modeling.
        '''
        updateToMany(relationship=self.local_cache_for_hosts,
                     root=self.device(),
                     type_=CLASS_NAME['Host'],
                     ids=pool_ids)
示例#9
0
    def setLocalCacheForHosts(self, pool_ids):
        '''
        Set local_cache_for_hosts relationship by Host id.

        Used by modeling.
        '''
        updateToMany(
            relationship=self.local_cache_for_hosts,
            root=self.device(),
            type_=CLASS_NAME['Host'],
            ids=pool_ids)
    def setVIFs(self, vif_ids):
        '''
        Update vifs relationship given ids.

        Used by modeling.
        '''
        updateToMany(
            relationship=self.vifs,
            root=self.device(),
            type_=CLASS_NAME['VIF'],
            ids=vif_ids)
示例#11
0
    def setVIFs(self, vif_ids):
        '''
        Update vifs relationship given ids.

        Used by modeling.
        '''
        updateToMany(
            relationship=self.vifs,
            root=self.device(),
            type_=CLASS_NAME['VIF'],
            ids=vif_ids)
示例#12
0
    def setCrashDumpForHosts(self, pool_ids):
        '''
        Set crash_dump_for_hosts relationship by Host id.

        Used by modeling.
        '''
        updateToMany(
            relationship=self.crash_dump_for_hosts,
            root=self.device(),
            type_=CLASS_NAME['Host'],
            ids=pool_ids)
示例#13
0
    def setSuspendImageForHosts(self, pool_ids):
        '''
        Set suspend_image_for_hosts relationship by Host id.

        Used by modeling.
        '''
        updateToMany(
            relationship=self.suspend_image_for_hosts,
            root=self.device(),
            type_=CLASS_NAME['Host'],
            ids=pool_ids)
示例#14
0
    def setCrashDumpForPools(self, pool_ids):
        '''
        Set crash_dump_for_pools relationship by Pool id.

        Used by modeling.
        '''
        updateToMany(
            relationship=self.crash_dump_for_pools,
            root=self.device(),
            type_=CLASS_NAME['Pool'],
            ids=pool_ids)
示例#15
0
    def setSuspendImageForPools(self, pool_ids):
        '''
        Set suspend_image_for_pools relationship by Pool id.

        Used by modeling.
        '''
        updateToMany(
            relationship=self.suspend_image_for_pools,
            root=self.device(),
            type_=CLASS_NAME['Pool'],
            ids=pool_ids)
示例#16
0
    def setDefaultForPools(self, pool_ids):
        '''
        Set default_for_pools relationship by Pool id.

        Used by modeling.
        '''
        updateToMany(
            relationship=self.default_for_pools,
            root=self.device(),
            type_=CLASS_NAME['Pool'],
            ids=pool_ids)
示例#17
0
    def setPBDs(self, pbd_ids):
        '''
        Update PBD relationship given PBD ids.

        Used by modeling.
        '''
        updateToMany(
            relationship=self.pbds,
            root=self.device(),
            type_=CLASS_NAME['PBD'],
            ids=pbd_ids)
    def setVMs(self, vm_ids):
        '''
        Update VM relationship given ids.

        Used by modeling.
        '''
        updateToMany(
            relationship=self.vms,
            root=self.device(),
            type_=CLASS_NAME['VM'],
            ids=vm_ids)
示例#19
0
    def setVBDs(self, vbd_ids):
        '''
        Update vbds relationship given vbd_ids.

        Used by modeling.
        '''
        updateToMany(
            relationship=self.vbds,
            root=self.device(),
            type_=CLASS_NAME['VBD'],
            ids=vbd_ids)