forked from NationTech/harmony
feat: Refactored harmony into a workspace with independent modules per client, completed RusshClient test_connection implementation. Needs refactoring though
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
use crate::domain::{
|
||||
hardware::{Location, Host, HostCategory},
|
||||
use harmony::domain::{
|
||||
hardware::{Host, HostCategory, Location, NetworkInterface},
|
||||
inventory::Inventory,
|
||||
};
|
||||
|
||||
pub fn get_fqm_inventory() -> Inventory {
|
||||
pub fn get_inventory() -> Inventory {
|
||||
let network = vec![NetworkInterface::new(1_000_000_000, "TODO MAC ADDRESS".into(), true ) ];
|
||||
let storage = vec![];
|
||||
Inventory {
|
||||
location: Location::new(
|
||||
"1134 Grande Allée Ouest 1er étage, Québec, Qc".into(),
|
||||
@@ -11,8 +13,8 @@ pub fn get_fqm_inventory() -> Inventory {
|
||||
),
|
||||
host: vec![Host {
|
||||
category: HostCategory::Server,
|
||||
network: vec![],
|
||||
storage: vec![],
|
||||
network,
|
||||
storage,
|
||||
labels: vec![],
|
||||
}],
|
||||
switch: vec![],
|
||||
|
||||
Reference in New Issue
Block a user