redfish_codegen/registries/ethernet_fabric/
v1_0_0.rs

1// Generated by redfish-codegen. Do not modify.
2
3use redfish_macros::IntoRedfishMessage;
4
5/// This registry defines messages for Ethernet fabrics
6#[derive(Clone, Debug, IntoRedfishMessage)]
7#[message(crate::models::message::v1_1_2::Message)]
8pub enum EthernetFabric {
9    /// This message shall be used to indicate that a multi-chassis link aggregation group (MLAG) peer is down.
10    #[message(message = "MLAG peer switch '%1' with MLAG ID '%2' is down.")]
11    #[message(id = "EthernetFabric.1.0.0.MLAGPeerDown")]
12    #[message(severity = "crate::models::resource::Health::Warning")]
13    #[message(resolution = "Check physical connectivity and that the port channel ID matches on switch pairs.")]
14    MLAGPeerDown(
15        /// This argument shall contain the value of the `Id` property of the peer switch for which MLAG interface has been dropped.
16        String,
17        /// This argument shall contain the value of the MLAG domain ID that has been dropped.
18        String,
19    ),
20    /// This message shall be used to indicate all multi-chassis link aggregation group (MLAG) interfaces have been established for one MLAG domain ID.
21    #[message(message = "All MLAG interfaces have been established for MLAG ID '%1'.")]
22    #[message(id = "EthernetFabric.1.0.0.MLAGInterfacesUp")]
23    #[message(severity = "crate::models::resource::Health::OK")]
24    #[message(resolution = "No action is needed.")]
25    MLAGInterfacesUp(
26        /// This argument shall contain the MLAG domain ID that has been established.
27        String,
28    ),
29    /// This message shall be used to indicate that a multi-chassis link aggregation group (MLAG) peer is up.
30    #[message(message = "MLAG peer switch '%1' with MLAG ID '%2' is up.")]
31    #[message(id = "EthernetFabric.1.0.0.MLAGPeerUp")]
32    #[message(severity = "crate::models::resource::Health::OK")]
33    #[message(resolution = "No action is needed.")]
34    MLAGPeerUp(
35        /// This argument shall contain the value of the `Id` property of the peer switch for which MLAG interfaces are up.
36        String,
37        /// This argument shall contain the value of the MLAG domain ID that has been established.
38        String,
39    ),
40    /// This message shall be used to indicate that a switch has exceeded a rate threshold for routing errors.  This message shall not be emitted more than once in any 24-hour period of time.
41    #[message(message = "Switch '%1' has encountered %2 routing errors in the last %3 minutes.")]
42    #[message(id = "EthernetFabric.1.0.0.RoutingFailureThresholdExceeded")]
43    #[message(severity = "crate::models::resource::Health::Warning")]
44    #[message(resolution = "Contact the network administrator for problem resolution.")]
45    RoutingFailureThresholdExceeded(
46        /// This argument shall contain the value of the `Id` property of the switch that encountered routing errors.
47        String,
48        /// This argument shall contain the number of routing errors encountered.
49        f64,
50        /// This argument shall contain the number of minutes over which routing errors have been encountered.
51        f64,
52    ),
53    /// This message shall be used to indicate that multi-chassis link aggregation group (MLAG) interfaces have been established, but the aggregated link speed is lower than provisioned.
54    #[message(message = "MLAG interface '%1' is degraded on switch '%2'.")]
55    #[message(id = "EthernetFabric.1.0.0.MLAGInterfaceDegraded")]
56    #[message(severity = "crate::models::resource::Health::Warning")]
57    #[message(resolution = "Contact the network administrator for problem resolution.")]
58    MLAGInterfaceDegraded(
59        /// This argument shall contain the MLAG domain ID that is degraded.
60        String,
61        /// This argument shall contain the value of the `Id` property of the switch for which an MLAG interface is degraded.
62        String,
63    ),
64    /// This message shall be used to indicate that the multi-chassis link aggregation group (MLAG) interface is down on a switch.
65    #[message(message = "The MLAG interface '%1' on switch '%2' is down.")]
66    #[message(id = "EthernetFabric.1.0.0.MLAGInterfaceDown")]
67    #[message(severity = "crate::models::resource::Health::Warning")]
68    #[message(resolution = "Check physical connectivity and that the MLAG system ID matches on switch pairs.")]
69    MLAGInterfaceDown(
70        /// This argument shall contain the MLAG domain ID that has been dropped.
71        String,
72        /// This argument shall contain the value of the `Id` property of the switch for which an MLAG interface is down.
73        String,
74    ),
75    /// This message shall be used to indicate that an interface has disabled Link Layer Discovery Protocol (LLDP).
76    #[message(message = "LLDP has been disabled on switch '%1' port '%2'.")]
77    #[message(id = "EthernetFabric.1.0.0.LLDPInterfaceDisabled")]
78    #[message(severity = "crate::models::resource::Health::Warning")]
79    #[message(resolution = "Check that LLDP is enabled on device endpoints.")]
80    LLDPInterfaceDisabled(
81        /// This argument shall contain the value of the `Id` property of the switch on which an LLDP connection has been disabled.
82        String,
83        /// This argument shall contain the value of the `Id` property of the port on which an LLDP connection has been disabled.
84        String,
85    ),
86    /// This message shall be used to indicate that an interface has enabled Link Layer Discovery Protocol (LLDP).
87    #[message(message = "LLDP has been enabled on switch '%1' port '%2'.")]
88    #[message(id = "EthernetFabric.1.0.0.LLDPInterfaceEnabled")]
89    #[message(severity = "crate::models::resource::Health::OK")]
90    #[message(resolution = "No action is needed.")]
91    LLDPInterfaceEnabled(
92        /// This argument shall contain the value of the `Id` property of the switch on which an LLDP connection has been established.
93        String,
94        /// This argument shall contain the value of the `Id` property of the port on which an LLDP connection has been established.
95        String,
96    ),
97}