2 * Copyright (c) 2014, 2015 Red Hat, Inc. and others. All rights reserved.
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
9 package org.opendaylight.netvirt.openstack.netvirt.api;
11 import java.net.InetAddress;
16 public interface Router {
18 void addInterface(String interfaceName, InetAddress address, int mask);
20 void addInterface(String interfaceName, String macAddress, InetAddress address, int mask);
22 void updateInterface(String interfaceName, InetAddress address, int mask);
24 void updateInterface(String interfaceName, String macAddress, InetAddress address, int mask);
26 void removeInterface(String interfaceName);
28 void addRoute(String destinationCidr, InetAddress nextHop);
30 void addRoute(String destinationCidr, InetAddress nextHop, Integer priority);
32 void removeRoute(String destinationCidr, InetAddress nextHop);
34 void removeRoute(String destinationCidr, InetAddress nextHop, Integer priority);
36 void addDefaultRoute(InetAddress nextHop);
38 void addDefaultRoute(InetAddress nextHop, Integer priority);
40 void addNatRule(InetAddress matchAddress, InetAddress rewriteAddress);