Andrea Campanella | 2a2df42 | 2017-08-30 16:59:17 +0200 | [diff] [blame^] | 1 | # 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. |
| 14 | from django.db import models |
| 15 | from core.models import Service, XOSBase, Slice, Instance, TenantWithContainer, Node, Image, User, Flavor, NetworkParameter, NetworkParameterType, Port, AddressPool, User |
| 16 | from core.models.xosbase import StrippedCharField |
| 17 | import os |
| 18 | from django.db import models, transaction |
| 19 | from django.forms.models import model_to_dict |
| 20 | from django.db.models import * |
| 21 | from operator import itemgetter, attrgetter, methodcaller |
| 22 | from core.models import Tag |
| 23 | from core.models.service import LeastLoadedNodeScheduler |
| 24 | import traceback |
| 25 | from xos.exceptions import * |
| 26 | from django.contrib.contenttypes.models import ContentType |
| 27 | |
| 28 | class ConfigurationError(Exception): |
| 29 | pass |
| 30 | |
| 31 | VEG_KIND = "vEG" |
| 32 | CORD_SUBSCRIBER_KIND = "CordSubscriberRoot" |
| 33 | |