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.ovsdb.openstack.netvirt.impl;
11 import org.opendaylight.ovsdb.openstack.netvirt.ConfigInterface;
12 import org.opendaylight.ovsdb.openstack.netvirt.api.MultiTenantAwareRouter;
14 import java.net.InetAddress;
15 import java.util.UUID;
16 import org.osgi.framework.BundleContext;
17 import org.osgi.framework.ServiceReference;
20 * OpenStack router implements the MultiTenantAwareRouter interfaces It provides routing functionality for multiple
21 * tenants in an OpenStack cloud
23 public class OpenstackRouter implements MultiTenantAwareRouter, ConfigInterface {
26 public void addInterface(UUID tenantId, String interfaceName, InetAddress address, int mask) {
31 public void addInterface(UUID tenantId, String interfaceName, String macAddress, InetAddress address, int mask) {
36 public void updateInterface(UUID tenantId, String interfaceName, InetAddress address, int mask) {
41 public void updateInterface(UUID tenantId, String interfaceName, String macAddress, InetAddress address, int mask) {
46 public void removeInterface(UUID tenantId, String interfaceName) {
51 public void addRoute(UUID tenantId, String destinationCidr, InetAddress nextHop) {
56 public void addRoute(UUID tenantId, String destinationCidr, InetAddress nextHop, Integer priority) {
61 public void removeRoute(UUID tenantId, String destinationCidr, InetAddress nextHop) {
66 public void removeRoute(UUID tenantId, String destinationCidr, InetAddress nextHop, Integer priority) {
71 public void addDefaultRoute(UUID tenantId, InetAddress nextHop) {
76 public void addDefaultRoute(UUID tenantId, InetAddress nextHop, Integer priority) {
81 public void addNatRule(UUID tenantId, InetAddress matchAddress, InetAddress rewriteAddress) {
86 public void setDependencies(BundleContext bundleContext, ServiceReference serviceReference) {
91 public void setDependencies(Object impl) {