Uploaded image for project: 'OpenFlowPlugin'
  1. OpenFlowPlugin
  2. OPNFLWPLUG-657

NodeId+DatapathId in Services (remove dependency on DeviceContext)

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • General
    • None
    • Operating System: All
      Platform: All

    • 5592

    Description

      Subclasses of org.opendaylight.openflowplugin.impl.services.AbstractService should have their own field for accessing NodeId+DatapathId+version. For example these classes use NodeId/DatapathId just for logging:
      a/ org.opendaylight.openflowplugin.impl.statistics.services.dedicated.StatisticsGatheringService
      b/ org.opendaylight.openflowplugin.impl.statistics.services.dedicated.StatisticsGatheringOnTheFlyService
      c/ org.opendaylight.openflowplugin.impl.statistics.services.MatchingFlowsInTableService
      d/ ... (all other subclasses)

      Lets used DeviceState for accessing at least:

      • nodeId
      • version
      • datapathId (accesible in DeviceState.getFeatures())

      This deviceContext is propagated also to this transform utility functions but it is not necessary (propagate there only DeviceState):
      e/ org.opendaylight.openflowplugin.impl.statistics.services.compatibility.FlowStatisticsToNotificationTransformer.transformToNotification(List<MultipartReply>, DeviceContext, OpenflowVersion, TransactionId)
      f/ org.opendaylight.openflowplugin.impl.statistics.services.compatibility.GroupStatisticsToNotificationTransformer.transformToNotification(List<MultipartReply>, DeviceContext, OpenflowVersion, TransactionId)
      g/ org.opendaylight.openflowplugin.impl.statistics.services.compatibility.MeterStatisticsToNotificationTransformer.transformToNotification(List<MultipartReply>, DeviceContext, OpenflowVersion, TransactionId)
      h/ org.opendaylight.openflowplugin.impl.statistics.services.compatibility.QueueStatisticsToNotificationTransformer.transformToNotification(List<MultipartReply>, DeviceContext, OpenflowVersion, TransactionId)
      i/ org.opendaylight.openflowplugin.impl.statistics.services.compatibility.NodeConnectorStatisticsToNotificationTransformer.transformToNotification(List<MultipartReply>, DeviceContext, OpenflowVersion, TransactionId)
      j/ org.opendaylight.openflowplugin.impl.statistics.services.compatibility.QueueStatisticsToNotificationTransformer.transformToNotification(List<MultipartReply>, DeviceContext, OpenflowVersion, TransactionId)

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            tomas.slusny@pantheon.tech Tomas Slusny
            jozef.slezak@pantheon.sk Jozef Slezák
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: