[CORD-1942] Define M-CORD Subscriber

Change-Id: Ia0bc036048f8ff13762770a7d59cc045187c84fb
diff --git a/xos/mcord-onboard.yaml b/xos/mcord-onboard.yaml
new file mode 100644
index 0000000..b1d2bea
--- /dev/null
+++ b/xos/mcord-onboard.yaml
@@ -0,0 +1,34 @@
+
+# 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.
+
+
+tosca_definitions_version: tosca_simple_yaml_1_0
+
+description: Onboard rcord models
+
+imports:
+   - custom_types/xos.yaml
+
+topology_template:
+  node_templates:
+    library#mcord:
+      type: tosca.nodes.ServiceController
+      properties:
+          base_url: file:///opt/cord/orchestration/profiles/mcord/xos/
+          # The following will concatenate with base_url automatically, if
+          # base_url is non-null.
+          xproto: models/
+          tosca_custom_types: mcord_service.yaml
+          tosca_resource: tosca/mcord_service.py
diff --git a/xos/models/.gitignore b/xos/models/.gitignore
deleted file mode 100644
index d6b7ef3..0000000
--- a/xos/models/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-*
-!.gitignore
diff --git a/xos/models/attic/header.py b/xos/models/attic/header.py
new file mode 100644
index 0000000..ad5bb33
--- /dev/null
+++ b/xos/models/attic/header.py
@@ -0,0 +1,18 @@
+# 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 core.models import ServiceInstance
+from django.db.models import *
+from core.models.xosbase import StrippedCharField
diff --git a/xos/models/header.py b/xos/models/header.py
new file mode 120000
index 0000000..721b5c0
--- /dev/null
+++ b/xos/models/header.py
@@ -0,0 +1 @@
+attic/header.py
\ No newline at end of file
diff --git a/xos/models/mcord.xproto b/xos/models/mcord.xproto
new file mode 100644
index 0000000..b64aa65
--- /dev/null
+++ b/xos/models/mcord.xproto
@@ -0,0 +1,15 @@
+option app_label = "mcord";
+option name = "mcord";
+
+message MCordSubscriberService (Service) {
+     option verbose_name = "MCORD Service";
+     option description = "The Mobile Subscriber service in CORD";
+}
+
+message MCordSubscriberInstance (ServiceInstance) {
+     option verbose_name = "MCORD Subscriber";
+     option description = "This model holds the informations of a Mobile Subscriber in CORD";
+
+     required string imsi_number = 1 [max_length = 30, content_type = "stripped", blank = False, null = False, db_index = False];
+     required string apn_number = 1 [max_length = 30, content_type = "stripped", blank = False, null = False, db_index = False];
+}