Sapan Bhatia | 103593d | 2017-05-19 23:10:53 +0200 | [diff] [blame] | 1 | from django.db import models |
| 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 |
| 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 * |
Sapan Bhatia | 103593d | 2017-05-19 23:10:53 +0200 | [diff] [blame] | 13 | |
| 14 | |
| 15 | class ConfigurationError(Exception): |
| 16 | pass |
| 17 | |
| 18 | |
| 19 | VROUTER_KIND = "vROUTER" |
| 20 | APP_LABEL = "vrouter" |
| 21 | |
| 22 | # NOTE: don't change VROUTER_KIND unless you also change the reference to it |
| 23 | # in tosca/resources/network.py |
| 24 | |
Matteo Scandolo | 7c05748 | 2017-06-05 10:40:25 -0700 | [diff] [blame^] | 25 | CORD_USE_VTN = True |
Sapan Bhatia | 103593d | 2017-05-19 23:10:53 +0200 | [diff] [blame] | 26 | |