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;
18 public interface Router {
20 void addInterface(String interfaceName, InetAddress address, int mask);
22 void addInterface(String interfaceName, String macAddress, InetAddress address, int mask);
24 void updateInterface(String interfaceName, InetAddress address, int mask);
26 void updateInterface(String interfaceName, String macAddress, InetAddress address, int mask);
28 void removeInterface(String interfaceName);
30 void addRoute(String destinationCidr, InetAddress nextHop);
32 void addRoute(String destinationCidr, InetAddress nextHop, Integer priority);
34 void removeRoute(String destinationCidr, InetAddress nextHop);
36 void removeRoute(String destinationCidr, InetAddress nextHop, Integer priority);
38 void addDefaultRoute(InetAddress nextHop);
40 void addDefaultRoute(InetAddress nextHop, Integer priority);
42 void addNatRule(InetAddress matchAddress, InetAddress rewriteAddress);