Commit 00b76f60 authored by Julien Muchembled's avatar Julien Muchembled

neosimple: new --bind_ip option

parent f49bf829
...@@ -248,7 +248,7 @@ class NEOCluster(object): ...@@ -248,7 +248,7 @@ class NEOCluster(object):
db_user=DB_USER, db_password='', db_user=DB_USER, db_password='',
cleanup_on_delete=False, temp_dir=None, clear_databases=True, cleanup_on_delete=False, temp_dir=None, clear_databases=True,
adapter=os.getenv('NEO_TESTS_ADAPTER'), adapter=os.getenv('NEO_TESTS_ADAPTER'),
address_type=ADDRESS_TYPE, address_type=ADDRESS_TYPE, bind_ip=None,
): ):
if not adapter: if not adapter:
adapter = 'MySQL' adapter = 'MySQL'
...@@ -269,7 +269,8 @@ class NEOCluster(object): ...@@ -269,7 +269,8 @@ class NEOCluster(object):
else: else:
assert False, adapter assert False, adapter
self.address_type = address_type self.address_type = address_type
self.local_ip = local_ip = IP_VERSION_FORMAT_DICT[self.address_type] self.local_ip = local_ip = bind_ip or \
IP_VERSION_FORMAT_DICT[self.address_type]
self.setupDB(clear_databases) self.setupDB(clear_databases)
self.process_dict = {} self.process_dict = {}
self.temp_dir = temp_dir self.temp_dir = temp_dir
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment