summaryrefslogtreecommitdiff
path: root/redfish-core/include/registries/ethernet_fabric_message_registry.hpp
blob: 5b0f377fbfc20b273856a0eda7613b403f60c556 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
#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::ethernet_fabric
{
const Header header = {
    "Copyright 2020-2023 DMTF. All rights reserved.",
    "#MessageRegistry.v1_6_2.MessageRegistry",
    "EthernetFabric.1.0.1",
    "Ethernet Fabric Message Registry",
    "en",
    "This registry defines messages for Ethernet fabrics.",
    "EthernetFabric",
    "1.0.1",
    "DMTF",
};
constexpr const char* url =
    "https://redfish.dmtf.org/registries/EthernetFabric.1.0.1.json";

constexpr std::array registry =
{
    MessageEntry{
        "LLDPInterfaceDisabled",
        {
            "Indicates that an interface has disabled Link Layer Discovery Protocol (LLDP).",
            "LLDP was disabled on switch '%1' port '%2'.",
            "Warning",
            2,
            {
                "string",
                "string",
            },
            "Check that LLDP is enabled on device endpoints.",
        }},
    MessageEntry{
        "LLDPInterfaceEnabled",
        {
            "Indicates that an interface has enabled Link Layer Discovery Protocol (LLDP).",
            "LLDP was enabled on switch '%1' port '%2'.",
            "OK",
            2,
            {
                "string",
                "string",
            },
            "None.",
        }},
    MessageEntry{
        "MLAGInterfaceDegraded",
        {
            "Indicates that multi-chassis link aggregation group (MLAG) interfaces were established, but at an unexpectedly low aggregated link speed.",
            "MLAG interface '%1' is degraded on switch '%2'.",
            "Warning",
            2,
            {
                "string",
                "string",
            },
            "Contact the network administrator for problem resolution.",
        }},
    MessageEntry{
        "MLAGInterfaceDown",
        {
            "Indicates that the multi-chassis link aggregation group (MLAG) interface is down on a switch.",
            "The MLAG interface '%1' on switch '%2' is down.",
            "Warning",
            2,
            {
                "string",
                "string",
            },
            "Check physical connectivity and that the MLAG system ID matches on switch pairs.",
        }},
    MessageEntry{
        "MLAGInterfacesUp",
        {
            "Indicates that all multi-chassis link aggregation group (MLAG) interfaces are up.",
            "All MLAG interfaces were established for MLAG ID '%1'.",
            "OK",
            1,
            {
                "string",
            },
            "None.",
        }},
    MessageEntry{
        "MLAGPeerDown",
        {
            "Indicates that the multi-chassis link aggregation group (MLAG) peer is down.",
            "MLAG peer switch '%1' with MLAG ID '%2' is down.",
            "Warning",
            2,
            {
                "string",
                "string",
            },
            "Check physical connectivity and that the port channel ID matches on switch pairs.",
        }},
    MessageEntry{
        "MLAGPeerUp",
        {
            "Indicates that the multi-chassis link aggregation group (MLAG) peer is up.",
            "MLAG peer switch '%1' with MLAG ID '%2' is up.",
            "OK",
            2,
            {
                "string",
                "string",
            },
            "None.",
        }},
    MessageEntry{
        "RoutingFailureThresholdExceeded",
        {
            "Indicates that a switch has encountered an unusually large number of routing errors.",
            "Switch '%1' has encountered %2 routing errors in the last %3 minutes.",
            "Warning",
            3,
            {
                "string",
                "number",
                "number",
            },
            "Contact the network administrator for problem resolution.",
        }},

};

enum class Index
{
    lLDPInterfaceDisabled = 0,
    lLDPInterfaceEnabled = 1,
    mLAGInterfaceDegraded = 2,
    mLAGInterfaceDown = 3,
    mLAGInterfacesUp = 4,
    mLAGPeerDown = 5,
    mLAGPeerUp = 6,
    routingFailureThresholdExceeded = 7,
};
} // namespace redfish::registries::ethernet_fabric