blob: 1ba8b4da7ec1b3b01d98ecccfcfc96bc70fe1e2e [file] [log] [blame]
Sapan Bhatia084c0982017-04-21 14:47:40 +02001from django.db import models
2from core.models import Service, PlCoreBase, Slice, Instance, Tenant, TenantWithContainer, Node, Image, User, Flavor, NetworkParameter, NetworkParameterType, Port, AddressPool
3from core.models.plcorebase import StrippedCharField
4import os
5from django.db import models, transaction
6from django.forms.models import model_to_dict
7from django.db.models import Q
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