Yunpeng Zhang | 8be6e07 | 2017-07-16 22:05:26 -0400 | [diff] [blame^] | 1 | from django.db import models |
| 2 | from core.models import Service, PlCoreBase, Slice, Instance, Tenant, TenantWithContainer, Node, Image, User, Flavor, NetworkParameter, NetworkParameterType, Port, AddressPool |
| 3 | from core.models.plcorebase import StrippedCharField |
| 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 | import traceback |
| 12 | from xos.exceptions import * |
| 13 | from xos.config import Config |
| 14 | from django.contrib.contenttypes.models import ContentType |
| 15 | from django.contrib.contenttypes.fields import GenericForeignKey |
| 16 | |
| 17 | MCORD_KIND = 'RAN' |
| 18 | |
| 19 | SERVICE_NAME = 'vsgw' |
| 20 | SERVICE_NAME_VERBOSE = 'Virtual SGW Service' |
| 21 | SERVICE_NAME_VERBOSE_PLURAL = 'Virtual SGW Services' |
| 22 | TENANT_NAME_VERBOSE = 'Virtual SGW Tenant' |
| 23 | TENANT_NAME_VERBOSE_PLURAL = 'Virtual SGW Tenants' |