| 1674 | } |
| 1675 | |
| 1676 | Status ImportPlugin(ServerContext*, const ImportPluginRequest* request, |
| 1677 | EmptyResponse* response) override { |
| 1678 | std::lock_guard<std::recursive_mutex> lock(mutex_); |
| 1679 | |
| 1680 | WorkerPauser wp; |
| 1681 | VLOG(1) << "Loading plugin: " << request->path(); |
| 1682 | if (!bess::bessd::LoadPlugin(request->path())) { |
| 1683 | return return_with_error(response, -1, "Failed loading plugin %s", |
| 1684 | request->path().c_str()); |
| 1685 | } |
| 1686 | return Status::OK; |
| 1687 | } |
| 1688 | |
| 1689 | Status UnloadPlugin(ServerContext*, const UnloadPluginRequest* request, |
| 1690 | EmptyResponse* response) override { |
nothing calls this directly
no test coverage detected