From 660b38e5aecfec22563b90f43e0ed7a99bb4cc0d Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Mon, 9 Nov 2015 14:13:39 +0900 Subject: test: add BIRD for performance test target Signed-off-by: ISHIDA Wataru --- test/performance_test/README.md | 7 +++++++ test/performance_test/test.py | 3 +++ 2 files changed, 10 insertions(+) (limited to 'test/performance_test') 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) -- cgit v1.2.3