CORD-2476 Migrate fabric to dynamic load

Change-Id: I286fa8aebb4a04134ff8ca22fc63bb7044ff800a
diff --git a/xos/synchronizer/fabric_config.yaml b/xos/synchronizer/fabric_config.yaml
index fe15f34..9652846 100644
--- a/xos/synchronizer/fabric_config.yaml
+++ b/xos/synchronizer/fabric_config.yaml
@@ -14,10 +14,16 @@
 # limitations under the License.
 
 
-name: fabric-synchronizer
+name: fabric
 accessor:
   username: xosadmin@opencord.org
   password: "@/opt/xos/services/fabric/credentials/xosadmin@opencord.org"
+required_models:
+  - Instance
+  - Tag
+  - FabricService
+  - AddressManagerServiceInstance
 dependency_graph: "/opt/xos/synchronizers/fabric/model-deps"
 steps_dir: "/opt/xos/synchronizers/fabric/steps"
-sys_dir: "/opt/xos/synchronizers/fabric/sys"
\ No newline at end of file
+sys_dir: "/opt/xos/synchronizers/fabric/sys"
+models_dir: "/opt/xos/synchronizers/fabric/models"
diff --git a/xos/synchronizer/models/attic/header.py b/xos/synchronizer/models/attic/header.py
new file mode 100644
index 0000000..055ac8d
--- /dev/null
+++ b/xos/synchronizer/models/attic/header.py
@@ -0,0 +1,22 @@
+
+# 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.
+
+
+from django.db import models
+from django.db.models import *
+from core.models import Service
+import traceback
+from xos.exceptions import *
+from xosconfig import Config
diff --git a/xos/synchronizer/models/fabric.xproto b/xos/synchronizer/models/fabric.xproto
new file mode 100644
index 0000000..8ecf614
--- /dev/null
+++ b/xos/synchronizer/models/fabric.xproto
@@ -0,0 +1,8 @@
+option app_label = "fabric";
+option name = "fabric";
+
+message FabricService(Service){
+    option verbose_name = "Fabric Service";
+    
+    optional bool autoconfig = 1 [default = True, help_text="Autoconfigure the fabric", null=False];
+}