blob: 1762be826188de52c67b0ae12eda55f4ef65444f [file] [log] [blame]
Sapan Bhatia8fc7eb32017-05-05 20:43:43 +02001from django.db import models
2from django.db.models import *
Scott Bakerd7590f72017-07-18 11:37:22 -07003from core.models import Service, XOSBase, Slice, Instance, ServiceInstance, ServiceInstanceLink, Node, Image, User, Flavor, NetworkParameter, NetworkParameterType, Port, AddressPool, User
Sapan Bhatiae86b4b62017-05-19 23:01:13 +02004from core.models.xosbase import StrippedCharField
Sapan Bhatia8fc7eb32017-05-05 20:43:43 +02005import os
6from django.db import models, transaction
7from django.forms.models import model_to_dict
8from django.db.models import Q
9from operator import itemgetter, attrgetter, methodcaller
10from core.models import Tag
11from core.models.service import LeastLoadedNodeScheduler
12from services.vrouter.models import VRouterService, VRouterTenant
Scott Bakerc15556d2017-05-06 09:55:01 -070013from services.rcord.models import CordSubscriberRoot
Sapan Bhatia8fc7eb32017-05-05 20:43:43 +020014import traceback
15from xos.exceptions import *
Matteo Scandoloc102a242017-06-08 15:01:59 -070016from xosconfig import Config
Sapan Bhatia8fc7eb32017-05-05 20:43:43 +020017
18class ConfigurationError(Exception):
19 pass
20
21VOLT_KIND = "vOLT"
Sapan Bhatia8fc7eb32017-05-05 20:43:43 +020022
23CORD_USE_VTN = getattr(Config(), "networking_use_vtn", False)