blob: 6d66a49844ff1a70ed638d76a0ef2eb12040b992 [file] [log] [blame]
Pankaj Berdee73452c2013-01-03 14:57:07 -08001package net.floodlightcontroller.linkdiscovery;
2
3import java.util.List;
4
5import net.floodlightcontroller.core.INetMapStorage;
6import net.floodlightcontroller.routing.Link;
7
8public interface ILinkStorage extends INetMapStorage {
9
10 /*
11 * Link creation
12 */
13 public void update(Link link, DM_OPERATION op);
14 public void update(List<Link> List, DM_OPERATION op);
15
16 /*
17 * Add Linkinfo
18 */
19 public void update(Link link, LinkInfo linkinfo, DM_OPERATION op);
20
21 /*
22 * Get Links from Storage
23 * If dpid and port both are specified specific link is retrieved
24 * If only dpid is set all links associated with Switch are retrieved
25 */
26 public List<Link> getLinks(Long dpid, int port);
27
28 /*
29 * Delete links associated with dpid and port
30 * If only dpid is used, All links associated for switch are removed
31 * Useful for port up/down and also switch join/remove events
32 */
33 public void deleteLinks(Long dpid, int port);
34
35 /*
36 * Init with Storage conf
37 */
38 public void init(String conf);
39}