diff --git a/src/rust/lqos_config/src/shaped_devices/mod.rs b/src/rust/lqos_config/src/shaped_devices/mod.rs index 220a536c..38e519cb 100644 --- a/src/rust/lqos_config/src/shaped_devices/mod.rs +++ b/src/rust/lqos_config/src/shaped_devices/mod.rs @@ -113,6 +113,7 @@ impl ConfigShapedDevices { /// Replace the current shaped devices list with a new one pub fn replace_with_new_data(&mut self, devices: Vec) { self.devices = devices; + log::info!("{:?}", self.devices); self.trie = ConfigShapedDevices::make_trie(&self.devices); } @@ -162,6 +163,7 @@ impl ConfigShapedDevices { error!("Unable to write ShapedDevices.csv. Permissions?"); return Err(ShapedDevicesError::WriteFail); } + //println!("Would write to file: {}", csv); Ok(()) } } diff --git a/src/rust/lqos_node_manager/src/config_control.rs b/src/rust/lqos_node_manager/src/config_control.rs index f3bcbd71..c3e6bce2 100644 --- a/src/rust/lqos_node_manager/src/config_control.rs +++ b/src/rust/lqos_node_manager/src/config_control.rs @@ -84,6 +84,7 @@ pub async fn update_network_and_devices( } let mut lock = SHAPED_DEVICES.write().unwrap(); lock.replace_with_new_data(data.shaped_devices.clone()); + println!("{:?}", lock.devices); lock.write_csv(&format!("{}/ShapedDevices.csv", config.lqos_directory)).unwrap(); "Ok".to_string() diff --git a/src/rust/lqos_node_manager/static/config.html b/src/rust/lqos_node_manager/static/config.html index 34df6f27..e6ff0bb4 100644 --- a/src/rust/lqos_node_manager/static/config.html +++ b/src/rust/lqos_node_manager/static/config.html @@ -1664,6 +1664,17 @@ }; } + function ipAddressesToTuple(ip) { + if (ip.length === 0) return []; + let ips = ip.replace(' ', '').split(','); + for (let i=0; i