4 name = "fastnetmon-advanced";
5 meta.maintainers = lib.teams.wdz.members;
9 networking.firewall.allowedTCPPorts = [ 179 ];
13 router id 192.168.1.1;
16 local 192.168.1.1 as 64513;
17 neighbor 192.168.1.2 as 64514;
28 networking.firewall.allowedTCPPorts = [ 179 ];
29 services.fastnetmon-advanced = {
32 networks_list = [ "172.23.42.0/24" ];
34 gobgp_flow_spec_announces = true;
40 local_address = "192.168.1.2";
41 remote_address = "192.168.1.1";
53 testScript = { nodes, ... }: ''
55 fnm.wait_for_unit("fastnetmon.service")
56 bird.wait_for_unit("bird2.service")
58 fnm.wait_until_succeeds('journalctl -eu fastnetmon.service | grep "BGP daemon restarted correctly"')
59 fnm.wait_until_succeeds("journalctl -eu gobgp.service | grep BGP_FSM_OPENCONFIRM")
60 bird.wait_until_succeeds("birdc show protocol fnm | grep Estab")
61 fnm.wait_until_succeeds('journalctl -eu fastnetmon.service | grep "API server listening"')
62 fnm.succeed("fcli set blackhole 172.23.42.123")
63 bird.succeed("birdc show route | grep 172.23.42.123")