XOS watcher changes to handle routing table updates inside instances
Change-Id: I8c58c01472004e1e15f1571da284550acd38a92a
diff --git a/xos/synchronizer/steps/sync_vcpetenant.py b/xos/synchronizer/steps/sync_vcpetenant.py
index e8670d6..825add4 100644
--- a/xos/synchronizer/steps/sync_vcpetenant.py
+++ b/xos/synchronizer/steps/sync_vcpetenant.py
@@ -9,7 +9,7 @@
from synchronizers.base.syncstep import SyncStep
from synchronizers.base.ansible import run_template_ssh
from synchronizers.base.SyncInstanceUsingAnsible import SyncInstanceUsingAnsible
-from core.models import Service, Slice, Tag
+from core.models import Service, Slice, Tag, ModelLink, CoarseTenant, Tenant
from services.vsg.models import VSGService, VSGTenant
from xos.logger import Logger, logging
@@ -37,6 +37,7 @@
observes=VSGTenant
requested_interval=0
template_name = "sync_vcpetenant.yaml"
+ watches = [ModelLink(CoarseTenant,via='coarsetenant')]
def __init__(self, *args, **kwargs):
super(SyncVSGTenant, self).__init__(*args, **kwargs)
diff --git a/xos/synchronizer/vcpe_synchronizer_config b/xos/synchronizer/vcpe_synchronizer_config
index e41dc9a..dd33cc3 100644
--- a/xos/synchronizer/vcpe_synchronizer_config
+++ b/xos/synchronizer/vcpe_synchronizer_config
@@ -36,6 +36,7 @@
# set proxy_ssh to false on cloudlab
proxy_ssh=False
full_setup=True
+enable_watchers=True
[feefie]
client_id='vicci_dev_central'