diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/webserver_main.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/webserver_main.cpp b/src/webserver_main.cpp index 78b4a41..a2da120 100644 --- a/src/webserver_main.cpp +++ b/src/webserver_main.cpp @@ -23,6 +23,10 @@ #include <webassets.hpp> #include <webserver_common.hpp> +#ifdef BMCWEB_ENABLE_VM_NBDPROXY +#include <nbd_proxy.hpp> +#endif + constexpr int defaultPort = 18080; template <typename... Middlewares> @@ -97,6 +101,11 @@ int main(int argc, char** argv) crow::connections::systemBus = std::make_shared<sdbusplus::asio::connection>(*io); + +#ifdef BMCWEB_ENABLE_VM_NBDPROXY + crow::nbd_proxy::requestRoutes(app); +#endif + redfish::RedfishService redfish(app); // Keep the user role map hot in memory and |