Add Interfaces for Openstack L3 forwarding
[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 import java.net.InterfaceAddress;
15 import java.util.Set;
16
17 /**
18  * A Router
19  */
20 public interface Router {
21
22   void addInterface(String interfaceName, Set<InterfaceAddress> addresses);
23
24   void addInterface(String interfaceName, String macAddress, Set<InterfaceAddress> addresses);
25
26   void updateInterface(String interfaceName, Set<InterfaceAddress> addresses);
27
28   void updateInterface(String interfaceName, String macAddress, Set<InterfaceAddress> addresses);
29
30   void removeInterface(String interfaceName);
31
32   void addRoute(InterfaceAddress destination, InetAddress nextHop);
33
34   void addRoute(InterfaceAddress destination, InetAddress nextHop, Integer priority);
35
36   void removeRoute(InterfaceAddress destination, InetAddress nextHop);
37
38   void removeRoute(InterfaceAddress destination, InetAddress nextHop, Integer priority);
39
40   void addDefaultRoute(InetAddress nextHop);
41
42   void addDefaultRoute(InetAddress nextHop, Integer priority);
43
44   void addNatRule(InetAddress matchAddress, InetAddress rewriteAddress);
45
46 }