blob: c805f2495e77cd96d7b5af02157d610dedd9bba1 [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"),
42
43 )
44
45VTNService.setup_simple_attributes()