blob: 3a6c4e95316ddd57030ffa6419b147631e5ced28 [file] [log] [blame]
Sapan Bhatia084c0982017-04-21 14:47:40 +02001from django.db import models
Sapan Bhatia7c0ed0f2017-05-19 23:10:53 +02002from core.models import Service, XOSBase, Slice, Instance, Tenant, TenantWithContainer, Node, Image, User, Flavor, NetworkParameter, NetworkParameterType, Port, AddressPool
3from 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
9from core.models import Tag
10from core.models.service import LeastLoadedNodeScheduler
11from services.volt.models import CordSubscriberRoot
12import traceback
13from xos.exceptions import *
14from xos.config import Config
15from django.contrib.contenttypes.models import ContentType
16from django.contrib.contenttypes.fields import GenericForeignKey
17
18class ConfigurationError(Exception):
19 pass
20
21VTR_KIND = "vTR"
22
23CORD_USE_VTN = getattr(Config(), "networking_use_vtn", False)
24