2 * Copyright (C) 2014 Red Hat, Inc.
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
8 * Authors : Dave Tucker, Flavio Fernandes
11 package org.opendaylight.ovsdb.openstack.netvirt.api;
13 import java.net.InetAddress;
14 import java.net.InterfaceAddress;
20 public interface Router {
22 void addInterface(String interfaceName, Set<InterfaceAddress> addresses);
24 void addInterface(String interfaceName, String macAddress, Set<InterfaceAddress> addresses);
26 void updateInterface(String interfaceName, Set<InterfaceAddress> addresses);
28 void updateInterface(String interfaceName, String macAddress, Set<InterfaceAddress> addresses);
30 void removeInterface(String interfaceName);
32 void addRoute(InterfaceAddress destination, InetAddress nextHop);
34 void addRoute(InterfaceAddress destination, InetAddress nextHop, Integer priority);
36 void removeRoute(InterfaceAddress destination, InetAddress nextHop);
38 void removeRoute(InterfaceAddress destination, InetAddress nextHop, Integer priority);
40 void addDefaultRoute(InetAddress nextHop);
42 void addDefaultRoute(InetAddress nextHop, Integer priority);
44 void addNatRule(InetAddress matchAddress, InetAddress rewriteAddress);