Example #1
0
    def patch(self, storage_service, classes_of_service):

        path = os.path.join(self.root, self.storage_services, storage_service,
                            self.classes_of_service, classes_of_service,
                            'index.json')
        patch_object(path)
        return self.get(fabric)
 def patch(self, chassis, network_adapter, network_device_function):
     path = os.path.join(self.root, self.chassis, chassis,
                         self.network_adapters, network_adapter,
                         self.network_device_functions,
                         network_device_function, 'index.json')
     patch_object(path)
     return self.get(chassis, network_device_function)
Example #3
0
 def patch(self, system, fabric_adapter, fabric_adapter_port):
     path = os.path.join(self.root, self.systems, system, self.fabric_adapters, fabric_adapter, self.fabric_adapter_ports, fabric_adapter_port, 'index.json')
     patch_object(path)
     return self.get(system, fabric_adapter)
Example #4
0
    def patch(self, ident):
        logging.info('ComputerSystemAPI PATCH called')

        patch_object(path)
        return self.get(ident)
Example #5
0
 def patch(self, fabric, f_switch):
     path = os.path.join(self.root, self.fabrics, fabric, self.f_switches,
                         f_switch, 'index.json')
     patch_object(path)
     return self.get(fabric, f_switch)
Example #6
0
 def patch(self, chassis, media_controller, mc_ports):
     path = os.path.join(self.root, self.chassis, chassis,
                         self.media_controllers, media_controller,
                         self.mc_ports, mc_ports, 'index.json')
     patch_object(path)
     return self.get(chassis, media_controller, mc_ports)
Example #7
0
 def patch(self, chassis, memory_domain):
     path = os.path.join(self.root, self.chassis, chassis,
                         self.memory_domains, memory_domain, 'index.json')
     patch_object(path)
     return self.get(chassis, memory_domain)
Example #8
0
 def patch(self, fabric, f_connection):
     path = os.path.join(self.root, self.fabrics, fabric,
                         self.f_connections, f_connection, 'index.json')
     patch_object(path)
     return self.get(fabric, f_connection)
Example #9
0
 def patch(self, fabric, f_endpoint):
     path = os.path.join(self.root, self.fabrics, fabric, self.f_endpoints,
                         f_endpoint, 'index.json')
     patch_object(path)
     return self.get(fabric, f_endpoint)
Example #10
0
 def patch(self, fabric):
     #Set path to object, then call patch_object:
     path = create_path(self.root, self.fabrics, fabric, 'index.json')
     patch_object(path)
     return self.get(fabric)
Example #11
0
 def patch(self, chassis, drive):
     path = os.path.join(self.root, self.chassis, chassis, self.drives, drive, 'index.json')
     patch_object(path)
     return self.get(chassis, drive)
Example #12
0
 def patch(self, chassis, network_adapter, nw_port):
     path = os.path.join(self.root, self.chassis, chassis,
                         self.network_adapters, network_adapter,
                         self.nw_ports, nw_port, 'index.json')
     patch_object(path)
     return self.get(chassis, nw_port)
Example #13
0
 def patch(self, storage, volume):
     path = os.path.join(self.root, self.storage, storage, self.volumes,
                         volume, 'index.json')
     patch_object(path)
     return self.get(storage, volume)
Example #14
0
 def patch(self, storage, storagecontroller):
     path = os.path.join(self.root, self.storage, storage, self.storagecontrollers, storagecontroller, 'index.json')
     patch_object(path)
     return self.get(storage, storagecontroller)
Example #15
0
 def patch(self, ident):
     #Set path to object, then call patch_object:
     path = create_path(self.root, self.chassis, ident, 'index.json')
     patch_object(path)
     return self.get(ident)
Example #16
0
 def patch(self, storage):
     #Set path to object, then call patch_object:
     path = create_path(self.root, self.storage, storage, 'index.json')
     patch_object(path)
     return self.get(storage)
Example #17
0
 def patch(self, storage, storagepool):
     path = os.path.join(self.root, self.storage, storage,
                         self.storagepools, storagepool, 'index.json')
     patch_object(path)
     return self.get(storage, storagepool)