예제 #1
0
 def get(self, chassis, network_adapter, nw_port):
     path = create_path(self.root, self.chassis, chassis,
                        self.network_adapters, network_adapter,
                        self.nw_ports, nw_port, 'index.json')
     return get_json_data(path)
예제 #2
0
 def delete(self, chassis):
     #Set path to object, then call delete_object:
     path = create_path(self.root, self.chassis, chassis, self.drives)
     base_path = create_path(self.root, self.chassis, chassis)
     return delete_collection(path, base_path)
예제 #3
0
 def delete(self, storage):
     #Set path to object, then call delete_object:
     path = create_path(self.root, self.storage, storage, self.volumes)
     base_path = create_path(self.root, self.storage, storage)
     return delete_collection(path, base_path)
예제 #4
0
 def get(self, storage, volume):
     path = create_path(self.root, self.storage, storage, self.volumes,
                        volume, 'index.json')
     return get_json_data(path)
예제 #5
0
 def delete(self, fabric):
     #Set path to object, then call delete_object:
     path = create_path(self.root, self.fabrics, fabric,
                        self.f_endpointgroups)
     base_path = create_path(self.root, self.fabrics, fabric)
     return delete_collection(path, base_path)
예제 #6
0
 def get(self, fabric, f_endpointgroup):
     path = create_path(self.root, self.fabrics, fabric,
                        self.f_endpointgroups, f_endpointgroup,
                        'index.json')
     return get_json_data(path)
예제 #7
0
 def delete(self, storage, storagecontroller):
     #Set path to object, then call delete_object:
     path = create_path(self.root, self.storage, storage, self.storagecontrollers, storagecontroller)
     base_path = create_path(self.root, self.storage, storage, self.storagecontrollers)
     return delete_object(path, base_path)
예제 #8
0
 def get(self, storage_service, storage_groups):
     path = create_path(self.root, self.storage_services, storage_service,
                        self.storage_groups, storage_groups, 'index.json')
     return get_json_data(path)
예제 #9
0
 def delete(self, chassis, memory_domain):
     #Set path to object, then call delete_object:
     path = create_path(self.root, self.chassis, chassis, self.memory_domains, memory_domain, self.md_chunks)
     base_path = create_path(self.root, self.chassis, chassis, self.memory_domains, memory_domain)
     return delete_collection(path, base_path)
예제 #10
0
 def get(self, chassis, memory_domain, md_chunks):
     path = create_path(self.root, self.chassis, chassis, self.memory_domains, memory_domain, self.md_chunks, md_chunks, 'index.json')
     return get_json_data (path)
예제 #11
0
 def get(self, fabric, f_connection):
     path = create_path(self.root, self.fabrics, fabric, self.f_connections,
                        f_connection, 'index.json')
     return get_json_data(path)
예제 #12
0
 def get(self, fabric, f_zone):
     path = create_path(self.root, self.fabrics, fabric, self.f_zones,
                        f_zone, 'index.json')
     return get_json_data(path)
예제 #13
0
 def delete(self, fabric, f_zone):
     #Set path to object, then call delete_object:
     path = create_path(self.root, self.fabrics, fabric, self.f_zones,
                        f_zone)
     base_path = create_path(self.root, self.fabrics, fabric, self.f_zones)
     return delete_object(path, base_path)
예제 #14
0
 def get(self, chassis, drive):
     path = create_path(self.root, self.chassis, chassis, self.drives, drive, 'index.json')
     return get_json_data (path)
예제 #15
0
 def get(self, storage, storagecontroller):
     path = create_path(self.root, self.storage, storage, self.storagecontrollers, storagecontroller, 'index.json')
     return get_json_data (path)
예제 #16
0
 def get(self, fabric, f_switch, fs_port):
     path = create_path(self.root, self.fabrics, fabric, self.f_switches,
                        f_switch, self.fs_ports, fs_port, 'index.json')
     return get_json_data(path)
예제 #17
0
 def get(self, storage, storagepool):
     path = create_path(self.root, self.storage, storage, self.storagepools,
                        storagepool, 'index.json')
     return get_json_data(path)