X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FRO.git;a=blobdiff_plain;f=RO-SDN-onos_vpls%2Fosm_rosdn_onos_vpls%2Fsdn_assist_onos_vpls.py;h=200e4b080d26e72fa3dbacb895d0a6a3fa76d344;hp=b531cfc6b1b0d03d837877893d1b28c9bae04078;hb=7277486065c905f91477bb064da86855a8fa269a;hpb=779918189253db78a8ad35c06a5937e7de849173 diff --git a/RO-SDN-onos_vpls/osm_rosdn_onos_vpls/sdn_assist_onos_vpls.py b/RO-SDN-onos_vpls/osm_rosdn_onos_vpls/sdn_assist_onos_vpls.py index b531cfc6..200e4b08 100644 --- a/RO-SDN-onos_vpls/osm_rosdn_onos_vpls/sdn_assist_onos_vpls.py +++ b/RO-SDN-onos_vpls/osm_rosdn_onos_vpls/sdn_assist_onos_vpls.py @@ -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())