CORD-1008 update vrouter synchronizer to use new_base
Change-Id: I59df976c7b819ec49a0bade2f748f33ce7995433
diff --git a/xos/synchronizer/steps/sync_vrouterapp.py b/xos/synchronizer/steps/sync_vrouterapp.py
index b7d3576..891bfef 100644
--- a/xos/synchronizer/steps/sync_vrouterapp.py
+++ b/xos/synchronizer/steps/sync_vrouterapp.py
@@ -2,17 +2,11 @@
import sys
import requests
import json
-from django.db.models import Q, F
-from services.vrouter.models import *
-from synchronizers.base.syncstep import SyncStep
+from synchronizers.new_base.syncstep import SyncStep
+from synchronizers.new_base.modelaccessor import *
from xos.logger import Logger, logging
-# from core.models import Service
from requests.auth import HTTPBasicAuth
-
-parentdir = os.path.join(os.path.dirname(__file__), "..")
-sys.path.insert(0, parentdir)
-
logger = Logger(level=logging.INFO)
diff --git a/xos/synchronizer/steps/sync_vrouterdevice.py b/xos/synchronizer/steps/sync_vrouterdevice.py
index 36e00db..0b7d6a5 100644
--- a/xos/synchronizer/steps/sync_vrouterdevice.py
+++ b/xos/synchronizer/steps/sync_vrouterdevice.py
@@ -2,17 +2,11 @@
import sys
import requests
import json
-from django.db.models import Q, F
-from services.vrouter.models import *
-from synchronizers.base.syncstep import SyncStep
+from synchronizers.new_base.syncstep import SyncStep
+from synchronizers.new_base.modelaccessor import *
from xos.logger import Logger, logging
-# from core.models import Service
from requests.auth import HTTPBasicAuth
-
-parentdir = os.path.join(os.path.dirname(__file__), "..")
-sys.path.insert(0, parentdir)
-
logger = Logger(level=logging.INFO)
diff --git a/xos/synchronizer/steps/sync_vrouterports.py b/xos/synchronizer/steps/sync_vrouterports.py
index e19c51e..de37814 100644
--- a/xos/synchronizer/steps/sync_vrouterports.py
+++ b/xos/synchronizer/steps/sync_vrouterports.py
@@ -3,17 +3,11 @@
import requests
import json
import urllib
-from django.db.models import Q, F
-from services.vrouter.models import *
-from synchronizers.base.syncstep import SyncStep
+from synchronizers.new_base.syncstep import SyncStep
+from synchronizers.new_base.modelaccessor import *
from xos.logger import Logger, logging
-# from core.models import Service
from requests.auth import HTTPBasicAuth
-
-parentdir = os.path.join(os.path.dirname(__file__), "..")
-sys.path.insert(0, parentdir)
-
logger = Logger(level=logging.INFO)
diff --git a/xos/synchronizer/vrouter-synchronizer.py b/xos/synchronizer/vrouter-synchronizer.py
index 93dcb72..6db012f 100644
--- a/xos/synchronizer/vrouter-synchronizer.py
+++ b/xos/synchronizer/vrouter-synchronizer.py
@@ -7,7 +7,7 @@
import sys
synchronizer_path = os.path.join(os.path.dirname(
- os.path.realpath(__file__)), "../../synchronizers/base")
+ os.path.realpath(__file__)), "../../synchronizers/new_base")
sys.path.append(synchronizer_path)
mod = importlib.import_module("xos-synchronizer")
mod.main()