Merge branch 'master' into topic/ietf_yang
[lispflowmapping.git] / mappingservice / api / src / main / java / org / opendaylight / lispflowmapping / interfaces / lisp / IMapNotifyHandler.java
1 /*
2  * Copyright (c) 2014 Contextream, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.lispflowmapping.interfaces.lisp;
9
10 import org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.MapNotify;
11 import org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.MapRequest;
12 import org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.rloc.container.Rloc;
13
14 /**
15  * An interface for dealing with a map notify message.
16  */
17 public interface IMapNotifyHandler {
18     /**
19      * Handle map-notify message
20      *
21      * @param mapNotify
22      *            The map-notify message
23      */
24     void handleMapNotify(MapNotify mapNotify);
25
26     /**
27      * Handle Solicit Map Request message
28      *
29      * @param mapRequest
30      *            the SMR message
31      *
32      * @param subscriber
33      *            The address of the subscriber that should be SMRed
34      */
35     void handleSMR(MapRequest mapRequest, Rloc subscriber);
36 }