2 * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.openflowplugin.learningswitch;
11 import org.opendaylight.controller.md.sal.binding.api.DataBroker;
12 import org.opendaylight.controller.sal.binding.api.NotificationService;
13 import org.opendaylight.controller.sal.binding.api.data.DataBrokerService;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.PacketProcessingService;
19 public interface LearningSwitchManager {
32 * Set's Data Broker dependency.
34 * Data Broker is used to access overal operational and configuration
37 * In simple Learning Switch handler, data broker is used to listen
38 * for changes in Openflow tables and to configure flows which will
39 * be provisioned down to the Openflow switch.
41 * inject {@link DataBroker}
45 void setDataBroker(DataBroker data);
48 * Set's Packet Processing dependency.
50 * Packet Processing service is used to send packet Out on Openflow
53 * inject {@link PacketProcessingService}
55 * @param packetProcessingService
57 void setPacketProcessingService(
58 PacketProcessingService packetProcessingService);
61 * Set's Notification service dependency.
63 * Notification service is used to register for listening
64 * packet-in notifications.
66 * inject {@link NotificationService}
68 * @param notificationService
70 void setNotificationService(NotificationService notificationService);