roto 0.10.0

a statically-typed, compiled, embedded scripting language
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
filtermap rib_in_pre(
    output: Log,
    route: Route,
) {
    let my_prefix = 100.40.0.0/17;
    if route.prefix_matches(my_prefix) {
        output.log_custom(10, 100);
        reject
    } else {
        output.log_prefix(my_prefix);
        accept
    }
}