diff options
| author | Ed Tanous <ed.tanous@intel.com> | 2018-05-01 12:58:27 -0700 |
|---|---|---|
| committer | Ed Tanous <ed.tanous@intel.com> | 2018-06-29 18:49:17 +0000 |
| commit | c3ee522f9a2950d9ce21bd0c8962624476ffe343 (patch) | |
| tree | 451624bcb7f03646a7191890408c109ae5744be3 /src | |
| parent | 729dae72826e58134ca4e49587427703ad0286db (diff) | |
| download | bmcweb-c3ee522f9a2950d9ce21bd0c8962624476ffe343.tar.gz bmcweb-c3ee522f9a2950d9ce21bd0c8962624476ffe343.zip | |
Make bmcweb image upload compatible with upstream.
This change moves the image upload logic out of the intel oem
namespace, and makes it 1:1 compatible with phosphor rest dbus. This
is to allow a seamless transition in the future.
Change-Id: I243237357a672934c05bf072e7ff1a5955af0f5e
Diffstat (limited to 'src')
| -rw-r--r-- | src/webserver_main.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/webserver_main.cpp b/src/webserver_main.cpp index eaaca94..93b3aa6 100644 --- a/src/webserver_main.cpp +++ b/src/webserver_main.cpp @@ -1,7 +1,7 @@ #include <systemd/sd-daemon.h> #include <dbus_monitor.hpp> #include <dbus_singleton.hpp> -#include <intel_oem.hpp> +#include <image_upload.hpp> #include <openbmc_dbus_rest.hpp> #include <persistent_data_middleware.hpp> #include <redfish_v1.hpp> @@ -43,7 +43,7 @@ void setup_socket(crow::Crow<Middlewares...>& app) { } int main(int argc, char** argv) { - crow::logger::setLogLevel(crow::LogLevel::DEBUG); + crow::logger::setLogLevel(crow::LogLevel::DEBUG); auto io = std::make_shared<boost::asio::io_service>(); crow::PersistentData::session_store = @@ -67,7 +67,7 @@ int main(int argc, char** argv) { crow::kvm::request_routes(app); crow::redfish::request_routes(app); crow::dbus_monitor::request_routes(app); - crow::intel_oem::request_routes(app); + crow::image_upload::requestRoutes(app); crow::openbmc_mapper::request_routes(app); CROW_LOG_INFO << "bmcweb (" << __DATE__ << ": " << __TIME__ << ')'; @@ -80,4 +80,5 @@ int main(int argc, char** argv) { app.run(); io->run(); + crow::connections::system_bus.reset(); } |

