Mahesh Poojary S
Committed by Mahesh Poojary Huawei

[ONOS-3117] Listen service function events in VtnRscManager

Change-Id: I7a7392999765d3c44806311e43e93ee40118adbf
......@@ -15,13 +15,14 @@
*/
package org.onosproject.vtnrsc.portchain;
import org.onosproject.event.ListenerService;
import org.onosproject.vtnrsc.PortChain;
import org.onosproject.vtnrsc.PortChainId;
/**
* Service for interacting with the inventory of port chains.
*/
public interface PortChainService {
public interface PortChainService extends ListenerService<PortChainEvent, PortChainListener> {
/**
* Returns if the port chain is existed.
......
......@@ -18,32 +18,20 @@ package org.onosproject.vtnrsc.service;
import java.util.Iterator;
import org.onlab.packet.MacAddress;
import org.onosproject.event.ListenerService;
import org.onosproject.net.Device;
import org.onosproject.net.DeviceId;
import org.onosproject.net.HostId;
import org.onosproject.vtnrsc.SegmentationId;
import org.onosproject.vtnrsc.TenantId;
import org.onosproject.vtnrsc.VirtualPortId;
import org.onosproject.vtnrsc.event.VtnRscEvent;
import org.onosproject.vtnrsc.event.VtnRscListener;
/**
* Service for interacting with the inventory of Vtn resource.
*/
public interface VtnRscService {
/**
* Adds the specified listener.
*
* @param listener VtnRsc listener
*/
void addListener(VtnRscListener listener);
/**
* Removes the specified listener.
*
* @param listener VtnRsc listener
*/
void removeListener(VtnRscListener listener);
public interface VtnRscService extends ListenerService<VtnRscEvent, VtnRscListener> {
/**
* Returns the SegmentationId of tenant.
*
......