blob: 0f04064286c72580d2b41e22a57f83635a5d5085 [file] [log] [blame]
Sapan Bhatia0a56fdc2017-04-21 15:12:57 +02001from django.db import models
2from core.models import Service, PlCoreBase, Slice, Instance, Tenant, TenantWithContainer, Node, Image, User, Flavor, NetworkParameter, NetworkParameterType, Port, AddressPool
3from core.models.plcorebase import StrippedCharField
4import os
5from django.db import models, transaction
6from django.forms.models import model_to_dict
7from django.db.models import *
8from operator import itemgetter, attrgetter, methodcaller
9from core.models import Tag
10from core.models.service import LeastLoadedNodeScheduler
11import traceback
12from xos.exceptions import *
13from xos.config import Config
14
15
16class ConfigurationError(Exception):
17 pass
18
19
20VROUTER_KIND = "vROUTER"
21APP_LABEL = "vrouter"
22
23# NOTE: don't change VROUTER_KIND unless you also change the reference to it
24# in tosca/resources/network.py
25
26CORD_USE_VTN = getattr(Config(), "networking_use_vtn", False)
27