blob: e60e71b56069ad84c8e64eb091cc45c18844163e [file] [log] [blame]
Sapan Bhatia51a804c2017-05-03 17:24:37 +02001def model_policy_veg(pk):
2 # TODO: this should be made in to a real model_policy
3 with transaction.atomic():
4 veg = VEGTenant.objects.select_for_update().filter(pk=pk)
5 if not veg:
6 return
7 veg = veg[0]
8 veg.manage_container()
9 veg.manage_vrouter()
10 veg.cleanup_orphans()
11
12