Sapan Bhatia | 26d40bc | 2014-05-12 15:28:02 -0400 | [diff] [blame] | 1 | from core.models import NetworkSliver |
2 | from observer.deleter import Deleter | ||||
3 | |||||
4 | class NetworkSliverDeleter(Deleter): | ||||
5 | model='NetworkSliver' | ||||
6 | |||||
7 | def call(self, pk): | ||||
8 | network_sliver = NetworkSlivers.objects.get(pk=pk) | ||||
9 | # handle openstack delete | ||||
10 | |||||
11 | network_sliver.delete() | ||||
12 | |||||
13 |