blob: 14d24b22e4a5167384ab83db7da36021ab278716 [file] [log] [blame]
#pragma once
#include <cstdint>
#include <nlohmann/json.hpp>
namespace connection_method
{
// clang-format off
enum class ConnectionMethodType : std::uint8_t{
Invalid,
Redfish,
SNMP,
IPMI15,
IPMI20,
NETCONF,
OEM,
};
enum class TunnelingProtocolType : std::uint8_t{
Invalid,
SSH,
OEM,
};
NLOHMANN_JSON_SERIALIZE_ENUM(ConnectionMethodType, {
{ConnectionMethodType::Invalid, "Invalid"},
{ConnectionMethodType::Redfish, "Redfish"},
{ConnectionMethodType::SNMP, "SNMP"},
{ConnectionMethodType::IPMI15, "IPMI15"},
{ConnectionMethodType::IPMI20, "IPMI20"},
{ConnectionMethodType::NETCONF, "NETCONF"},
{ConnectionMethodType::OEM, "OEM"},
});
NLOHMANN_JSON_SERIALIZE_ENUM(TunnelingProtocolType, {
{TunnelingProtocolType::Invalid, "Invalid"},
{TunnelingProtocolType::SSH, "SSH"},
{TunnelingProtocolType::OEM, "OEM"},
});
} // namespace connection_method
// clang-format on