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::ethernet_fabric
19 {
20 const Header header = {
21     "Copyright 2020-2023 DMTF. All rights reserved.",
22     "#MessageRegistry.v1_6_2.MessageRegistry",
23     "EthernetFabric.1.0.1",
24     "Ethernet Fabric Message Registry",
25     "en",
26     "This registry defines messages for Ethernet fabrics.",
27     "EthernetFabric",
28     "1.0.1",
29     "DMTF",
30 };
31 constexpr const char* url =
32     "https://redfish.dmtf.org/registries/EthernetFabric.1.0.1.json";
33 
34 constexpr std::array registry =
35 {
36     MessageEntry{
37         "LLDPInterfaceDisabled",
38         {
39             "Indicates that an interface has disabled Link Layer Discovery Protocol (LLDP).",
40             "LLDP was disabled on switch '%1' port '%2'.",
41             "Warning",
42             2,
43             {
44                 "string",
45                 "string",
46             },
47             "Check that LLDP is enabled on device endpoints.",
48         }},
49     MessageEntry{
50         "LLDPInterfaceEnabled",
51         {
52             "Indicates that an interface has enabled Link Layer Discovery Protocol (LLDP).",
53             "LLDP was enabled on switch '%1' port '%2'.",
54             "OK",
55             2,
56             {
57                 "string",
58                 "string",
59             },
60             "None.",
61         }},
62     MessageEntry{
63         "MLAGInterfaceDegraded",
64         {
65             "Indicates that multi-chassis link aggregation group (MLAG) interfaces were established, but at an unexpectedly low aggregated link speed.",
66             "MLAG interface '%1' is degraded on switch '%2'.",
67             "Warning",
68             2,
69             {
70                 "string",
71                 "string",
72             },
73             "Contact the network administrator for problem resolution.",
74         }},
75     MessageEntry{
76         "MLAGInterfaceDown",
77         {
78             "Indicates that the multi-chassis link aggregation group (MLAG) interface is down on a switch.",
79             "The MLAG interface '%1' on switch '%2' is down.",
80             "Warning",
81             2,
82             {
83                 "string",
84                 "string",
85             },
86             "Check physical connectivity and that the MLAG system ID matches on switch pairs.",
87         }},
88     MessageEntry{
89         "MLAGInterfacesUp",
90         {
91             "Indicates that all multi-chassis link aggregation group (MLAG) interfaces are up.",
92             "All MLAG interfaces were established for MLAG ID '%1'.",
93             "OK",
94             1,
95             {
96                 "string",
97             },
98             "None.",
99         }},
100     MessageEntry{
101         "MLAGPeerDown",
102         {
103             "Indicates that the multi-chassis link aggregation group (MLAG) peer is down.",
104             "MLAG peer switch '%1' with MLAG ID '%2' is down.",
105             "Warning",
106             2,
107             {
108                 "string",
109                 "string",
110             },
111             "Check physical connectivity and that the port channel ID matches on switch pairs.",
112         }},
113     MessageEntry{
114         "MLAGPeerUp",
115         {
116             "Indicates that the multi-chassis link aggregation group (MLAG) peer is up.",
117             "MLAG peer switch '%1' with MLAG ID '%2' is up.",
118             "OK",
119             2,
120             {
121                 "string",
122                 "string",
123             },
124             "None.",
125         }},
126     MessageEntry{
127         "RoutingFailureThresholdExceeded",
128         {
129             "Indicates that a switch has encountered an unusually large number of routing errors.",
130             "Switch '%1' has encountered %2 routing errors in the last %3 minutes.",
131             "Warning",
132             3,
133             {
134                 "string",
135                 "number",
136                 "number",
137             },
138             "Contact the network administrator for problem resolution.",
139         }},
140 
141 };
142 
143 enum class Index
144 {
145     lLDPInterfaceDisabled = 0,
146     lLDPInterfaceEnabled = 1,
147     mLAGInterfaceDegraded = 2,
148     mLAGInterfaceDown = 3,
149     mLAGInterfacesUp = 4,
150     mLAGPeerDown = 5,
151     mLAGPeerUp = 6,
152     routingFailureThresholdExceeded = 7,
153 };
154 } // namespace redfish::registries::ethernet_fabric
155