CORD-2510 Migrate VNaaS to dynamic load

Change-Id: Ie786c452379ae96706b2319f98ccddfc82b8b205
diff --git a/xos/__init__.py b/xos/__init__.py
deleted file mode 100755
index d4e8062..0000000
--- a/xos/__init__.py
+++ /dev/null
@@ -1,16 +0,0 @@
-
-# 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.
-
-
diff --git a/xos/header.py b/xos/header.py
deleted file mode 120000
index 721b5c0..0000000
--- a/xos/header.py
+++ /dev/null
@@ -1 +0,0 @@
-attic/header.py
\ No newline at end of file
diff --git a/xos/macros.m4 b/xos/macros.m4
deleted file mode 100755
index 391aafd..0000000
--- a/xos/macros.m4
+++ /dev/null
@@ -1,100 +0,0 @@
-
-# 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.
-
-
-# Note: Tosca derived_from isn't working the way I think it should, it's not
-#    inheriting from the parent template. Until we get that figured out, use
-#    m4 macros do our inheritance
-
-define(xos_base_props,
-            no-delete:
-                type: boolean
-                default: false
-                description: Do not allow Tosca to delete this object
-            no-create:
-                type: boolean
-                default: false
-                description: Do not allow Tosca to create this object
-            no-update:
-                type: boolean
-                default: false
-                description: Do not allow Tosca to update this object
-            replaces:
-                type: string
-                required: false
-                descrption: Replaces/renames this object)
-# Service
-define(xos_base_service_caps,
-            scalable:
-                type: tosca.capabilities.Scalable
-            service:
-                type: tosca.capabilities.xos.Service)
-define(xos_base_service_props,
-            kind:
-                type: string
-                default: generic
-                description: Type of service.
-            view_url:
-                type: string
-                required: false
-                description: URL to follow when icon is clicked in the Service Directory.
-            icon_url:
-                type: string
-                required: false
-                description: ICON to display in the Service Directory.
-            enabled:
-                type: boolean
-                default: true
-            published:
-                type: boolean
-                default: true
-                description: If True then display this Service in the Service Directory.
-            public_key:
-                type: string
-                required: false
-                description: Public key to install into Instances to allows Services to SSH into them.
-            private_key_fn:
-                type: string
-                required: false
-                description: Location of private key file
-            versionNumber:
-                type: string
-                required: false
-                description: Version number of Service.)
-# Subscriber
-define(xos_base_subscriber_caps,
-            subscriber:
-                type: tosca.capabilities.xos.Subscriber)
-define(xos_base_subscriber_props,
-            kind:
-                type: string
-                default: generic
-                description: Kind of subscriber
-            service_specific_id:
-                type: string
-                required: false
-                description: Service specific ID opaque to XOS but meaningful to service)
-define(xos_base_tenant_props,
-            kind:
-                type: string
-                default: generic
-                description: Kind of tenant
-            service_specific_id:
-                type: string
-                required: false
-                description: Service specific ID opaque to XOS but meaningful to service)
-
-# end m4 macros
-
diff --git a/xos/models.py b/xos/models.py
deleted file mode 100755
index 8fc5fc3..0000000
--- a/xos/models.py
+++ /dev/null
@@ -1,159 +0,0 @@
-
-# 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 header import *
-
-from core.models import Tenant, XOSBase
-
-
-class EnterpriseLocation(Tenant):
-
-  KIND = "vnaas"
-
-  class Meta:
-      app_label = "vnaas"
-      name = "vnaas"
-      verbose_name = "Enterprise Location"
-
-  # Primitive Fields (Not Relations)
-  name = CharField( blank = False, max_length = 256, null = False, db_index = False )
-  cord_site_ip = CharField( help_text = "IP of the local site", max_length = 64, null = False, db_index = False, blank = False )
-  cord_site_port = IntegerField( help_text = "Port of the local site", max_length = 256, null = False, db_index = False, blank = False )
-  cord_site_username = CharField( help_text = "Username of the local site", max_length = 64, null = False, db_index = False, blank = False )
-  cord_site_password = CharField( help_text = "Password of the local site", max_length = 64, null = False, db_index = False, blank = False )
-  cord_site_type = CharField( default = "xos", choices = "(('onos', 'ONOS'), ('xos', 'XOS')", max_length = 64, blank = False, null = False, db_index = False )
-
-
-  # Relations
-
-  pass
-
-
-class OnosModel(XOSBase):
-
-  KIND = "vnaas"
-
-  class Meta:
-      app_label = "vnaas"
-      name = "vnaas"
-      verbose_name = "Open Network Operating System"
-
-  # Primitive Fields (Not Relations)
-  name = CharField( blank = False, max_length = 256, null = False, db_index = False )
-  onos_ip = CharField( help_text = "IP of the transport manager", max_length = 64, null = False, db_index = False, blank = False )
-  onos_port = IntegerField( help_text = "Port of the transport manager", max_length = 256, null = False, db_index = False, blank = False )
-  onos_username = CharField( help_text = "Username of the transport manager", max_length = 64, null = False, db_index = False, blank = False )
-  onos_password = CharField( help_text = "Password of the transport manager", max_length = 64, null = False, db_index = False, blank = False )
-  onos_type = CharField( default = "local", choices = "(('local', 'Local'), ('global', 'Global')", max_length = 64, blank = False, null = False, db_index = False )
-
-
-  # Relations
-
-
-  pass
-
-
-class UserNetworkInterface(XOSBase):
-
-  KIND = "vnaas"
-
-  class Meta:
-      app_label = "vnaas"
-      name = "vnaas"
-      verbose_name = "User Network Interface"
-
-  # Primitive Fields (Not Relations)
-  tenant = CharField( help_text = "Tenant name", max_length = 256, null = False, db_index = False, blank = False )
-  cpe_id = CharField( blank = False, max_length = 1024, null = False, db_index = False )
-  latlng = CharField( help_text = "Location, i.e. [37.773972, -122.431297]", max_length = 256, null = False, db_index = False, blank = False )
-  name = CharField( blank = False, max_length = 256, null = False, db_index = False )
-
-
-  # Relations
-
-
-  def __unicode__(self):  return u'%s' % (self.name)
-
-  def save(self, *args, **kwargs):
-
-      if self.latlng:
-          try:
-              latlng_value = getattr(self, 'latlng').strip()
-              if (latlng_value.startswith('[') and latlng_value.endswith(']') and latlng_value.index(',') > 0):
-                  lat = latlng_value[1: latlng_value.index(',')].strip()
-                  lng = latlng_value[latlng_value.index(',') + 1: len(latlng_value) - 1].strip()
-
-                  # If lat and lng are not floats, the code below should result in an error.
-                  lat_validation = float(lat)
-                  lng_validation = float(lng)
-              else:
-                  raise ValueError("The lat/lng value is not formatted correctly.")
-          except:
-              raise ValueError("The lat/lng value is not formatted correctly.")
-
-      super(UserNetworkInterface, self).save(*args, **kwargs)
-  pass
-
-
-
-
-class BandwidthProfile(XOSBase):
-
-  KIND = "vnaas"
-
-  class Meta:
-      app_label = "vnaas"
-      name = "vnaas"
-      verbose_name = "Bandwidth Profile"
-
-  # Primitive Fields (Not Relations)
-  name = CharField( blank = False, max_length = 256, null = False, db_index = False )
-  cbs = IntegerField( help_text = "Committed burst size", null = False, blank = False, db_index = False )
-  ebs = IntegerField( help_text = "Expected burst size", null = False, blank = False, db_index = False )
-  cir = IntegerField( help_text = "Committed information rate", null = False, blank = False, db_index = False )
-  eir = IntegerField( help_text = "Expected information rate", null = False, blank = False, db_index = False )
-
-
-  # Relations
-
-
-  def __unicode__(self):  return u'%s' % (self.name)
-  pass
-
-
-
-class ELine(XOSBase):
-
-  KIND = "vnaas"
-
-  class Meta:
-      app_label = "vnaas"
-      name = "vnaas"
-      verbose_name = "Ethernet Virtual Private Line"
-
-  # Primitive Fields (Not Relations)
-  name = CharField( blank = False, max_length = 256, null = False, db_index = False )
-  connect_point_1_id = CharField( blank = False, max_length = 256, null = False, db_index = False )
-  connect_point_2_id = CharField( blank = False, max_length = 64, null = False, db_index = False )
-  vlanids = TextField( help_text = "comma separated list of vlanIds", null = False, blank = False, db_index = False )
-  cord_site_username = CharField( blank = False, max_length = 64, null = False, db_index = False )
-  bwp = CharField( help_text = "bandwidth profile name", max_length = 256, null = False, db_index = False, blank = False )
-
-
-  # Relations
-
-
-  def __unicode__(self):  return u'%s' % (self.name)
-  pass
-
diff --git a/xos/Makefile.service b/xos/synchronizer/models/Makefile.service
similarity index 100%
rename from xos/Makefile.service
rename to xos/synchronizer/models/Makefile.service
diff --git a/xos/attic/header.py b/xos/synchronizer/models/attic/header.py
similarity index 100%
rename from xos/attic/header.py
rename to xos/synchronizer/models/attic/header.py
diff --git a/xos/attic/usernetworkinterface_model.py b/xos/synchronizer/models/attic/usernetworkinterface_model.py
similarity index 100%
rename from xos/attic/usernetworkinterface_model.py
rename to xos/synchronizer/models/attic/usernetworkinterface_model.py
diff --git a/xos/vnaas.xproto b/xos/synchronizer/models/vnaas.xproto
similarity index 100%
rename from xos/vnaas.xproto
rename to xos/synchronizer/models/vnaas.xproto
diff --git a/xos/synchronizer/steps/test_sync_vnaaseline.py b/xos/synchronizer/steps/test_sync_vnaaseline.py
index 4aa34af..3fcd380 100644
--- a/xos/synchronizer/steps/test_sync_vnaaseline.py
+++ b/xos/synchronizer/steps/test_sync_vnaaseline.py
@@ -54,6 +54,18 @@
 ELINE_VLANIDS = "100"
 ELINE_NAME = "testeline"
 
+# While transitioning from static to dynamic load, the path to find neighboring xproto files has changed. So check
+# both possible locations...
+def get_models_fn(service_name, xproto_name):
+    name = os.path.join(service_name, "xos", xproto_name)
+    if os.path.exists(os.path.join(services_dir, name)):
+        return name
+    else:
+        name = os.path.join(service_name, "xos", "synchronizer", "models", xproto_name)
+        if os.path.exists(os.path.join(services_dir, name)):
+            return name
+    raise Exception("Unable to find service=%s xproto=%s" % (service_name, xproto_name))
+
 class TestSyncvNaaSEline(unittest.TestCase):
     def setUp(self):
         global SyncvNaaSEline, MockObjectList
@@ -68,7 +80,7 @@
         Config.init(config, 'synchronizer-config-schema.yaml')
 
         from synchronizers.new_base.mock_modelaccessor_build import build_mock_modelaccessor
-        build_mock_modelaccessor(xos_dir, services_dir, ["vnaas/xos/vnaas.xproto"])
+        build_mock_modelaccessor(xos_dir, services_dir, [get_models_fn("vnaas", "vnaas.xproto")])
 
         import synchronizers.new_base.modelaccessor
         import synchronizers.new_base.model_policies.model_policy_tenantwithcontainer
diff --git a/xos/synchronizer/vnaas_config.yaml b/xos/synchronizer/vnaas_config.yaml
index 0c8fb1e..f2bae31 100755
--- a/xos/synchronizer/vnaas_config.yaml
+++ b/xos/synchronizer/vnaas_config.yaml
@@ -12,10 +12,17 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-name: vnaas-synchronizer
+name: vnaas
 accessor:
   username: xosadmin@opencord.org
   password: "@/opt/xos/services/vnaas/credentials/xosadmin@opencord.org"
+required_models:
+  - ELine
+  - BandwidthProfile
+  - UserNetworkInterface
+  - OnosModel
+  - EnterpriseLocation
 dependency_graph: "/opt/xos/synchronizers/vnaas/model-deps"
 steps_dir: "/opt/xos/synchronizers/vnaas/steps"
 sys_dir: "/opt/xos/synchronizers/vnaas/sys"
+models_dir: "/opt/xos/synchronizers/vnaas/models"
diff --git a/xos/tosca/resources/vnaasservice.py b/xos/tosca/resources/vnaasservice.py
deleted file mode 100755
index 2799702..0000000
--- a/xos/tosca/resources/vnaasservice.py
+++ /dev/null
@@ -1,44 +0,0 @@
-
-# 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 xosresource import XOSResource
-from service import XOSService
-from services.vnaas.models import *
-
-class XOSvNaaSUNI(XOSResource):
-    provides = "tosca.nodes.UserNetworkInterface"
-    xos_model = UserNetworkInterface
-    copyin_props = ['tenant','vlanIds', 'cpe_id', 'latlng', 'name']
-
-class XOSvNaaSEnterpriseLocation(XOSResource):
-    provides = "tosca.nodes.EnterpriseLocation"
-    xos_model = EnterpriseLocation
-    copyin_props = ['name', 'cord_site_ip', 'cord_site_port', 'cord_site_username', 'cord_site_password', 'cord_site_type']
-
-class XOSvNaaSOnosModel(XOSResource):
-    provides = "tosca.nodes.OnosModel"
-    xos_model = OnosModel
-    copyin_props = ['name', 'onos_ip', 'onos_port', 'onos_username', 'onos_password', 'onos_type']
-
-class XOSvNaaSBandwithProfile(XOSResource):
-    provides = "tosca.nodes.BandwidthProfile"
-    xos_model = BandwidthProfile
-    copyin_props = ['cbs', 'ebs', 'cir', 'eir', 'name']
-
-class XOSvNaaSELine(XOSResource):
-    provides = "tosca.nodes.ELine"
-    xos_model = ELine
-    copyin_props = ['name', 'connect_point_1_id', 'connect_point_2_id', 'vlanids', 'cord_site_name', 'bwp']
\ No newline at end of file
diff --git a/xos/vnaas-onboard.yaml b/xos/vnaas-onboard.yaml
index 28eda72..5b1a03c 100755
--- a/xos/vnaas-onboard.yaml
+++ b/xos/vnaas-onboard.yaml
@@ -29,9 +29,4 @@
           base_url: file:///opt/xos_services/vnaas/xos/
           # The following will concatenate with base_url automatically, if
           # base_url is non-null.
-          xproto: ./
-          synchronizer: synchronizer/manifest
-          synchronizer_run: vnaas-synchronizer.py
-          tosca_resource: tosca/resources/vnaasservice.py
-          tosca_custom_types: vnaas.yaml
           
\ No newline at end of file
diff --git a/xos/vnaas.m4 b/xos/vnaas.m4
deleted file mode 100755
index aa51536..0000000
--- a/xos/vnaas.m4
+++ /dev/null
@@ -1,220 +0,0 @@
-
-# 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
-
-# compile this with "m4 vnaas.m4 > vnaas.yaml"
-
-# include macros
-include(macros.m4)
-
-node_types:
-
-    tosca.nodes.BandwidthProfile:
-        derived_from: tosca.nodes.Root
-        description: >
-            CORD: The E-CORD bandwidth profile.
-        capabilities:
-        properties:
-            no-delete:
-                type: boolean
-                default: false
-                description: Do not allow Tosca to delete this object
-            no-create:
-                type: boolean
-                default: false
-                description: Do not allow Tosca to create this object
-            no-update:
-                type: boolean
-                default: false
-                description: Do not allow Tosca to update this object
-            replaces:
-                type: string
-                required: false
-                descrption: Replaces/renames this object
-            cbs:
-                type: integer
-                required: false
-            ebs:
-                type: integer
-                required: false
-            cir:
-                type: integer
-                required: false
-            eir:
-                type: integer
-                required: false
-            name:
-                type: string
-                required: true
-
-    tosca.nodes.UserNetworkInterface:
-        derived_from: tosca.nodes.Root
-        description: >
-            CORD: The ecord user netowrk interface
-        capabilities:
-        properties:
-            no-delete:
-                type: boolean
-                default: false
-                description: Do not allow Tosca to delete this object
-            no-create:
-                type: boolean
-                default: false
-                description: Do not allow Tosca to create this object
-            no-update:
-                type: boolean
-                default: false
-                description: Do not allow Tosca to update this object
-            replaces:
-                type: string
-                required: false
-                descrption: Replaces/renames this object
-            cpe_id:
-                type: string
-                required: false
-            tenant:
-                type: string
-                required: true
-            name:
-                type: string
-                required: true
-            latlng:
-                type: string
-                required: false
-
-    tosca.nodes.OnosModel:
-        derived_from: tosca.nodes.Root
-        description: >
-            CORD: The ecord ONOS model
-        capabilities:
-        properties:
-            no-delete:
-                type: boolean
-                default: false
-                description: Do not allow Tosca to delete this object
-            no-create:
-                type: boolean
-                default: false
-                description: Do not allow Tosca to create this object
-            no-update:
-                type: boolean
-                default: false
-                description: Do not allow Tosca to update this object
-            replaces:
-                type: string
-                required: false
-                descrption: Replaces/renames this object
-            name:
-                type: string
-                required: false
-            onos_ip:
-                type: string
-                required: false
-            onos_port:
-                type: integer
-                required: false
-            onos_username:
-                type: string
-                required: false
-            onos_password:
-                type: string
-                required: false
-            onos_type:
-                type: string
-                required: false
-
-    tosca.nodes.EnterpriseLocation:
-        derived_from: tosca.nodes.Root
-        description: >
-            CORD: The ecord enterprise location
-        capabilities:
-        properties:
-            no-delete:
-                type: boolean
-                default: false
-                description: Do not allow Tosca to delete this object
-            no-create:
-                type: boolean
-                default: false
-                description: Do not allow Tosca to create this object
-            no-update:
-                type: boolean
-                default: false
-                description: Do not allow Tosca to update this object
-            replaces:
-                type: string
-                required: false
-                descrption: Replaces/renames this object
-            name:
-                type: string
-                required: false
-            cord_site_ip:
-                type: string
-                required: false
-            cord_site_port:
-                type: integer
-                required: false
-            cord_site_username:
-                type: string
-                required: false
-            cord_site_password:
-                type: string
-                required: false
-            cord_site_type:
-                type: string
-                required: false
-
-    tosca.nodes.ELine:
-        derived_from: tosca.nodes.Root
-        description: >
-            CORD: The ecord Ethernet Virtual Private Line
-        capabilities:
-        properties:
-            no-delete:
-                type: boolean
-                default: false
-                description: Do not allow Tosca to delete this object
-            no-create:
-                type: boolean
-                default: false
-                description: Do not allow Tosca to create this object
-            no-update:
-                type: boolean
-                default: false
-                description: Do not allow Tosca to update this object
-            replaces:
-                type: string
-                required: false
-                descrption: Replaces/renames this object
-            name:
-                type: string
-                required: false
-            connect_point_1_id:
-                type: string
-                required: false
-            connect_point_2_id:
-                type: string
-                required: false
-            vlanids:
-                type: string
-                required: false
-            cord_site_name:
-                type: string
-                required: false
-            bwp:
-                type: string
-                required: false
\ No newline at end of file
diff --git a/xos/vnaas.yaml b/xos/vnaas.yaml
deleted file mode 100644
index 3b1268a..0000000
--- a/xos/vnaas.yaml
+++ /dev/null
@@ -1,251 +0,0 @@
-
-# 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
-
-# compile this with "m4 vnaas.m4 > vnaas.yaml"
-
-# include macros
-
-# 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.
-
-
-# Note: Tosca derived_from isn't working the way I think it should, it's not
-#    inheriting from the parent template. Until we get that figured out, use
-#    m4 macros do our inheritance
-
-
-# Service
-
-
-# Subscriber
-
-
-
-
-# end m4 macros
-
-
-
-node_types:
-
-    tosca.nodes.BandwidthProfile:
-        derived_from: tosca.nodes.Root
-        description: >
-            CORD: The E-CORD bandwidth profile.
-        capabilities:
-        properties:
-            no-delete:
-                type: boolean
-                default: false
-                description: Do not allow Tosca to delete this object
-            no-create:
-                type: boolean
-                default: false
-                description: Do not allow Tosca to create this object
-            no-update:
-                type: boolean
-                default: false
-                description: Do not allow Tosca to update this object
-            replaces:
-                type: string
-                required: false
-                descrption: Replaces/renames this object
-            cbs:
-                type: integer
-                required: false
-            ebs:
-                type: integer
-                required: false
-            cir:
-                type: integer
-                required: false
-            eir:
-                type: integer
-                required: false
-            name:
-                type: string
-                required: true
-
-    tosca.nodes.UserNetworkInterface:
-        derived_from: tosca.nodes.Root
-        description: >
-            CORD: The ecord user netowrk interface
-        capabilities:
-        properties:
-            no-delete:
-                type: boolean
-                default: false
-                description: Do not allow Tosca to delete this object
-            no-create:
-                type: boolean
-                default: false
-                description: Do not allow Tosca to create this object
-            no-update:
-                type: boolean
-                default: false
-                description: Do not allow Tosca to update this object
-            replaces:
-                type: string
-                required: false
-                descrption: Replaces/renames this object
-            cpe_id:
-                type: string
-                required: false
-            tenant:
-                type: string
-                required: true
-            name:
-                type: string
-                required: true
-            latlng:
-                type: string
-                required: false
-
-    tosca.nodes.OnosModel:
-        derived_from: tosca.nodes.Root
-        description: >
-            CORD: The ecord ONOS model
-        capabilities:
-        properties:
-            no-delete:
-                type: boolean
-                default: false
-                description: Do not allow Tosca to delete this object
-            no-create:
-                type: boolean
-                default: false
-                description: Do not allow Tosca to create this object
-            no-update:
-                type: boolean
-                default: false
-                description: Do not allow Tosca to update this object
-            replaces:
-                type: string
-                required: false
-                descrption: Replaces/renames this object
-            name:
-                type: string
-                required: false
-            onos_ip:
-                type: string
-                required: false
-            onos_port:
-                type: integer
-                required: false
-            onos_username:
-                type: string
-                required: false
-            onos_password:
-                type: string
-                required: false
-            onos_type:
-                type: string
-                required: false
-
-    tosca.nodes.EnterpriseLocation:
-        derived_from: tosca.nodes.Root
-        description: >
-            CORD: The ecord enterprise location
-        capabilities:
-        properties:
-            no-delete:
-                type: boolean
-                default: false
-                description: Do not allow Tosca to delete this object
-            no-create:
-                type: boolean
-                default: false
-                description: Do not allow Tosca to create this object
-            no-update:
-                type: boolean
-                default: false
-                description: Do not allow Tosca to update this object
-            replaces:
-                type: string
-                required: false
-                descrption: Replaces/renames this object
-            name:
-                type: string
-                required: false
-            cord_site_ip:
-                type: string
-                required: false
-            cord_site_port:
-                type: integer
-                required: false
-            cord_site_username:
-                type: string
-                required: false
-            cord_site_password:
-                type: string
-                required: false
-            cord_site_type:
-                type: string
-                required: false
-
-    tosca.nodes.ELine:
-        derived_from: tosca.nodes.Root
-        description: >
-            CORD: The ecord Ethernet Virtual Private Line
-        capabilities:
-        properties:
-            no-delete:
-                type: boolean
-                default: false
-                description: Do not allow Tosca to delete this object
-            no-create:
-                type: boolean
-                default: false
-                description: Do not allow Tosca to create this object
-            no-update:
-                type: boolean
-                default: false
-                description: Do not allow Tosca to update this object
-            replaces:
-                type: string
-                required: false
-                descrption: Replaces/renames this object
-            name:
-                type: string
-                required: false
-            connect_point_1_id:
-                type: string
-                required: false
-            connect_point_2_id:
-                type: string
-                required: false
-            vlanids:
-                type: string
-                required: false
-            cord_site_name:
-                type: string
-                required: false
-            bwp:
-                type: string
-                required: false
\ No newline at end of file