Run time option to attach test container to an existing docker network
Change-Id: I3dc84341eacf724eff762672370925cb6171d2f8
diff --git a/src/test/setup/cord-test.py b/src/test/setup/cord-test.py
index 6fcd2d8..90004cb 100755
--- a/src/test/setup/cord-test.py
+++ b/src/test/setup/cord-test.py
@@ -1045,6 +1045,7 @@
type=str,
help='Specify the log level for the test cases')
parser_run.add_argument('-jvm-heap-size', '--jvm-heap-size', default='', type=str, help='ONOS JVM heap size')
+ parser_run.add_argument('-network', '--network', default='', type=str, help='Docker network to attach')
parser_run.set_defaults(func=runTest)
parser_setup = subparser.add_parser('setup', help='Setup cord tester environment')
@@ -1079,6 +1080,7 @@
help='Start ONOS cluster instances in async mode')
parser_setup.add_argument('-f', '--foreground', action='store_true', help='Run in foreground')
parser_setup.add_argument('-jvm-heap-size', '--jvm-heap-size', default='', type=str, help='ONOS JVM heap size')
+ parser_setup.add_argument('-network', '--network', default='', type=str, help='Docker network to attach')
parser_setup.set_defaults(func=setupCordTester)
parser_xos = subparser.add_parser('xos', help='Building xos into cord tester environment')