Sapan Bhatia | 084c098 | 2017-04-21 14:47:40 +0200 | [diff] [blame] | 1 | from django.db import models |
Sapan Bhatia | 7c0ed0f | 2017-05-19 23:10:53 +0200 | [diff] [blame] | 2 | from core.models import Service, XOSBase, Slice, Instance, Tenant, TenantWithContainer, Node, Image, User, Flavor, NetworkParameter, NetworkParameterType, Port, AddressPool |
| 3 | from core.models.xosbase import StrippedCharField |
Sapan Bhatia | 084c098 | 2017-04-21 14:47:40 +0200 | [diff] [blame] | 4 | import os |
| 5 | from django.db import models, transaction |
| 6 | from django.forms.models import model_to_dict |
| 7 | from django.db.models import * |
| 8 | from operator import itemgetter, attrgetter, methodcaller |
| 9 | from core.models import Tag |
| 10 | from core.models.service import LeastLoadedNodeScheduler |
| 11 | from services.volt.models import CordSubscriberRoot |
| 12 | import traceback |
| 13 | from xos.exceptions import * |
| 14 | from xos.config import Config |
| 15 | from django.contrib.contenttypes.models import ContentType |
| 16 | from django.contrib.contenttypes.fields import GenericForeignKey |
| 17 | |
| 18 | class ConfigurationError(Exception): |
| 19 | pass |
| 20 | |
| 21 | VTR_KIND = "vTR" |
| 22 | |
| 23 | CORD_USE_VTN = getattr(Config(), "networking_use_vtn", False) |
| 24 | |