Sapan Bhatia | 8fc7eb3 | 2017-05-05 20:43:43 +0200 | [diff] [blame] | 1 | from django.db import models |
| 2 | from django.db.models import * |
| 3 | from core.models import Service, PlCoreBase, Slice, Instance, Tenant, TenantWithContainer, Node, Image, User, Flavor, TenantRoot, NetworkParameter, NetworkParameterType, Port, AddressPool, User |
| 4 | from core.models.plcorebase import StrippedCharField |
| 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 * |
| 16 | from xos.config import Config |
| 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) |