summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiaochao Ma <maxiaochao@inspur.com>2020-06-28 06:27:13 +0300
committerXiaochao Ma <maxiaochao@inspur.com>2020-09-10 11:09:33 +0300
commit7c486a180c492d5f0080ad59ad44b0b59787ac31 (patch)
tree0422064131c6ce4f39fca7f6142afc7f5434e21e
parentac29323dda1b643a81bf85719f7d3b7b2ab97903 (diff)
downloadbmcweb-7c486a180c492d5f0080ad59ad44b0b59787ac31.tar.xz
Fix the snmp parameter in NetworkProtocol
This should be the configuration information of snmpagent. Now we have "snmp trap" functionality in openbmc,we don't have SNMP agent functionality. So the parameters belonging to the agent such as port are removed here. Signed-off-by: Xiaochao Ma <maxiaochao@inspur.com> Change-Id: I2d684b63d79ac1dc00bce0d2e0bd48e5a315f258
-rw-r--r--redfish-core/lib/network_protocol.hpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/redfish-core/lib/network_protocol.hpp b/redfish-core/lib/network_protocol.hpp
index 75e3aa8a2a..02251a896f 100644
--- a/redfish-core/lib/network_protocol.hpp
+++ b/redfish-core/lib/network_protocol.hpp
@@ -204,27 +204,6 @@ class NetworkProtocol : public Node
asyncResp->res.jsonValue["Status"]["Health"] = "OK";
asyncResp->res.jsonValue["Status"]["HealthRollup"] = "OK";
asyncResp->res.jsonValue["Status"]["State"] = "Enabled";
- asyncResp->res.jsonValue["SNMP"]["ProtocolEnabled"] = true;
- asyncResp->res.jsonValue["SNMP"]["Port"] = 161;
- asyncResp->res.jsonValue["SNMP"]["AuthenticationProtocol"] =
- "CommunityString";
- asyncResp->res.jsonValue["SNMP"]["CommunityAccessMode"] = "Full";
- asyncResp->res.jsonValue["SNMP"]["HideCommunityStrings"] = true;
- asyncResp->res
- .jsonValue["SNMP"]["EngineId"]["EnterpriseSpecificMethod"] =
- nullptr;
- asyncResp->res.jsonValue["SNMP"]["EngineId"]["PrivateEnterpriseId"] =
- nullptr;
- asyncResp->res.jsonValue["SNMP"]["EnableSNMPv1"] = false;
- asyncResp->res.jsonValue["SNMP"]["EnableSNMPv2c"] = true;
- asyncResp->res.jsonValue["SNMP"]["EnableSNMPv3"] = false;
- asyncResp->res.jsonValue["SNMP"]["EncryptionProtocol"] = "None";
- nlohmann::json& memberArray =
- asyncResp->res.jsonValue["SNMP"]["CommunityStrings"];
- memberArray = nlohmann::json::array();
- memberArray.push_back({{"AccessMode", "Full"}});
- memberArray.push_back({{"CommunityString", ""}});
- memberArray.push_back({{"Name", ""}});
// HTTP is Mandatory attribute as per OCP Baseline Profile - v1.0.0,
// but from security perspective it is not recommended to use.