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 java.util.List;
11
12 import org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.MapNotify;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.MapRequest;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.rloc.container.Rloc;
15 import org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.transport.address.TransportAddress;
16
17 /**
18 * An interface for dealing with a map notify message.
19 */
20 public interface IMapNotifyHandler {
21 /**
22 * Handle map-notify message
23 *
24 * @param mapNotify
25 * The map-notify message
26 *
27 * @param rlocs
28 * A list of RLOCs which need to be notified
29 */
30 void handleMapNotify(MapNotify mapNotify, List<TransportAddress> rlocs);
31
32 /**
33 * Handle Solicit Map Request message
34 *
35 * @param mapRequest
36 * the SMR message
37 *
38 * @param subscriber
39 * The address of the subscriber that should be SMRed
40 */
41 void handleSMR(MapRequest mapRequest, Rloc subscriber);
42 }