Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Provides SB APIs towards core

    • Code Block
      languagejava
      titleGroup Provider SB API
      /**
       * Abstraction of group provider.
       */
      public interface GroupProvider extends Provider {
          /**
           * Perform a group operation in the specified device with the
           * specified parameters.
           *
           * @param deviceId device identifier on which the batch of group
           * operations to be executed
           * @param groupOps immutable list of group operation
           */
          void performGroupOperation(DeviceId deviceId,
                                     GroupOperations groupOps);
      }
      
      
    • Code Block
      languagejava
      titleGroup Provider Notifications to Northbound
      /**
       * Service through which Group providers can inject information into
       * the core.
       */
      public interface GroupProviderService extends ProviderService<GroupProvider> {
          /**
           * Notifies core if any failure from data plane during group operations.
           *
           * @param operation offended group operation
           */
          void groupOperationFailed(GroupOperation operation);
      
      
          /**
           * Pushes the collection of group detected in the data plane along
           * with statistics.
           *
           * @param deviceId device identifier
           * @param groupEntries collection of group entries as seen in data plane
           */
          void pushGroupMetrics(DeviceId deviceId,
                             Collection<Group> groupEntries);
      }
      
      
    • CreateGroup(GroupId, Buckets)

    • ModifyGroup(GroupId, Buckets)

    • RemoveGroup(GroupId)

    • GetGroups()

OF Group Provider

  • Implements Group Providers interface

  • Builds OF GROUP_MOD (ADD/MOD/DELETE) Message depending on the API invocation and writes the message to switch driver

...