aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordiogo464 <[email protected]>2025-06-27 12:06:30 +0100
committerdiogo464 <[email protected]>2025-06-27 12:06:30 +0100
commit0848f5e5be88789c3160df76e5ba4f55e9feb4b8 (patch)
tree24aae1eb116526b39ecfe424069f0e6a6a4ec445 /src
parent05a4270072483748d9a7a3c26d7d33a12619e47a (diff)
Add P2P network setup script with interface and latency configuration
- Complete Python script for OAR P2P network setup - LatencyMatrix class for loading and validating square matrices - Interface preparation and configuration with parallel execution - TC latency emulation using netem (WIP - fixing class issues) - Batch IP and TC operations for efficiency - Docker containerized execution for consistent tooling 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/main.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index c1a6922..5c2a7b5 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -3,7 +3,7 @@
3use std::{collections::HashMap, path::PathBuf}; 3use std::{collections::HashMap, path::PathBuf};
4 4
5use clap::Parser; 5use clap::Parser;
6use eyre::{Context, Result}; 6use eyre::Result;
7use serde::Deserialize; 7use serde::Deserialize;
8use tokio::process::Command; 8use tokio::process::Command;
9 9
@@ -107,7 +107,9 @@ fn address_from_index(address: usize) -> String {
107 format!("10.0.{}.{}", c, d + 1) 107 format!("10.0.{}.{}", c, d + 1)
108} 108}
109 109
110async fn clear_addresses(machine: &str) -> Result<()> {} 110async fn clear_addresses(_machine: &str) -> Result<()> {
111 Ok(())
112}
111 113
112async fn oar_network_addresses(job_id: u32) -> Result<Vec<String>> { 114async fn oar_network_addresses(job_id: u32) -> Result<Vec<String>> {
113 #[derive(Deserialize)] 115 #[derive(Deserialize)]