blob: 1c6f7bfc4648c9ec9da1ae94550ae4d1674f3f66 [file] [log] [blame]
Scott Bakerc3ce3e72016-06-20 17:35:19 -07001from django.db import models
2from core.models import Service, PlCoreBase, Slice, Instance, Tenant, TenantWithContainer, Node, Image, User, Flavor, Subscriber, 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 Q
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
15class ConfigurationError(Exception):
16 pass
17
18VTN_KIND = "VTN"
19
20# -------------------------------------------
21# VTN
22# -------------------------------------------
23
24class VTNService(Service):
25 KIND = VTN_KIND
26
27 class Meta:
28 app_label = "vtn"
29 verbose_name = "VTN Service"
30 proxy = True
31
32 simple_attributes = ( ("privateGatewayMac", "00:00:00:00:00:01"),
33 ("localManagementIp", "172.27.0.1/24"),
34 ("ovsdbPort", "6641"),
35 ("sshPort", "22"),
36 ("sshUser", "root"),
37 ("sshKeyFile", "/root/node_key") ,
38 ("mgmtSubnetBits", "24"),
39 ("xosEndpoint", "http://xos/"),
40 ("xosUser", "padmin@vicci.org"),
41 ("xosPassword", "letmein"),
Scott Bakerb3a80de2016-09-06 16:51:27 -070042 ("vtnAPIVersion", 1),
Scott Bakerff016682016-11-28 09:53:13 -080043 ("controllerPort", "onos-cord:6653"),
Scott Bakerc3ce3e72016-06-20 17:35:19 -070044
45 )
46
47VTNService.setup_simple_attributes()