blob: 36d0a6f623e460349018551a3208323785e2e1ea [file] [log] [blame]
Sapan Bhatia084c0982017-04-21 14:47:40 +02001from django.db import models
Scott Bakerc7958a92017-07-18 11:07:00 -07002from core.models import Service, XOSBase, Slice, Instance, ServiceInstance, TenantWithContainer, Node, Image, User, Flavor, NetworkParameter, NetworkParameterType, Port, AddressPool
Sapan Bhatia7c0ed0f2017-05-19 23:10:53 +02003from core.models.xosbase import StrippedCharField
Sapan Bhatia084c0982017-04-21 14:47:40 +02004import os
5from django.db import models, transaction
6from django.forms.models import model_to_dict
7from django.db.models import *
8from operator import itemgetter, attrgetter, methodcaller
Sapan Bhatia084c0982017-04-21 14:47:40 +02009import traceback
10from xos.exceptions import *
Sapan Bhatia084c0982017-04-21 14:47:40 +020011from django.contrib.contenttypes.models import ContentType
12from django.contrib.contenttypes.fields import GenericForeignKey
13
14class ConfigurationError(Exception):
Matteo Scandolo15f11b92017-05-30 17:31:02 -070015 # FIXME log the error
Sapan Bhatia084c0982017-04-21 14:47:40 +020016 pass
17
18VTR_KIND = "vTR"