diff options
author | Gunnar Mills <gmills@us.ibm.com> | 2024-04-10 21:14:41 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2024-04-11 01:08:57 +0300 |
commit | 665e7602d5580dfe69a9686f35ef40f8f64673df (patch) | |
tree | d209c983a4ff36e83a3b0ecad50be56ffc3a653c /redfish-core/include/registries/network_device_message_registry.hpp | |
parent | 7b9e256961fe529ce874cae572c17baa4fa0bbc3 (diff) | |
download | bmcweb-665e7602d5580dfe69a9686f35ef40f8f64673df.tar.xz |
Pull in all registries
Before Redfish put all messages in Base, but as the Messages became more
specific Redfish started creating new registries. Redfish might have
went a little registry happy. HeartbeatEvent just has 1 message and all
these new ones registries each just have a handful of messages.
Add the remaining 15 registries:
composition, environmental, ethernetfabric, fabric, heartbeat_event,
job_event, license, logservice, networkdevice, platform, power,
sensor_event, storage_device, telemetry, update.
Some of these are wanted for both current development and future
development but it is hard to decide which ones so just added them all.
power, fabric, telemetry, update are all things we support today. Having
a UpdateInProgress or UpdateSuccessful makes a lot of sense and this
enables that.
Put these alphabetically. Use a new for loop to do this.
Make changes to scripts/parse_registries.py and run the tool.
No difference in size.
Before: 66928640 Apr 10 13:32
obmc-phosphor-image-p10bmc-20240410183051.ext4.mmc.tar
After: 66928640 Apr 10 13:18
obmc-phosphor-image-p10bmc-20240410181439.ext4.mmc.tar
Tested: bmcweb builds.
"./scripts/parse_registries.py --registries license,update" works.
Change-Id: I43b4d041531cf338e9e7e621714ca7d95f6b01a5
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
Diffstat (limited to 'redfish-core/include/registries/network_device_message_registry.hpp')
-rw-r--r-- | redfish-core/include/registries/network_device_message_registry.hpp | 132 |
1 files changed, 132 insertions, 0 deletions
diff --git a/redfish-core/include/registries/network_device_message_registry.hpp b/redfish-core/include/registries/network_device_message_registry.hpp new file mode 100644 index 0000000000..c7c54ea812 --- /dev/null +++ b/redfish-core/include/registries/network_device_message_registry.hpp @@ -0,0 +1,132 @@ +#pragma once +/**************************************************************** + * READ THIS WARNING FIRST + * This is an auto-generated header which contains definitions + * for Redfish DMTF defined messages. + * DO NOT modify this registry outside of running the + * parse_registries.py script. The definitions contained within + * this file are owned by DMTF. Any modifications to these files + * should be first pushed to the relevant registry in the DMTF + * github organization. + ***************************************************************/ +#include "registries.hpp" + +#include <array> + +// clang-format off + +namespace redfish::registries::network_device +{ +const Header header = { + "Copyright 2019-2023 DMTF. All rights reserved.", + "#MessageRegistry.v1_6_2.MessageRegistry", + "NetworkDevice.1.0.3", + "Network Device Message Registry", + "en", + "This registry defines the messages for networking devices.", + "NetworkDevice", + "1.0.3", + "DMTF", +}; +constexpr const char* url = + "https://redfish.dmtf.org/registries/NetworkDevice.1.0.3.json"; + +constexpr std::array registry = +{ + MessageEntry{ + "CableInserted", + { + "Indicates that a network cable was inserted.", + "A network cable was inserted into network adapter '%1' port '%2'.", + "OK", + 2, + { + "string", + "string", + }, + "None.", + }}, + MessageEntry{ + "CableRemoved", + { + "Indicates that a network cable was removed.", + "A cable was removed from network adapter '%1' port '%2'.", + "OK", + 2, + { + "string", + "string", + }, + "None.", + }}, + MessageEntry{ + "ConnectionDropped", + { + "Indicates that a network connection was dropped.", + "The connection is no longer active for network adapter '%1' port '%2' function '%3'.", + "OK", + 3, + { + "string", + "string", + "string", + }, + "None.", + }}, + MessageEntry{ + "ConnectionEstablished", + { + "Indicates that a network connection was established.", + "A network connection was established for network adapter '%1' port '%2' function '%3'.", + "OK", + 3, + { + "string", + "string", + "string", + }, + "None.", + }}, + MessageEntry{ + "DegradedConnectionEstablished", + { + "Indicates that a network connection was established, but at an unexpectedly low link speed.", + "A degraded network connection was established for network adapter '%1' port '%2' function '%3'.", + "Warning", + 3, + { + "string", + "string", + "string", + }, + "None.", + }}, + MessageEntry{ + "LinkFlapDetected", + { + "Indicates that a network connection is highly unstable.", + "The network connection for network adapter '%1' port '%2' function '%3' was established and dropped '%4' times in the last '%5' minutes.", + "Warning", + 5, + { + "string", + "string", + "string", + "number", + "number", + }, + "Contact the network administrator for problem resolution.", + }}, + +}; + +enum class Index +{ + cableInserted = 0, + cableRemoved = 1, + connectionDropped = 2, + connectionEstablished = 3, + degradedConnectionEstablished = 4, + linkFlapDetected = 5, +}; +} // namespace redfish::registries::network_device |