Skip to content

Commit

Permalink
return error for global addpath config
Browse files Browse the repository at this point in the history
use per-family addpath config instead.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
  • Loading branch information
fujita committed Jun 30, 2023
1 parent 24f9548 commit 9ee5e40
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions daemon/src/config/validate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
}
}
Expand Down

0 comments on commit 9ee5e40

Please sign in to comment.