Update Google v1

Adding setUpRedfishRoute for all handlers because this method is required
to return a gRPC response. In setUpRedfishRoute, the Odata version header
is set and this is required for gRPC to return a response

Tested:

ytbjs2-n1:~# /data/milotic_tool_cli --resource_url='/google/v1/' --uid=  \
 --host host-control-node.localproductionnode.goog --port 443 \
 --auth tls_not_verify_server --command get \
 --cert_chain /root/.zatar/cert.pem  --private_key /root/.zatar/key.pem
URL is /google/v1/
Response JSON is /google/v1/{
  "@odata.id": "/google/v1",
  "@odata.type": "#GoogleServiceRoot.v1_0_0.GoogleServiceRoot",
  "Id": "Google Rest RootService",
  "Name": "Google Service Root",
  "RootOfTrustCollection": {
    "@odata.id": "/google/v1/RootOfTrustCollection"
  },
  "Version": "1.0.0"
}

Google-Bug-Id: 272117695
Change-Id: I9349f53de881de74589c5084490a9721e59b95b4
Signed-off-by: Edward Lee <edwarddl@google.com>
(cherry picked from commit 148f3ff8fa6714f164fadb45a8c0330b483bc63f)
2 files changed
tree: 49bac43c81c08c1a0340f5ce64566e378a3e2feb
  1. conf/
  2. dynamic-layers/
  3. meta-nuvoton-npcm8xx/
  4. recipes-connectivity/
  5. recipes-core/
  6. recipes-devtools/
  7. recipes-extended/
  8. recipes-google/
  9. recipes-kernel/
  10. recipes-phosphor/
  11. LICENSE
  12. README.md
README.md

meta-gbmc-staging

This repository contains additions to the openbmc/meta-google layer that are not yet ready for OpenBMC inclusion.

How to use this layer

  1. Clone openbmc/openbmc from GitHub.
  2. Clone this layer from GitHub into a subdirectory of openbmc.