redfish-codegen 0.3.1

An unopinionated translation of the Redfish specification into Rust.
Documentation
// Generated by redfish-codegen. Do not modify.

use redfish_macros::IntoRedfishMessage;

/// This registry defines messages for Ethernet fabrics
#[derive(Clone, Debug, IntoRedfishMessage)]
#[message(crate::models::message::v1_1_2::Message)]
pub enum EthernetFabric {
    /// This message shall be used to indicate that a multi-chassis link aggregation group (MLAG) peer is down.
    #[message(message = "MLAG peer switch '%1' with MLAG ID '%2' is down.")]
    #[message(id = "EthernetFabric.1.0.0.MLAGPeerDown")]
    #[message(severity = "crate::models::resource::Health::Warning")]
    #[message(resolution = "Check physical connectivity and that the port channel ID matches on switch pairs.")]
    MLAGPeerDown(
        /// This argument shall contain the value of the `Id` property of the peer switch for which MLAG interface has been dropped.
        String,
        /// This argument shall contain the value of the MLAG domain ID that has been dropped.
        String,
    ),
    /// This message shall be used to indicate all multi-chassis link aggregation group (MLAG) interfaces have been established for one MLAG domain ID.
    #[message(message = "All MLAG interfaces have been established for MLAG ID '%1'.")]
    #[message(id = "EthernetFabric.1.0.0.MLAGInterfacesUp")]
    #[message(severity = "crate::models::resource::Health::OK")]
    #[message(resolution = "No action is needed.")]
    MLAGInterfacesUp(
        /// This argument shall contain the MLAG domain ID that has been established.
        String,
    ),
    /// This message shall be used to indicate that a multi-chassis link aggregation group (MLAG) peer is up.
    #[message(message = "MLAG peer switch '%1' with MLAG ID '%2' is up.")]
    #[message(id = "EthernetFabric.1.0.0.MLAGPeerUp")]
    #[message(severity = "crate::models::resource::Health::OK")]
    #[message(resolution = "No action is needed.")]
    MLAGPeerUp(
        /// This argument shall contain the value of the `Id` property of the peer switch for which MLAG interfaces are up.
        String,
        /// This argument shall contain the value of the MLAG domain ID that has been established.
        String,
    ),
    /// 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.
    #[message(message = "Switch '%1' has encountered %2 routing errors in the last %3 minutes.")]
    #[message(id = "EthernetFabric.1.0.0.RoutingFailureThresholdExceeded")]
    #[message(severity = "crate::models::resource::Health::Warning")]
    #[message(resolution = "Contact the network administrator for problem resolution.")]
    RoutingFailureThresholdExceeded(
        /// This argument shall contain the value of the `Id` property of the switch that encountered routing errors.
        String,
        /// This argument shall contain the number of routing errors encountered.
        f64,
        /// This argument shall contain the number of minutes over which routing errors have been encountered.
        f64,
    ),
    /// 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.
    #[message(message = "MLAG interface '%1' is degraded on switch '%2'.")]
    #[message(id = "EthernetFabric.1.0.0.MLAGInterfaceDegraded")]
    #[message(severity = "crate::models::resource::Health::Warning")]
    #[message(resolution = "Contact the network administrator for problem resolution.")]
    MLAGInterfaceDegraded(
        /// This argument shall contain the MLAG domain ID that is degraded.
        String,
        /// This argument shall contain the value of the `Id` property of the switch for which an MLAG interface is degraded.
        String,
    ),
    /// This message shall be used to indicate that the multi-chassis link aggregation group (MLAG) interface is down on a switch.
    #[message(message = "The MLAG interface '%1' on switch '%2' is down.")]
    #[message(id = "EthernetFabric.1.0.0.MLAGInterfaceDown")]
    #[message(severity = "crate::models::resource::Health::Warning")]
    #[message(resolution = "Check physical connectivity and that the MLAG system ID matches on switch pairs.")]
    MLAGInterfaceDown(
        /// This argument shall contain the MLAG domain ID that has been dropped.
        String,
        /// This argument shall contain the value of the `Id` property of the switch for which an MLAG interface is down.
        String,
    ),
    /// This message shall be used to indicate that an interface has disabled Link Layer Discovery Protocol (LLDP).
    #[message(message = "LLDP has been disabled on switch '%1' port '%2'.")]
    #[message(id = "EthernetFabric.1.0.0.LLDPInterfaceDisabled")]
    #[message(severity = "crate::models::resource::Health::Warning")]
    #[message(resolution = "Check that LLDP is enabled on device endpoints.")]
    LLDPInterfaceDisabled(
        /// This argument shall contain the value of the `Id` property of the switch on which an LLDP connection has been disabled.
        String,
        /// This argument shall contain the value of the `Id` property of the port on which an LLDP connection has been disabled.
        String,
    ),
    /// This message shall be used to indicate that an interface has enabled Link Layer Discovery Protocol (LLDP).
    #[message(message = "LLDP has been enabled on switch '%1' port '%2'.")]
    #[message(id = "EthernetFabric.1.0.0.LLDPInterfaceEnabled")]
    #[message(severity = "crate::models::resource::Health::OK")]
    #[message(resolution = "No action is needed.")]
    LLDPInterfaceEnabled(
        /// This argument shall contain the value of the `Id` property of the switch on which an LLDP connection has been established.
        String,
        /// This argument shall contain the value of the `Id` property of the port on which an LLDP connection has been established.
        String,
    ),
}