| commit | ec4974dd6a419b7f5556d4dcf4b8b836b5efbbd9 | [log] [tgz] | 
|---|---|---|
| author | AppaRao Puli <apparao.puli@linux.intel.com> | Tue Nov 05 17:06:20 2019 +0530 | 
| committer | AppaRao Puli <apparao.puli@linux.intel.com> | Thu Nov 07 19:05:03 2019 +0000 | 
| tree | f5661f2b49459c52e46d2b049af673dedf4b7ee8 | |
| parent | 0c838cf6c0765ee793d3942faf35562806df946b [diff] | 
Update NetworkProtocol services
Updated the NetworkProtocol GET method code
to lookup the service names and socket paths
directly fetched from System control ListenSockets.
Tested:
 - Performed GET on NetworkProtocol URI and validated
   all responses.
 - Stopped services(ssh) and validated Enabled status.
 - Successfully ran Redfish validator without any issues.
URI: /redfish/v1/Managers/bmc/NetworkProtocol
Response:
............
  "IPMI": {
    "Port": 623,
    "ProtocolEnabled": true
  },
  "HTTPS": {
  .....
    "Port": 443,
    "ProtocolEnabled": true
  },
  "SSH": {
    "Port": 22,
    "ProtocolEnabled": true
  },
..........
Change-Id: I047910d3e6430a2779b3803a0f1e836104e2bda3
Signed-off-by: AppaRao Puli <apparao.puli@linux.intel.com>
This component attempts to be a "do everything" embedded webserver for openbmc.
At this time, the webserver implements a few interfaces:
BMCWeb is configured by setting -D flags that correspond to options in bmcweb/CMakeLists.txt and then compiling.  For example, cmake -DBMCWEB_ENABLE_KVM=NO ... followed by make.  The option names become C++ preprocessor symbols that control which code is compiled into the program.
When BMCWeb starts running, it reads persistent configuration data (such as UUID and session data) from a local file. If this is not usable, it generates a new configuration.
When BMCWeb SSL support is enabled and a usable certificate is not found, it will generate a self-sign a certificate before launching the server.  The keys are generated by the prime256v1 algorithm.  The certificate
C=US, O=OpenBMC, CN=testhost,SHA-256 algorithm.