diff --git a/daemon/src/config/validate.rs b/daemon/src/config/validate.rs index 02e522c..1d04780 100644 --- a/daemon/src/config/validate.rs +++ b/daemon/src/config/validate.rs @@ -145,6 +145,12 @@ impl Neighbor { let _: std::net::IpAddr = addr .parse() .map_err(|_| Error::InvalidConfiguration("can't parse neighbor address".to_string()))?; + + if self.add_paths.is_some() { + return Err(Error::InvalidConfiguration( + "use per-family addpath config".to_string(), + )); + } Ok(()) } }