Remove openflow10
[netvirt.git] / openstack / net-virt / src / main / java / org / opendaylight / ovsdb / openstack / netvirt / api / Router.java
1 /*
2  * Copyright (C) 2014 Red Hat, Inc.
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  * Authors : Dave Tucker, Flavio Fernandes
9  */
10
11 package org.opendaylight.ovsdb.openstack.netvirt.api;
12
13 import java.net.InetAddress;
14
15 /**
16  * A Router
17  */
18 public interface Router {
19
20     void addInterface(String interfaceName, InetAddress address, int mask);
21
22     void addInterface(String interfaceName, String macAddress, InetAddress address, int mask);
23
24     void updateInterface(String interfaceName, InetAddress address, int mask);
25
26     void updateInterface(String interfaceName, String macAddress, InetAddress address, int mask);
27
28     void removeInterface(String interfaceName);
29
30     void addRoute(String destinationCidr, InetAddress nextHop);
31
32     void addRoute(String destinationCidr, InetAddress nextHop, Integer priority);
33
34     void removeRoute(String destinationCidr, InetAddress nextHop);
35
36     void removeRoute(String destinationCidr, InetAddress nextHop, Integer priority);
37
38     void addDefaultRoute(InetAddress nextHop);
39
40     void addDefaultRoute(InetAddress nextHop, Integer priority);
41
42     void addNatRule(InetAddress matchAddress, InetAddress rewriteAddress);
43
44 }