SEBA-566 Add linting and fix errors in onos-service
Change-Id: If84a9d5d47ec490acf98b6d9790dd1baff21875b
diff --git a/xos/synchronizer/migrations/0005_auto_20190409_1919.py b/xos/synchronizer/migrations/0005_auto_20190409_1919.py
new file mode 100644
index 0000000..a3ab6d9
--- /dev/null
+++ b/xos/synchronizer/migrations/0005_auto_20190409_1919.py
@@ -0,0 +1,45 @@
+# Copyright 2017-present Open Networking Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# -*- coding: utf-8 -*-
+# Generated by Django 1.11.20 on 2019-04-09 23:19
+from __future__ import unicode_literals
+
+import core.models.xosbase_header
+from django.db import migrations
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('onos', '0004_auto_20190312_1829'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='onosservice_decl',
+ name='rest_hostname',
+ field=core.models.xosbase_header.StrippedCharField(help_text=b'Hostname of ONOS Service REST endpoint', max_length=256),
+ ),
+ migrations.AlterField(
+ model_name='onosservice_decl',
+ name='rest_password',
+ field=core.models.xosbase_header.StrippedCharField(default=b'karaf', help_text=b'Password to use when authenticating to ONOS', max_length=256),
+ ),
+ migrations.AlterField(
+ model_name='onosservice_decl',
+ name='rest_username',
+ field=core.models.xosbase_header.StrippedCharField(default=b'karaf', help_text=b'Username to use when authenticating to ONOS', max_length=256),
+ ),
+ ]
diff --git a/xos/synchronizer/models/onos.xproto b/xos/synchronizer/models/onos.xproto
index 8f27d32..ae479ab 100644
--- a/xos/synchronizer/models/onos.xproto
+++ b/xos/synchronizer/models/onos.xproto
@@ -32,7 +32,7 @@
required string rest_hostname = 1 [
help_text = "Hostname of ONOS Service REST endpoint",
content_type = "stripped",
- max_length = 255];
+ max_length = 256];
required int32 rest_port = 2 [
help_text = "Port numnber of ONOS Service REST endpoint",
default = 8181];
@@ -40,10 +40,10 @@
help_text = "Username to use when authenticating to ONOS",
content_type = "stripped",
default="karaf",
- max_length = 255];
+ max_length = 256];
required string rest_password = 4 [
help_text = "Password to use when authenticating to ONOS",
content_type = "stripped",
default="karaf",
- max_length = 255];
+ max_length = 256];
}