diff options
author | Ed Tanous <ed@tanous.net> | 2020-07-18 23:51:21 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2020-08-17 23:54:37 +0300 |
commit | 52cc112d962920b035c870127784bcbd98948fad (patch) | |
tree | cef270a89373ad55b15578d9a52c5956aa5d3f7e /redfish-core/lib/ethernet.hpp | |
parent | d6c414f36c66b03f272f0cfc3a2e2d5dc0df1271 (diff) | |
download | bmcweb-52cc112d962920b035c870127784bcbd98948fad.tar.xz |
Remove middlewares
Middlewares, while kinda cool from an academic standpoint, make our
build times even worse than they already are. Given that we only really
use 1 real middleware today (token auth) and it needs to move into the
parser mode anyway (for security limiting buffer sizes), we might as well
use this as an opportunity to delete some code.
Some other things that happen:
1. Persistent data now moves out of the crow namespace
2. App is no longer a template
3. All request_routes implementations no longer become templates. This
should be a decent (unmeasured) win on compile times.
This commit was part of a commit previously called "various cleanups".
This separates ONLY the middleware deletion part of that.
Note, this also deletes about 400 lines of hard to understand code.
Change-Id: I4c19e25491a153a2aa2e4ef46fc797bcb5b3581a
Signed-off-by: Ed Tanous <ed@tanous.net>
Diffstat (limited to 'redfish-core/lib/ethernet.hpp')
-rw-r--r-- | redfish-core/lib/ethernet.hpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/redfish-core/lib/ethernet.hpp b/redfish-core/lib/ethernet.hpp index 21443f416a..a47d4b1052 100644 --- a/redfish-core/lib/ethernet.hpp +++ b/redfish-core/lib/ethernet.hpp @@ -1003,8 +1003,7 @@ void getEthernetIfaceList(CallbackFunc&& callback) class EthernetCollection : public Node { public: - template <typename CrowApp> - EthernetCollection(CrowApp& app) : + EthernetCollection(App& app) : Node(app, "/redfish/v1/Managers/bmc/EthernetInterfaces/") { entityPrivileges = { @@ -1076,8 +1075,7 @@ class EthernetInterface : public Node /* * Default Constructor */ - template <typename CrowApp> - EthernetInterface(CrowApp& app) : + EthernetInterface(App& app) : Node(app, "/redfish/v1/Managers/bmc/EthernetInterfaces/<str>/", std::string()) { @@ -2066,8 +2064,7 @@ class VlanNetworkInterface : public Node /* * Default Constructor */ - template <typename CrowApp> - VlanNetworkInterface(CrowApp& app) : + VlanNetworkInterface(App& app) : Node(app, "/redfish/v1/Managers/bmc/EthernetInterfaces/<str>/VLANs/<str>/", std::string(), std::string()) @@ -2309,8 +2306,7 @@ class VlanNetworkInterface : public Node class VlanNetworkInterfaceCollection : public Node { public: - template <typename CrowApp> - VlanNetworkInterfaceCollection(CrowApp& app) : + VlanNetworkInterfaceCollection(App& app) : Node(app, "/redfish/v1/Managers/bmc/EthernetInterfaces/<str>/VLANs/", std::string()) { |