feat: started to prepare inventory / topoplogy for NCD #1
| @ -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 | ||||||
|             ), |             ) | ||||||
|             ... |             ... | ||||||
| ``` | ``` | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user