blob: ec2162ad14fe1173e2f9639503f3f4a4301b71d9 [file] [log] [blame]
Scott Bakerc3ce3e72016-06-20 17:35:19 -07001from django.db import models
Scott Baker34726b82017-03-13 17:21:54 -07002from core.models import Service
Scott Bakerc3ce3e72016-06-20 17:35:19 -07003from core.models.plcorebase import StrippedCharField
4import os
5from django.db import models, transaction
6from django.forms.models import model_to_dict
Scott Bakerc3ce3e72016-06-20 17:35:19 -07007import traceback
8from xos.exceptions import *
9from xos.config import Config
10
11class ConfigurationError(Exception):
12 pass
13
14VTN_KIND = "VTN"
15
16# -------------------------------------------
17# VTN
18# -------------------------------------------
19
20class VTNService(Service):
21 KIND = VTN_KIND
22
23 class Meta:
24 app_label = "vtn"
25 verbose_name = "VTN Service"
Scott Bakerc3ce3e72016-06-20 17:35:19 -070026
Scott Baker34726b82017-03-13 17:21:54 -070027 privateGatewayMac = StrippedCharField(max_length=30, default="00:00:00:00:00:01")
28 localManagementIp = StrippedCharField(max_length=30, default="172.27.0.1/24")
29 ovsdbPort = models.IntegerField(default=6641)
30 sshPort = models.IntegerField(default=22)
31 sshUser = StrippedCharField(max_length=30, default="root")
32 sshKeyFile = StrippedCharField(max_length=1024, default="/root/node_key")
33 mgmtSubnetBits = models.IntegerField(default=24)
34 xosEndpoint = StrippedCharField(max_length=1024, default="http://xos/")
35 xosUser = StrippedCharField(max_length=255, default="padmin@vicci.org")
36 xosPassword = StrippedCharField(max_length=255, default="letmein")
37 vtnAPIVersion = models.IntegerField(default=1)
38 controllerPort = StrippedCharField(max_length=255, default="onos-cord:6653")
Scott Bakerc3ce3e72016-06-20 17:35:19 -070039