drop explicit command entry
The command entry for ethStatsCmd was accepted into
phosphor-host-ipmid's oem header. Therefore, no longer specify it
locally.
Change-Id: I5b8a1e1dd47801bda96993c3fc215ca4553eb9ce
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/main.cpp b/main.cpp
index 4f3020c..3c17b37 100644
--- a/main.cpp
+++ b/main.cpp
@@ -25,17 +25,12 @@
#include <experimental/filesystem>
#include <fstream>
#include <host-ipmid/iana.hpp>
+#include <host-ipmid/oemopenbmc.hpp>
#include <host-ipmid/oemrouter.hpp>
#include <map>
#include <sstream>
#include <string>
-/* TODO: Swap out once https://gerrit.openbmc-project.xyz/12958 is merged */
-namespace oem
-{
-constexpr auto ethStatsCmd = 48;
-} // namespace oem
-
namespace ethstats
{
namespace fs = std::experimental::filesystem;
@@ -187,17 +182,17 @@
/* Install in Google OEM Namespace when enabled. */
std::fprintf(stderr,
"Registering OEM:[%#08X], Cmd:[%#04X] for Ethstats Commands\n",
- oem::googOemNumber, oem::ethStatsCmd);
+ oem::googOemNumber, oem::Cmd::ethStatsCmd);
- oemRouter->registerHandler(oem::googOemNumber, oem::ethStatsCmd,
+ oemRouter->registerHandler(oem::googOemNumber, oem::Cmd::ethStatsCmd,
HandleEthStatCommand);
#endif
std::fprintf(stderr,
"Registering OEM:[%#08X], Cmd:[%#04X] for Ethstats Commands\n",
- oem::obmcOemNumber, oem::ethStatsCmd);
+ oem::obmcOemNumber, oem::Cmd::ethStatsCmd);
- oemRouter->registerHandler(oem::obmcOemNumber, oem::ethStatsCmd,
+ oemRouter->registerHandler(oem::obmcOemNumber, oem::Cmd::ethStatsCmd,
HandleEthStatCommand);
}