0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 17:51:53 +00:00

Add script to prepare test case run

This commit is contained in:
Igor Putovny 2023-12-05 15:13:06 +01:00
parent 39581c7d7f
commit 98f98fbbe9
2 changed files with 57 additions and 0 deletions

View File

@ -0,0 +1,30 @@
debug protocols all;
debug channels all;
log "bird.log" all;
ipv4 table aggregated;
protocol device {}
#router id 1;
attribute int distinguisher;
protocol static {
ipv4 {
import filter { distinguisher = 9; accept; };
};
route 10.100.0.0/16 unreachable;
}
protocol aggregator {
table master4;
peer table aggregated;
export filter { print net; accept; };
aggregate on distinguisher, net;
merge by { accept; };
# defualt route unrechable;
}

View File

@ -0,0 +1,27 @@
#!/bin/bash
dir_name="trie-test-case"
cd ../..
make all
echo '------------------------'
if [[ ! -e "$dir_name" ]]; then
mkdir "$dir_name"
echo "creating directory '$dir_name'"
fi
cp ./bird ./"$dir_name"
echo 'copying bird executable'
cp ./birdc ./"$dir_name"
echo 'copying birdc executable'
cp ./proto/aggregator/bird.conf ./"$dir_name"
echo 'copying bird.conf'
cd "$dir_name"
echo 'done'
echo
echo 'expected result: 10.100.0.0/16'