1 #pragma once 2 /**************************************************************** 3 * READ THIS WARNING FIRST 4 * This is an auto-generated header which contains definitions 5 * for Redfish DMTF defined messages. 6 * DO NOT modify this registry outside of running the 7 * parse_registries.py script. The definitions contained within 8 * this file are owned by DMTF. Any modifications to these files 9 * should be first pushed to the relevant registry in the DMTF 10 * github organization. 11 ***************************************************************/ 12 #include "registries.hpp" 13 14 #include <array> 15 16 // clang-format off 17 18 namespace redfish::registries::network_device 19 { 20 const Header header = { 21 "Copyright 2019-2023 DMTF. All rights reserved.", 22 "#MessageRegistry.v1_6_2.MessageRegistry", 23 "NetworkDevice.1.0.3", 24 "Network Device Message Registry", 25 "en", 26 "This registry defines the messages for networking devices.", 27 "NetworkDevice", 28 "1.0.3", 29 "DMTF", 30 }; 31 constexpr const char* url = 32 "https://redfish.dmtf.org/registries/NetworkDevice.1.0.3.json"; 33 34 constexpr std::array registry = 35 { 36 MessageEntry{ 37 "CableInserted", 38 { 39 "Indicates that a network cable was inserted.", 40 "A network cable was inserted into network adapter '%1' port '%2'.", 41 "OK", 42 2, 43 { 44 "string", 45 "string", 46 }, 47 "None.", 48 }}, 49 MessageEntry{ 50 "CableRemoved", 51 { 52 "Indicates that a network cable was removed.", 53 "A cable was removed from network adapter '%1' port '%2'.", 54 "OK", 55 2, 56 { 57 "string", 58 "string", 59 }, 60 "None.", 61 }}, 62 MessageEntry{ 63 "ConnectionDropped", 64 { 65 "Indicates that a network connection was dropped.", 66 "The connection is no longer active for network adapter '%1' port '%2' function '%3'.", 67 "OK", 68 3, 69 { 70 "string", 71 "string", 72 "string", 73 }, 74 "None.", 75 }}, 76 MessageEntry{ 77 "ConnectionEstablished", 78 { 79 "Indicates that a network connection was established.", 80 "A network connection was established for network adapter '%1' port '%2' function '%3'.", 81 "OK", 82 3, 83 { 84 "string", 85 "string", 86 "string", 87 }, 88 "None.", 89 }}, 90 MessageEntry{ 91 "DegradedConnectionEstablished", 92 { 93 "Indicates that a network connection was established, but at an unexpectedly low link speed.", 94 "A degraded network connection was established for network adapter '%1' port '%2' function '%3'.", 95 "Warning", 96 3, 97 { 98 "string", 99 "string", 100 "string", 101 }, 102 "None.", 103 }}, 104 MessageEntry{ 105 "LinkFlapDetected", 106 { 107 "Indicates that a network connection is highly unstable.", 108 "The network connection for network adapter '%1' port '%2' function '%3' was established and dropped '%4' times in the last '%5' minutes.", 109 "Warning", 110 5, 111 { 112 "string", 113 "string", 114 "string", 115 "number", 116 "number", 117 }, 118 "Contact the network administrator for problem resolution.", 119 }}, 120 121 }; 122 123 enum class Index 124 { 125 cableInserted = 0, 126 cableRemoved = 1, 127 connectionDropped = 2, 128 connectionEstablished = 3, 129 degradedConnectionEstablished = 4, 130 linkFlapDetected = 5, 131 }; 132 } // namespace redfish::registries::network_device 133