Sapan Bhatia | 084c098 | 2017-04-21 14:47:40 +0200 | [diff] [blame] | 1 | from django.db import models |
Scott Baker | c7958a9 | 2017-07-18 11:07:00 -0700 | [diff] [blame] | 2 | from core.models import Service, XOSBase, Slice, Instance, ServiceInstance, TenantWithContainer, Node, Image, User, Flavor, NetworkParameter, NetworkParameterType, Port, AddressPool |
Sapan Bhatia | 7c0ed0f | 2017-05-19 23:10:53 +0200 | [diff] [blame] | 3 | from core.models.xosbase import StrippedCharField |
Sapan Bhatia | 084c098 | 2017-04-21 14:47:40 +0200 | [diff] [blame] | 4 | import os |
| 5 | from django.db import models, transaction |
| 6 | from django.forms.models import model_to_dict |
| 7 | from django.db.models import * |
| 8 | from operator import itemgetter, attrgetter, methodcaller |
Sapan Bhatia | 084c098 | 2017-04-21 14:47:40 +0200 | [diff] [blame] | 9 | import traceback |
| 10 | from xos.exceptions import * |
Sapan Bhatia | 084c098 | 2017-04-21 14:47:40 +0200 | [diff] [blame] | 11 | from django.contrib.contenttypes.models import ContentType |
| 12 | from django.contrib.contenttypes.fields import GenericForeignKey |
| 13 | |
| 14 | class ConfigurationError(Exception): |
Matteo Scandolo | 15f11b9 | 2017-05-30 17:31:02 -0700 | [diff] [blame] | 15 | # FIXME log the error |
Sapan Bhatia | 084c098 | 2017-04-21 14:47:40 +0200 | [diff] [blame] | 16 | pass |
| 17 | |
| 18 | VTR_KIND = "vTR" |