Пример #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)
Пример #10
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)
Пример #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)