blob: e162e1840c608fce1fa2123a195240b0951831a7 [file] [log] [blame]
Scott Bakerc3ce3e72016-06-20 17:35:19 -07001#!/usr/bin/env python
2
3# This imports and runs ../../xos-observer.py
4
5import importlib
6import os
7import sys
Scott Baker90d8a182016-08-11 09:07:42 -07008sys.path.append('/opt/xos')
9
10os.environ.setdefault("DJANGO_SETTINGS_MODULE", "xos.settings")
11
Scott Bakercdbb71e2016-10-26 15:50:03 -070012# Legacy code to support VTN API version 1.
13
14# import synchronizers.base.event_loop
15# if hasattr(synchronizers.base.event_loop, "set_driver"):
16# # VTN synchronizer needs the OpenStack driver
17# from openstack_xos.driver import OpenStackDriver
18# synchronizers.base.event_loop.set_driver(OpenStackDriver())
Scott Baker90d8a182016-08-11 09:07:42 -070019
20mod = importlib.import_module("synchronizers.base.xos-synchronizer")
Scott Bakerc3ce3e72016-06-20 17:35:19 -070021mod.main()
Scott Baker90d8a182016-08-11 09:07:42 -070022