aboutsummaryrefslogtreecommitdiffstats
path: root/src/resource_inventory/models.py
blob: a143cfd7b53cbb38eea49f501384c5757eead14f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
##############################################################################
# Copyright (c) 2018 Sawyer Bergeron, Parker Berberian, and others.
# Copyright (c) 2020 Sawyer Bergeron, Sean Smith, others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
############################################################################################################################################################
# Copyright (c) 2018 Sawyer Bergeron, Parker Berberian, and others.
# Copyright (c) 2020 Sawyer Bergeron, Sean Smith, others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################

from django.contrib.auth.models import User

from django.core.exceptions import ValidationError
from django.db import models
from django.db.models import Q
import traceback
import json

import re
from collections import Counter

from account.models import Lab
from dashboard.utils import AbstractModelQuery

# Keep for now until migrations are made, otherwise django will get angry
def get_default_remote_info():
    pass

def get_sentinal_opnfv_role():
    pass