CORD-1250 Update to new Service/Tenancy models
Change-Id: I0e7d7de2a2fb41066af14e7ac54d618b1d76dbee
diff --git a/xos/synchronizer/vtnnetport.py b/xos/synchronizer/vtnnetport.py
index e1c15bb..bef9b37 100644
--- a/xos/synchronizer/vtnnetport.py
+++ b/xos/synchronizer/vtnnetport.py
@@ -65,10 +65,10 @@
return []
nets=[]
- for tenant in service.subscribed_tenants.all():
- if tenant.provider_service:
- bidirectional = tenant.connect_method!="private-unidirectional"
- for net in tenant.provider_service.get_composable_networks():
+ for dep in service.subscribed_dependencies.all():
+ if dep.provider_service:
+ bidirectional = dep.connect_method!="private-unidirectional"
+ for net in dep.provider_service.get_composable_networks():
if not net.controllernetworks.exists():
continue
@@ -90,10 +90,10 @@
return []
nets=[]
- for tenant in service.provided_tenants.all():
- if tenant.subscriber_service:
- bidirectional = tenant.connect_method!="private-unidirectional"
- for net in tenant.subscriber_service.get_composable_networks():
+ for dep in service.provided_dependencies.all():
+ if dep.subscriber_service:
+ bidirectional = dep.connect_method!="private-unidirectional"
+ for net in dep.subscriber_service.get_composable_networks():
if not net.controllernetworks.exists():
continue