redfish_codegen/registries/network_device/v1_0_2.rs
1// Generated by redfish-codegen. Do not modify.
2
3use redfish_macros::IntoRedfishMessage;
4
5/// This registry defines the messages for networking devices
6#[derive(Clone, Debug, IntoRedfishMessage)]
7#[message(crate::models::message::v1_1_2::Message)]
8pub enum NetworkDevice {
9 /// This message shall be used to indicate that a network cable has been inserted. This message shall not be sent for a backplane connection.
10 #[message(message = "A network cable has been inserted into network adapter '%1' port '%2'.")]
11 #[message(id = "NetworkDevice.1.0.2.CableInserted")]
12 #[message(severity = "crate::models::resource::Health::OK")]
13 #[message(resolution = "Refresh your cached version of the network port to get the updated information from the service.")]
14 CableInserted(
15 /// The value of this argument shall contain a string that identifies or describes the location or physical context of the network adapter into which a cable has been plugged.
16 String,
17 /// The value of this argument shall contain a string that identifies or describes the location or physical context of the network port into which a cable has been plugged.
18 String,
19 ),
20 /// This message shall be used to indicate that a network connection is newly established, but that the link speed is lower than provisioned for the channel.
21 #[message(message = "A degraded network connection has been established for network adapter '%1' port '%2' function '%3'.")]
22 #[message(id = "NetworkDevice.1.0.2.DegradedConnectionEstablished")]
23 #[message(severity = "crate::models::resource::Health::Warning")]
24 #[message(resolution = "Refresh your cached version of the network port to get the updated information from the service.")]
25 DegradedConnectionEstablished(
26 /// The value of this argument shall contain a string that identifies or describes the location or physical context of the network adapter to which a connection has been established.
27 String,
28 /// The value of this argument shall contain a string that identifies or describes the location or physical context of the network port to which a connection has been established.
29 String,
30 /// The value of this argument shall contain a string that identifies or describes the location or physical context of the network device function to which a connection has been established.
31 String,
32 ),
33 /// This message shall be used to indicate that a network connection has repeatedly been established and dropped. This message shall not be repeated more than once in any 24 hour period.
34 #[message(message = "The network connection for network adapter '%1' port '%2' function '%3' has been established and dropped '%4' times in the last '%5' minutes.")]
35 #[message(id = "NetworkDevice.1.0.2.LinkFlapDetected")]
36 #[message(severity = "crate::models::resource::Health::Warning")]
37 #[message(resolution = "Contact the network administrator for problem resolution.")]
38 LinkFlapDetected(
39 /// The value of this argument shall contain a string that identifies or describes the location or physical context of the network adapter to which a connection has been established.
40 String,
41 /// The value of this argument shall contain a string that identifies or describes the location or physical context of the network port to which a connection has been established.
42 String,
43 /// The value of this argument shall contain a string that identifies or describes the location or physical context of the network device function to which a connection has been established.
44 String,
45 /// The value of this argument shall be a number representing the count of link establishment/disconnection cycles.
46 f64,
47 /// The value of this argument shall be a number representing the number of minutes over which link flapping activity has been detected.
48 f64,
49 ),
50 /// This message shall be used to indicate that a network cable has been removed. This message shall not be sent for a backplane connection.
51 #[message(message = "A cable has been removed from network adapter '%1' port '%2'.")]
52 #[message(id = "NetworkDevice.1.0.2.CableRemoved")]
53 #[message(severity = "crate::models::resource::Health::OK")]
54 #[message(resolution = "Refresh your cached version of the network port to get the updated information from the service.")]
55 CableRemoved(
56 /// The value of this argument shall contain a string that identifies or describes the location or physical context of the network adapter from which a cable has been unplugged.
57 String,
58 /// The value of this argument shall contain a string that identifies or describes the location or physical context of the network port from which a cable has been unplugged.
59 String,
60 ),
61 /// This message shall be used to indicate that the link for a network connection is no longer intact.
62 #[message(message = "The connection is no longer active for network adapter '%1' port '%2' function '%3'.")]
63 #[message(id = "NetworkDevice.1.0.2.ConnectionDropped")]
64 #[message(severity = "crate::models::resource::Health::OK")]
65 #[message(resolution = "Refresh your cached version of the network port to get the updated information from the service.")]
66 ConnectionDropped(
67 /// The value of this argument shall contain a string that identifies or describes the location or physical context of the network adapter from which a connection has dropped.
68 String,
69 /// The value of this argument shall contain a string that identifies or describes the location or physical context of the network port from which a connection has dropped.
70 String,
71 /// The value of this argument shall contain a string that identifies or describes the location or physical context of the network device function from which a connection has dropped.
72 String,
73 ),
74 /// This message shall be used to indicate that the link for a network connection is newly established.
75 #[message(message = "A network connection has been established for network adapter '%1' port '%2' function '%3'.")]
76 #[message(id = "NetworkDevice.1.0.2.ConnectionEstablished")]
77 #[message(severity = "crate::models::resource::Health::OK")]
78 #[message(resolution = "Refresh your cached version of the network port to get the updated information from the service.")]
79 ConnectionEstablished(
80 /// The value of this argument shall contain a string that identifies or describes the location or physical context of the network adapter to which a connection has been established.
81 String,
82 /// The value of this argument shall contain a string that identifies or describes the location or physical context of the network port to which a connection has been established.
83 String,
84 /// The value of this argument shall contain a string that identifies or describes the location or physical context of the network device function to which a connection has been established.
85 String,
86 ),
87}