Commit 8dfe9a79 authored by Konstantinos Poulakakis's avatar Konstantinos Poulakakis
Browse files

Rename Poc1 to P4INTZSMPlugin. Remove some unnecessary configurations.

parent 1d0bf832
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -21,13 +21,11 @@ class ZSMFilterFieldEnum(Enum):


TARGET_SERVICE_TYPE_VALUES = {
    ServiceTypeEnum.SERVICETYPE_L2NM,
    ServiceTypeEnum.SERVICETYPE_INT
    ServiceTypeEnum.SERVICETYPE_L2NM
}

TELEMETRY_SERVICE_TYPE_VALUES = {
    ServiceTypeEnum.SERVICETYPE_INT,
    ServiceTypeEnum.SERVICETYPE_L2NM
    ServiceTypeEnum.SERVICETYPE_INT
}

# Map allowed filter fields to allowed values per Filter field. If no restriction (free text) None is specified
+1 −1
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@ from .ZSMHandler import ZSMHandler

LOGGER = logging.getLogger(__name__)

class Poc1(ZSMHandler):
class P4INTZSMPlugin(ZSMHandler):
    def __init__(self):
        LOGGER.info('Init Scenario')

+2 −8
Original line number Diff line number Diff line
@@ -14,21 +14,15 @@

from common.proto.context_pb2 import DeviceDriverEnum, ServiceTypeEnum
from ..zsm_handler_api.ZSMFilterFields import ZSMFilterFieldEnum
from .Poc1 import Poc1
from .P4INTZSMPlugin import P4INTZSMPlugin
from .Poc2 import Poc2

ZSM_SERVICE_HANDLERS = [
    (Poc1, [
    (P4INTZSMPlugin, [
        {
            ZSMFilterFieldEnum.TARGET_SERVICE_TYPE  : ServiceTypeEnum.SERVICETYPE_L2NM,
            ZSMFilterFieldEnum.TELEMETRY_SERVICE_TYPE : ServiceTypeEnum.SERVICETYPE_INT,
        }
    ]),
    (Poc2, [
        {
            ZSMFilterFieldEnum.TARGET_SERVICE_TYPE  : ServiceTypeEnum.SERVICETYPE_INT,
            ZSMFilterFieldEnum.TELEMETRY_SERVICE_TYPE : ServiceTypeEnum.SERVICETYPE_L2NM,
        }
    ])

]