[Redfish-Net Protocol] Making HTTP OCP Compliant

Making HTTP protocolEnabled as false in Manager Network Protocol Schema
to make it OCP compliant and security-wise compliant as it is not
recommended to use from security perspective.

Tested:
1. Tested using GET:
- https://bmc-ip/redfish/v1/Managers/bmc/NetworkProtocol
  "HTTP": {
    "Port": 0,
    "ProtocolEnabled": false
  }

2. Ran the Redfish validator and no new issues found.

Signed-off-by: Joshi-Mansi <mansi.joshi@linux.intel.com>
Change-Id: I5af368f4c87665ab827d99336aebf64bc351c4d1
diff --git a/redfish-core/lib/network_protocol.hpp b/redfish-core/lib/network_protocol.hpp
index 340fd67..03f7bf8 100644
--- a/redfish-core/lib/network_protocol.hpp
+++ b/redfish-core/lib/network_protocol.hpp
@@ -200,6 +200,13 @@
         asyncResp->res.jsonValue["Status"]["HealthRollup"] = "OK";
         asyncResp->res.jsonValue["Status"]["State"] = "Enabled";
 
+        // HTTP is Mandatory attribute as per OCP Baseline Profile – v1.0.0,
+        // but from security perspective it is not recommended to use.
+        // Hence using protocolEnabled as false to make it OCP and security-wise
+        // compliant
+        asyncResp->res.jsonValue["HTTP"]["Port"] = 0;
+        asyncResp->res.jsonValue["HTTP"]["ProtocolEnabled"] = false;
+
         for (auto& protocol : protocolToDBus)
         {
             asyncResp->res.jsonValue[protocol.first]["ProtocolEnabled"] = false;