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