mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 09:41:54 +00:00
Add script to prepare test case run
This commit is contained in:
parent
39581c7d7f
commit
98f98fbbe9
30
proto/aggregator/bird.conf
Normal file
30
proto/aggregator/bird.conf
Normal 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;
|
||||
}
|
||||
|
27
proto/aggregator/run_test_case.sh
Executable file
27
proto/aggregator/run_test_case.sh
Executable 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'
|
Loading…
Reference in New Issue
Block a user