Skip to content

Commit

Permalink
Add example conf
Browse files Browse the repository at this point in the history
  • Loading branch information
density215 committed Jan 9, 2024
1 parent 2263b30 commit 8e4d152
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::env;

fn main() {
println!(
"cargo:warning=Directories '/etc' and '/examples' can be found in '{:?}'",
"cargo:warning=Directory '/etc' can be found in {:?}",
env::var_os("CARGO_MANIFEST_DIR").unwrap()
);
}
44 changes: 44 additions & 0 deletions etc/rotonda.example.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
log_level = "info" # "error", "warn", "info", "debug" or "trace"
log_target = "stderr" # "stderr", "file" or "syslog"
log_facility = "daemon" # used if log_target is "syslog"
log_file = "./rotonda.log" # used if log_target is "file"

# Optional path to a directory from which any .roto files present will be
# loaded into Rotonda. Filter names used below refer to blocks in the .roto
# files loaded from this directory.
roto_scripts_path = "etc/"

http_listen = ["127.0.0.1:8080"]

[units.bgp-in]
type = "bgp-tcp-in"
listen = "0.0.0.0:11179" # TODO: When we can drop privileges make this 179
my_asn = 64512 # Tip: edit me, or comment this unit out
my_bgp_id = [0, 0, 0, 0] # Tip: edit me, or comment this unit out
filter_name = "bgp-in-filter"

[units.bmp-in]
type = "bmp-tcp-in"
listen = "0.0.0.0:11019"
filter_name = "bmp-in-filter"
http_api_path = "/bmp-routers/"
tracing_mode = "Off"

[units.rib-in-pre]
type = "rib"
sources = ["bgp-in", "bmp-in"]
rib_type = "Physical"
filter_name = "rib-in-pre-filter"
http_api_path = "/rib-in-pre/"

[units.rib-in-post]
type = "rib"
sources = ["rib-in-pre"]
rib_type = "Virtual"
vrib_upstream = "rib-in-pre"
filter_name = "rib-in-post-filter"
http_api_path = "/rib-in-post/"

[targets.null]
type = "null-out"
sources = ["rib-in-post"]

0 comments on commit 8e4d152

Please sign in to comment.