diff options
| author | diogo464 <[email protected]> | 2025-06-27 12:06:30 +0100 |
|---|---|---|
| committer | diogo464 <[email protected]> | 2025-06-27 12:06:30 +0100 |
| commit | 0848f5e5be88789c3160df76e5ba4f55e9feb4b8 (patch) | |
| tree | 24aae1eb116526b39ecfe424069f0e6a6a4ec445 /src | |
| parent | 05a4270072483748d9a7a3c26d7d33a12619e47a (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.rs | 6 |
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 @@ | |||
| 3 | use std::{collections::HashMap, path::PathBuf}; | 3 | use std::{collections::HashMap, path::PathBuf}; |
| 4 | 4 | ||
| 5 | use clap::Parser; | 5 | use clap::Parser; |
| 6 | use eyre::{Context, Result}; | 6 | use eyre::Result; |
| 7 | use serde::Deserialize; | 7 | use serde::Deserialize; |
| 8 | use tokio::process::Command; | 8 | use 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 | ||
| 110 | async fn clear_addresses(machine: &str) -> Result<()> {} | 110 | async fn clear_addresses(_machine: &str) -> Result<()> { |
| 111 | Ok(()) | ||
| 112 | } | ||
| 111 | 113 | ||
| 112 | async fn oar_network_addresses(job_id: u32) -> Result<Vec<String>> { | 114 | async fn oar_network_addresses(job_id: u32) -> Result<Vec<String>> { |
| 113 | #[derive(Deserialize)] | 115 | #[derive(Deserialize)] |
