CORD-1172: Brought vEG service over to xproto
Change-Id: I22911237e0fcc48aa0a5d0d5f64b7646dacb14a0
diff --git a/xos/attic/vegtenant_bottom.py b/xos/attic/vegtenant_bottom.py
new file mode 100644
index 0000000..e60e71b
--- /dev/null
+++ b/xos/attic/vegtenant_bottom.py
@@ -0,0 +1,12 @@
+def model_policy_veg(pk):
+ # TODO: this should be made in to a real model_policy
+ with transaction.atomic():
+ veg = VEGTenant.objects.select_for_update().filter(pk=pk)
+ if not veg:
+ return
+ veg = veg[0]
+ veg.manage_container()
+ veg.manage_vrouter()
+ veg.cleanup_orphans()
+
+