This commit is contained in:
Sylvain Tremblay 2025-03-01 10:29:22 -05:00
parent 1475f4af0c
commit 7af83910ef

View File

@ -47,7 +47,7 @@ impl<'a> DhcpConfig<'a> {
pub fn set_filename(&mut self, filename: &str) { pub fn set_filename(&mut self, filename: &str) {
self.enable_netboot(); self.enable_netboot();
self.get_lan_dhcpd().filename = Some(filename.to_string()); self.get_lan_dhcpd().filename = Some(filename.to_string());
}, }
... ...
``` ```
@ -74,7 +74,7 @@ impl DhcpServer for OPNSenseFirewall {
} }
Ok(()) Ok(())
}, }
... ...
``` ```
@ -85,7 +85,7 @@ impl DhcpServer for DummyInfra {
... ...
async fn set_filename(&self, _filename: &str) -> Result<(), ExecutorError> { async fn set_filename(&self, _filename: &str) -> Result<(), ExecutorError> {
unimplemented!("{}", UNIMPLEMENTED_DUMMY_INFRA) unimplemented!("{}", UNIMPLEMENTED_DUMMY_INFRA)
}, }
... ...
``` ```
@ -143,6 +143,6 @@ impl DhcpInterpret {
format!( format!(
"Dhcp Interpret Set next boot to [{:?}], boot_filename to [{:?}], filename to [{:?}]", "Dhcp Interpret Set next boot to [{:?}], boot_filename to [{:?}], filename to [{:?}]",
self.score.boot_filename, self.score.boot_filename, self.score.filename self.score.boot_filename, self.score.boot_filename, self.score.filename
), )
... ...
``` ```