Sapan Bhatia | 46482ee | 2017-04-21 17:59:48 +0200 | [diff] [blame] | 1 | from django.db import models |
Scott Baker | 80238f8 | 2017-07-18 16:01:10 -0700 | [diff] [blame^] | 2 | from core.models import Service, XOSBase, Slice, Instance, TenantWithContainer, Node, Image, User, Flavor, NetworkParameter, NetworkParameterType, Port, AddressPool, User |
Sapan Bhatia | 3816f67 | 2017-05-19 23:10:53 +0200 | [diff] [blame] | 3 | from core.models.xosbase import StrippedCharField |
Sapan Bhatia | 46482ee | 2017-04-21 17:59:48 +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.vrouter.models import VRouterService, VRouterTenant |
| 12 | import traceback |
| 13 | from xos.exceptions import * |
Scott Baker | 248ed75 | 2017-05-24 16:40:28 -0700 | [diff] [blame] | 14 | from django.contrib.contenttypes.models import ContentType |
Sapan Bhatia | 46482ee | 2017-04-21 17:59:48 +0200 | [diff] [blame] | 15 | |
| 16 | class ConfigurationError(Exception): |
| 17 | pass |
| 18 | |
| 19 | VCPE_KIND = "vCPE" |
| 20 | CORD_SUBSCRIBER_KIND = "CordSubscriberRoot" |
| 21 | |