CORD-1243 move vsg model policies to model policy framework
Change-Id: I0874b6ec7504e9e3964580cd1fac8aedaf26f7e9
diff --git a/xos/synchronizer/steps/sync_vcpetenant.py b/xos/synchronizer/steps/sync_vcpetenant.py
index 5c45cf3..d3b0f11 100644
--- a/xos/synchronizer/steps/sync_vcpetenant.py
+++ b/xos/synchronizer/steps/sync_vcpetenant.py
@@ -126,8 +126,15 @@
o.last_ansible_hash = ansible_hash
- def delete_record(self, m):
- pass
+ def sync_record(self, o):
+ if (not o.policed) or (o.policed<o.updated):
+ defer_sync("waiting on model policy")
+ super(SyncVSGTenant, self).sync_record(o)
+
+ def delete_record(self, o):
+ if (not o.policed) or (o.policed<o.updated):
+ defer_sync("waiting on model policy")
+ # do not call super, as we don't want to re-run the playbook
def handle_service_monitoringagentinfo_watch_notification(self, monitoring_agent_info):
if not monitoring_agent_info.service: