diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-11-09 14:13:39 +0900 |
---|---|---|
committer | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-11-11 00:47:17 +0900 |
commit | 660b38e5aecfec22563b90f43e0ed7a99bb4cc0d (patch) | |
tree | 4f2a57c75bfc1a0a5b55450ae1645faf1dcd4954 /test/performance_test | |
parent | 34bd365bb4534f2321acea686996e2293727923c (diff) |
test: add BIRD for performance test target
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'test/performance_test')
-rw-r--r-- | test/performance_test/README.md | 7 | ||||
-rw-r--r-- | test/performance_test/test.py | 3 |
2 files changed, 10 insertions, 0 deletions
diff --git a/test/performance_test/README.md b/test/performance_test/README.md index 841370ca..f0edaea3 100644 --- a/test/performance_test/README.md +++ b/test/performance_test/README.md @@ -22,3 +22,10 @@ $ cd $GOPATH/src/github.com/osrg/gobgp/test/performance_test $ sudo PYTHONPATH=../ python test.py -t gobgp -n 1000 T1 $ sudo PYTHONPATH=../ python test.py -t quagga -n 1000 T1 ``` + +To test BIRD, pull BIRD docker image first. + +```shell +$ docker pull osrg/bird +$ sudo PYTHONPATH=../ python test.py -t bird -n 1000 T1 +``` diff --git a/test/performance_test/test.py b/test/performance_test/test.py index 20ff6d6d..4d3e8cc8 100644 --- a/test/performance_test/test.py +++ b/test/performance_test/test.py @@ -1,5 +1,6 @@ from lib.gobgp import * from lib.quagga import * +from lib.bird import * from fabric.api import local from optparse import OptionParser import sys @@ -40,6 +41,8 @@ if __name__ == '__main__': target = GoBGPContainer("target", 1000, "10.10.0.1", log_level='info') elif options.target_rs == "quagga": target = QuaggaBGPContainer("target", 1000, "10.10.0.1") + elif options.target_rs == "bird": + target = BirdContainer("target", 1000, "10.10.0.1") else: print 'Unknown target implementation:', options.target_rs sys.exit(1) |