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
8 package org.opendaylight.openflowplugin.learningswitch;
10 import org.opendaylight.mdsal.binding.api.DataBroker;
11 import org.opendaylight.mdsal.binding.api.NotificationService;
12 import org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.PacketProcessingService;
14 public interface LearningSwitchManager {
22 * Starts this manager.
27 * Set's Data Broker dependency.
30 * Data Broker is used to access overall operational and configuration tree.
33 * In simple Learning Switch handler, data broker is used to listen
34 * for changes in Openflow tables and to configure flows which will
35 * be provisioned down to the Openflow switch.
38 * inject {@link DataBroker}
40 void setDataBroker(DataBroker data);
43 * Set's Packet Processing dependency.
46 * Packet Processing service is used to send packet Out on Openflow switch.
49 * inject {@link PacketProcessingService}
51 void setPacketProcessingService(
52 PacketProcessingService packetProcessingService);
55 * Set's Notification service dependency.
58 * Notification service is used to register for listening packet-in notifications.
61 * inject {@link NotificationService}
63 void setNotificationService(NotificationService notificationService);