Sapan Bhatia | 8fc7eb3 | 2017-05-05 20:43:43 +0200 | [diff] [blame] | 1 | from django.db import models |
| 2 | from django.db.models import * |
Scott Baker | d7590f7 | 2017-07-18 11:37:22 -0700 | [diff] [blame^] | 3 | from core.models import Service, XOSBase, Slice, Instance, ServiceInstance, ServiceInstanceLink, Node, Image, User, Flavor, NetworkParameter, NetworkParameterType, Port, AddressPool, User |
Sapan Bhatia | e86b4b6 | 2017-05-19 23:01:13 +0200 | [diff] [blame] | 4 | from core.models.xosbase import StrippedCharField |
Sapan Bhatia | 8fc7eb3 | 2017-05-05 20:43:43 +0200 | [diff] [blame] | 5 | import os |
| 6 | from django.db import models, transaction |
| 7 | from django.forms.models import model_to_dict |
| 8 | from django.db.models import Q |
| 9 | from operator import itemgetter, attrgetter, methodcaller |
| 10 | from core.models import Tag |
| 11 | from core.models.service import LeastLoadedNodeScheduler |
| 12 | from services.vrouter.models import VRouterService, VRouterTenant |
Scott Baker | c15556d | 2017-05-06 09:55:01 -0700 | [diff] [blame] | 13 | from services.rcord.models import CordSubscriberRoot |
Sapan Bhatia | 8fc7eb3 | 2017-05-05 20:43:43 +0200 | [diff] [blame] | 14 | import traceback |
| 15 | from xos.exceptions import * |
Matteo Scandolo | c102a24 | 2017-06-08 15:01:59 -0700 | [diff] [blame] | 16 | from xosconfig import Config |
Sapan Bhatia | 8fc7eb3 | 2017-05-05 20:43:43 +0200 | [diff] [blame] | 17 | |
| 18 | class ConfigurationError(Exception): |
| 19 | pass |
| 20 | |
| 21 | VOLT_KIND = "vOLT" |
Sapan Bhatia | 8fc7eb3 | 2017-05-05 20:43:43 +0200 | [diff] [blame] | 22 | |
| 23 | CORD_USE_VTN = getattr(Config(), "networking_use_vtn", False) |