forked from NationTech/harmony
wip: PXE setup for ipxe and okd files in progress
This commit is contained in:
@@ -5,6 +5,7 @@ pub enum DhcpError {
|
||||
IpAddressAlreadyMapped(String),
|
||||
MacAddressAlreadyMapped(String),
|
||||
IpAddressOutOfRange(String),
|
||||
Configuration(String),
|
||||
}
|
||||
|
||||
impl std::fmt::Display for DhcpError {
|
||||
@@ -21,6 +22,7 @@ impl std::fmt::Display for DhcpError {
|
||||
DhcpError::IpAddressOutOfRange(ip) => {
|
||||
write!(f, "IP address {} is out of interface range", ip)
|
||||
}
|
||||
DhcpError::Configuration(msg) => f.write_str(&msg),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user