create base package 'osm_ro_plugin' for plugin
[osm/RO.git] / RO-SDN-onos_vpls / osm_rosdn_onos_vpls / sdn_assist_onos_vpls.py
index b531cfc..200e4b0 100644 (file)
@@ -27,7 +27,7 @@ import copy
 import requests
 from requests.auth import HTTPBasicAuth
 
-from osm_ro.wim.sdnconn import SdnConnectorBase, SdnConnectorError
+from osm_ro_plugin.sdnconn import SdnConnectorBase, SdnConnectorError
 
 
 class OnosVpls(SdnConnectorBase):
@@ -113,8 +113,8 @@ class OnosVpls(SdnConnectorBase):
     def create_connectivity_service(self, service_type, connection_points, **kwargs):
         self.logger.debug("create_connectivity_service, service_type: {}, connection_points: {}".
                           format(service_type, connection_points))
-        if service_type.lower() != 'elan':
-            raise SdnConnectorError('Only ELAN network type is supported by ONOS VPLS.')
+        if service_type.lower() == 'etree':
+            raise SdnConnectorError('Only ELINE/ELAN network type is supported by ONOS VPLS.')
 
         # FIXME ¿must check number of connection_points?
         service_uuid = str(uuid.uuid4())