Skip to content

Commit

Permalink
small updates to config module
Browse files Browse the repository at this point in the history
  • Loading branch information
ByteOtter committed Apr 16, 2024
1 parent 58c42fc commit b100742
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/configuration/config_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ pub struct SystemConfig {
// optional System information
pub tenant_group: Option<i64>,
pub tenant: Option<i64>,
pub location: Option<i64>,
pub rack: Option<i64>,
pub position: Option<i64>,
}
Expand Down Expand Up @@ -346,7 +347,7 @@ impl ConfigData {
);
}

return Ok(());
Ok(())
}

/// Opens and reads the config file and writes the set parameters into a [`ConfigData`](struct.ConfigData) Object
Expand Down
2 changes: 1 addition & 1 deletion src/configuration/config_template.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ device_type = 0 # ID of the type of the Device Type in NetBox
device_role = 0 # ID of the device role in NetBox
# Name of the network interface to set. (e.g eth0, etc)
# If not set, the first active interface will be selected.
primary_network_interface = ""
primary_network_interface = "eth0"
face = "" # Direction this device may face in (e.g front or rear)
status = "active" # status of the device. default: active
airflow = "Front to rear" # Direction of airflow
Expand Down

0 comments on commit b100742

Please sign in to comment.