blob: 9889cea72958bf61236abb486ec346466a830772 [file] [log] [blame]
Andrea Campanella2a2df422017-08-30 16:59:17 +02001# Copyright 2017-present Open Networking Foundation
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14from django.db import models
15from core.models import Service, XOSBase, Slice, Instance, TenantWithContainer, Node, Image, User, Flavor, NetworkParameter, NetworkParameterType, Port, AddressPool, User
16from core.models.xosbase import StrippedCharField
17import os
18from django.db import models, transaction
19from django.forms.models import model_to_dict
20from django.db.models import *
21from operator import itemgetter, attrgetter, methodcaller
22from core.models import Tag
23from core.models.service import LeastLoadedNodeScheduler
24import traceback
25from xos.exceptions import *
26from django.contrib.contenttypes.models import ContentType
27
28class ConfigurationError(Exception):
29 pass
30
31VEG_KIND = "vEG"
32CORD_SUBSCRIBER_KIND = "CordSubscriberRoot"
33