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::fabric
19 {
20 const Header header = {
21     "Copyright 2014-2023 DMTF. All rights reserved.",
22     "#MessageRegistry.v1_6_2.MessageRegistry",
23     1,
24     0,
25     2,
26     "Fabric Message Registry",
27     "en",
28     "This registry defines messages for generic fabrics.",
29     "Fabric",
30     "DMTF",
31 };
32 constexpr const char* url =
33     "https://redfish.dmtf.org/registries/Fabric.1.0.2.json";
34 
35 constexpr std::array registry =
36 {
37     MessageEntry{
38         "AddressPoolCreated",
39         {
40             "Indicates that an address pool was created.",
41             "Address pool '%1' was created in fabric '%2'.",
42             "OK",
43             2,
44             {
45                 "string",
46                 "string",
47             },
48             "None.",
49         }},
50     MessageEntry{
51         "AddressPoolModified",
52         {
53             "Indicates that an address pool was modified.",
54             "Address pool '%1' in fabric '%2' was modified.",
55             "OK",
56             2,
57             {
58                 "string",
59                 "string",
60             },
61             "None.",
62         }},
63     MessageEntry{
64         "AddressPoolRemoved",
65         {
66             "Indicates that an address pool was removed.",
67             "Address pool '%1' was removed from fabric '%2'.",
68             "OK",
69             2,
70             {
71                 "string",
72                 "string",
73             },
74             "None.",
75         }},
76     MessageEntry{
77         "CableFailed",
78         {
79             "Indicates that a cable has failed.",
80             "The cable in switch '%1' port '%2' has failed.",
81             "Warning",
82             2,
83             {
84                 "string",
85                 "string",
86             },
87             "Contact the network administrator for problem resolution.",
88         }},
89     MessageEntry{
90         "CableInserted",
91         {
92             "Indicates that a cable was inserted into a switch's port.",
93             "A cable was inserted into switch '%1' port '%2'.",
94             "OK",
95             2,
96             {
97                 "string",
98                 "string",
99             },
100             "None.",
101         }},
102     MessageEntry{
103         "CableOK",
104         {
105             "Indicates that a cable has returned to working condition.",
106             "The cable in switch '%1' port '%2' has returned to working condition.",
107             "OK",
108             2,
109             {
110                 "string",
111                 "string",
112             },
113             "None.",
114         }},
115     MessageEntry{
116         "CableRemoved",
117         {
118             "Indicates that a cable was removed from a switch's port.",
119             "A cable was removed from switch '%1' port '%2'.",
120             "Warning",
121             2,
122             {
123                 "string",
124                 "string",
125             },
126             "None.",
127         }},
128     MessageEntry{
129         "ConnectionCreated",
130         {
131             "Indicates that a connection was created.",
132             "Connection '%1' was created in fabric '%2'.",
133             "OK",
134             2,
135             {
136                 "string",
137                 "string",
138             },
139             "None.",
140         }},
141     MessageEntry{
142         "ConnectionModified",
143         {
144             "Indicates that a connection was modified.",
145             "Connection '%1' in fabric '%2' was modified.",
146             "OK",
147             2,
148             {
149                 "string",
150                 "string",
151             },
152             "None.",
153         }},
154     MessageEntry{
155         "ConnectionRemoved",
156         {
157             "Indicates that a connection was removed.",
158             "Connection '%1' was removed from fabric '%2'.",
159             "OK",
160             2,
161             {
162                 "string",
163                 "string",
164             },
165             "None.",
166         }},
167     MessageEntry{
168         "DegradedDownstreamLinkEstablished",
169         {
170             "Indicates that a switch's downstream connection is established but is in a degraded state.",
171             "Switch '%1' downstream link is established on port '%2', but is running in a degraded state.",
172             "Warning",
173             2,
174             {
175                 "string",
176                 "string",
177             },
178             "Contact the network administrator for problem resolution.",
179         }},
180     MessageEntry{
181         "DegradedInterswitchLinkEstablished",
182         {
183             "Indicates that a switch's interswitch connection is established but is in a degraded state.",
184             "Switch '%1' interswitch link is established on port '%2', but is running in a degraded state.",
185             "Warning",
186             2,
187             {
188                 "string",
189                 "string",
190             },
191             "Contact the network administrator for problem resolution.",
192         }},
193     MessageEntry{
194         "DegradedUpstreamLinkEstablished",
195         {
196             "Indicates that a switch's upstream connection is established but is in a degraded state.",
197             "Switch '%1' upstream link is established on port '%2', but is running in a degraded state.",
198             "Warning",
199             2,
200             {
201                 "string",
202                 "string",
203             },
204             "Contact the network administrator for problem resolution.",
205         }},
206     MessageEntry{
207         "DownstreamLinkDropped",
208         {
209             "Indicates that a switch's downstream connection has gone down.",
210             "Switch '%1' downstream link has gone down on port '%2'.",
211             "Warning",
212             2,
213             {
214                 "string",
215                 "string",
216             },
217             "Contact the network administrator for problem resolution.",
218         }},
219     MessageEntry{
220         "DownstreamLinkEstablished",
221         {
222             "Indicates that a switch's downstream connection is established.",
223             "Switch '%1' downstream link is established on port '%2'.",
224             "OK",
225             2,
226             {
227                 "string",
228                 "string",
229             },
230             "None.",
231         }},
232     MessageEntry{
233         "DownstreamLinkFlapDetected",
234         {
235             "Indicates that a switch's downstream connection is highly unstable.",
236             "Switch '%1' downstream link on port '%2' was established and dropped %3 times in the last %4 minutes.",
237             "Warning",
238             4,
239             {
240                 "string",
241                 "string",
242                 "number",
243                 "number",
244             },
245             "Contact the network administrator for problem resolution.",
246         }},
247     MessageEntry{
248         "EndpointCreated",
249         {
250             "Indicates that an endpoint was created or discovered.",
251             "Endpoint '%1' was created in fabric '%2'.",
252             "OK",
253             2,
254             {
255                 "string",
256                 "string",
257             },
258             "None.",
259         }},
260     MessageEntry{
261         "EndpointModified",
262         {
263             "Indicates that an endpoint was modified.",
264             "Endpoint '%1' in fabric '%2' was modified.",
265             "OK",
266             2,
267             {
268                 "string",
269                 "string",
270             },
271             "None.",
272         }},
273     MessageEntry{
274         "EndpointRemoved",
275         {
276             "Indicates that an endpoint was removed.",
277             "Endpoint '%1' was removed from fabric '%2'.",
278             "OK",
279             2,
280             {
281                 "string",
282                 "string",
283             },
284             "None.",
285         }},
286     MessageEntry{
287         "InterswitchLinkDropped",
288         {
289             "Indicates that a switch's interswitch connection has gone down.",
290             "Switch '%1' interswitch link has gone down on port '%2'.",
291             "Warning",
292             2,
293             {
294                 "string",
295                 "string",
296             },
297             "Contact the network administrator for problem resolution.",
298         }},
299     MessageEntry{
300         "InterswitchLinkEstablished",
301         {
302             "Indicates that a switch's interswitch connection is established.",
303             "Switch '%1' interswitch link is established on port '%2'.",
304             "OK",
305             2,
306             {
307                 "string",
308                 "string",
309             },
310             "None.",
311         }},
312     MessageEntry{
313         "InterswitchLinkFlapDetected",
314         {
315             "Indicates that a switch's interswitch connection is highly unstable.",
316             "Switch '%1' interswitch link on port '%2' was established and dropped %3 times in the last %4 minutes.",
317             "Warning",
318             4,
319             {
320                 "string",
321                 "string",
322                 "number",
323                 "number",
324             },
325             "Contact the network administrator for problem resolution.",
326         }},
327     MessageEntry{
328         "MaxFrameSizeExceeded",
329         {
330             "Indicates that the maximum transmission unit (MTU) for the link was exceeded.",
331             "MTU size on switch '%1' port '%2' is set to %3.  One or more packets with a larger size were dropped.",
332             "Warning",
333             3,
334             {
335                 "string",
336                 "string",
337                 "number",
338             },
339             "Ensure that path MTU discovery is enabled and functioning correctly.",
340         }},
341     MessageEntry{
342         "MediaControllerAdded",
343         {
344             "Indicates that a media controller was added.",
345             "Media controller '%1' was added to chassis '%2'.",
346             "OK",
347             2,
348             {
349                 "string",
350                 "string",
351             },
352             "None.",
353         }},
354     MessageEntry{
355         "MediaControllerModified",
356         {
357             "Indicates that a media controller was modified.",
358             "Media controller '%1' in chassis '%2' was modified.",
359             "OK",
360             2,
361             {
362                 "string",
363                 "string",
364             },
365             "None.",
366         }},
367     MessageEntry{
368         "MediaControllerRemoved",
369         {
370             "Indicates that a media controller was removed.",
371             "Media controller '%1' was removed from chassis '%2'.",
372             "OK",
373             2,
374             {
375                 "string",
376                 "string",
377             },
378             "None.",
379         }},
380     MessageEntry{
381         "PortAutomaticallyDisabled",
382         {
383             "Indicates that a switch's port was automatically disabled.",
384             "Switch '%1' port '%2' was automatically disabled.",
385             "OK",
386             2,
387             {
388                 "string",
389                 "string",
390             },
391             "None.",
392         }},
393     MessageEntry{
394         "PortAutomaticallyEnabled",
395         {
396             "Indicates that a switch's port was automatically enabled.",
397             "Switch '%1' port '%2' was automatically enabled.",
398             "OK",
399             2,
400             {
401                 "string",
402                 "string",
403             },
404             "None.",
405         }},
406     MessageEntry{
407         "PortDegraded",
408         {
409             "Indicates that a switch's port is in a degraded state.",
410             "Switch '%1' port '%2' is in a degraded state.",
411             "Warning",
412             2,
413             {
414                 "string",
415                 "string",
416             },
417             "Contact the network administrator for problem resolution.",
418         }},
419     MessageEntry{
420         "PortFailed",
421         {
422             "Indicates that a switch's port has become inoperative.",
423             "Switch '%1' port '%2' has failed and is inoperative.",
424             "Critical",
425             2,
426             {
427                 "string",
428                 "string",
429             },
430             "Contact the network administrator for problem resolution.",
431         }},
432     MessageEntry{
433         "PortManuallyDisabled",
434         {
435             "Indicates that a switch's port was manually disabled.",
436             "Switch '%1' port '%2' was manually disabled.",
437             "OK",
438             2,
439             {
440                 "string",
441                 "string",
442             },
443             "None.",
444         }},
445     MessageEntry{
446         "PortManuallyEnabled",
447         {
448             "Indicates that a switch's port was manually enabled.",
449             "Switch '%1' port '%2' was manually enabled.",
450             "OK",
451             2,
452             {
453                 "string",
454                 "string",
455             },
456             "None.",
457         }},
458     MessageEntry{
459         "PortOK",
460         {
461             "Indicates that a switch's port has returned to a functional state.",
462             "Switch '%1' port '%2' has returned to a functional state.",
463             "OK",
464             2,
465             {
466                 "string",
467                 "string",
468             },
469             "None.",
470         }},
471     MessageEntry{
472         "SwitchDegraded",
473         {
474             "Indicates that a switch is in a degraded state.",
475             "Switch '%1' is in a degraded state.",
476             "Warning",
477             1,
478             {
479                 "string",
480             },
481             "Contact the network administrator for problem resolution.",
482         }},
483     MessageEntry{
484         "SwitchFailed",
485         {
486             "Indicates that a switch has become inoperative.",
487             "Switch '%1' has failed and is inoperative.",
488             "Critical",
489             1,
490             {
491                 "string",
492             },
493             "Contact the network administrator for problem resolution.",
494         }},
495     MessageEntry{
496         "SwitchOK",
497         {
498             "Indicates that a switch has returned to a functional state.",
499             "Switch '%1' has returned to a functional state.",
500             "OK",
501             1,
502             {
503                 "string",
504             },
505             "None.",
506         }},
507     MessageEntry{
508         "UpstreamLinkDropped",
509         {
510             "Indicates that a switch's upstream connection has gone down.",
511             "Switch '%1' upstream link has gone down on port '%2'.",
512             "Warning",
513             2,
514             {
515                 "string",
516                 "string",
517             },
518             "Contact the network administrator for problem resolution.",
519         }},
520     MessageEntry{
521         "UpstreamLinkEstablished",
522         {
523             "Indicates that a switch's upstream connection is established.",
524             "Switch '%1' upstream link is established on port '%2'.",
525             "OK",
526             2,
527             {
528                 "string",
529                 "string",
530             },
531             "None.",
532         }},
533     MessageEntry{
534         "UpstreamLinkFlapDetected",
535         {
536             "Indicates that a switch's upstream connection is highly unstable.",
537             "Switch '%1' upstream link on port '%2' was established and dropped %3 times in the last %4 minutes.",
538             "Warning",
539             4,
540             {
541                 "string",
542                 "string",
543                 "number",
544                 "number",
545             },
546             "Contact the network administrator for problem resolution.",
547         }},
548     MessageEntry{
549         "ZoneCreated",
550         {
551             "Indicates that a zone was created.",
552             "Zone '%1' was created in fabric '%2'.",
553             "OK",
554             2,
555             {
556                 "string",
557                 "string",
558             },
559             "None.",
560         }},
561     MessageEntry{
562         "ZoneModified",
563         {
564             "Indicates that a zone was modified.",
565             "Zone '%1' in fabric '%2' was modified.",
566             "OK",
567             2,
568             {
569                 "string",
570                 "string",
571             },
572             "None.",
573         }},
574     MessageEntry{
575         "ZoneRemoved",
576         {
577             "Indicates that a zone was removed.",
578             "Zone '%1' was removed from fabric '%2'.",
579             "OK",
580             2,
581             {
582                 "string",
583                 "string",
584             },
585             "None.",
586         }},
587 
588 };
589 
590 enum class Index
591 {
592     addressPoolCreated = 0,
593     addressPoolModified = 1,
594     addressPoolRemoved = 2,
595     cableFailed = 3,
596     cableInserted = 4,
597     cableOK = 5,
598     cableRemoved = 6,
599     connectionCreated = 7,
600     connectionModified = 8,
601     connectionRemoved = 9,
602     degradedDownstreamLinkEstablished = 10,
603     degradedInterswitchLinkEstablished = 11,
604     degradedUpstreamLinkEstablished = 12,
605     downstreamLinkDropped = 13,
606     downstreamLinkEstablished = 14,
607     downstreamLinkFlapDetected = 15,
608     endpointCreated = 16,
609     endpointModified = 17,
610     endpointRemoved = 18,
611     interswitchLinkDropped = 19,
612     interswitchLinkEstablished = 20,
613     interswitchLinkFlapDetected = 21,
614     maxFrameSizeExceeded = 22,
615     mediaControllerAdded = 23,
616     mediaControllerModified = 24,
617     mediaControllerRemoved = 25,
618     portAutomaticallyDisabled = 26,
619     portAutomaticallyEnabled = 27,
620     portDegraded = 28,
621     portFailed = 29,
622     portManuallyDisabled = 30,
623     portManuallyEnabled = 31,
624     portOK = 32,
625     switchDegraded = 33,
626     switchFailed = 34,
627     switchOK = 35,
628     upstreamLinkDropped = 36,
629     upstreamLinkEstablished = 37,
630     upstreamLinkFlapDetected = 38,
631     zoneCreated = 39,
632     zoneModified = 40,
633     zoneRemoved = 41,
634 };
635 } // namespace redfish::registries::fabric
636