Matteo Scandolo | a4e6e9a | 2016-08-23 12:04:45 -0700 | [diff] [blame] | 1 | #!/usr/bin/env python |
| 2 | |
| 3 | # Runs the standard XOS synchronizer |
| 4 | |
| 5 | import importlib |
| 6 | import os |
| 7 | import sys |
Matteo Scandolo | 7c05748 | 2017-06-05 10:40:25 -0700 | [diff] [blame^] | 8 | from xosconfig import Config |
| 9 | |
| 10 | config_file = os.path.abspath(os.path.dirname(os.path.realpath(__file__)) + '/vrouter_config.yaml') |
| 11 | |
| 12 | Config.init(config_file, 'synchronizer-config-schema.yaml') |
Matteo Scandolo | a4e6e9a | 2016-08-23 12:04:45 -0700 | [diff] [blame] | 13 | |
| 14 | synchronizer_path = os.path.join(os.path.dirname( |
Scott Baker | 1c1c44e | 2017-03-14 10:19:19 -0700 | [diff] [blame] | 15 | os.path.realpath(__file__)), "../../synchronizers/new_base") |
Matteo Scandolo | a4e6e9a | 2016-08-23 12:04:45 -0700 | [diff] [blame] | 16 | sys.path.append(synchronizer_path) |
| 17 | mod = importlib.import_module("xos-synchronizer") |
| 18 | mod.main() |