[SEBA-494] Setting required core version

Change-Id: I5b572cb16acd0b8d7d92fcbe32469e949c27f7dd
diff --git a/Dockerfile.synchronizer b/Dockerfile.synchronizer
index ac54624..6584cd0 100644
--- a/Dockerfile.synchronizer
+++ b/Dockerfile.synchronizer
@@ -16,8 +16,7 @@
 
 # xosproject/onos-synchronizer
 
-FROM xosproject/xos-synchronizer-base:2.1.50
-
+FROM xosproject/xos-synchronizer-base:2.2.1
 COPY xos/synchronizer /opt/xos/synchronizers/onos
 COPY VERSION /opt/xos/synchronizers/onos/
 
diff --git a/xos/synchronizer/config.yaml b/xos/synchronizer/config.yaml
index a7d7bd6..a9e7c26 100644
--- a/xos/synchronizer/config.yaml
+++ b/xos/synchronizer/config.yaml
@@ -15,6 +15,7 @@
 
 
 name: onos
+core_version: ">=2.2.1"
 required_models:
   - ONOSService
   - ONOSApp
diff --git a/xos/synchronizer/migrations/0002_auto_20190225_1840.py b/xos/synchronizer/migrations/0002_auto_20190225_1840.py
new file mode 100644
index 0000000..9a19537
--- /dev/null
+++ b/xos/synchronizer/migrations/0002_auto_20190225_1840.py
@@ -0,0 +1,70 @@
+# 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.11 on 2019-02-25 23:40
+from __future__ import unicode_literals
+
+import core.models.xosbase_header
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('onos', '0001_initial'),
+    ]
+
+    operations = [
+        migrations.AlterField(
+            model_name='onosapp_decl',
+            name='app_id',
+            field=core.models.xosbase_header.StrippedCharField(help_text=b'Application identifier', max_length=256),
+        ),
+        migrations.AlterField(
+            model_name='onosapp_decl',
+            name='dependencies',
+            field=core.models.xosbase_header.StrippedCharField(blank=True, help_text=b'Comma separated list of required application application ids', max_length=1024, null=True),
+        ),
+        migrations.AlterField(
+            model_name='onosapp_decl',
+            name='url',
+            field=core.models.xosbase_header.StrippedCharField(blank=True, help_text=b'URL at which the application is available, if it needs to be downloaded', max_length=1024, null=True),
+        ),
+        migrations.AlterField(
+            model_name='onosapp_decl',
+            name='version',
+            field=core.models.xosbase_header.StrippedCharField(blank=True, help_text=b'Application version number', max_length=256, null=True),
+        ),
+        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=255),
+        ),
+        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=255),
+        ),
+        migrations.AlterField(
+            model_name='onosservice_decl',
+            name='rest_port',
+            field=models.IntegerField(default=8181, help_text=b'Port numnber of ONOS Service REST endpoint'),
+        ),
+        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=255),
+        ),
+    ]