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;
16 import java.util.UUID;
19 * A Router that is Multi-Tenant Aware
20 * Each tenant has a Unique Identifier which is used to isolate interfaces/routes
22 public interface MultiTenantAwareRouter {
24 void addInterface(UUID tenantId, String interfaceName, Set<InterfaceAddress> addresses);
26 void addInterface(UUID tenantId, String interfaceName, String macAddress, Set<InterfaceAddress> addresses);
28 void updateInterface(UUID tenantId, String interfaceName, Set<InterfaceAddress> addresses);
30 void updateInterface(UUID tenantId, String interfaceName, String macAddress, Set<InterfaceAddress> addresses);
32 void removeInterface(UUID tenantId, String interfaceName);
34 void addRoute(UUID tenantId, InterfaceAddress destination, InetAddress nextHop);
36 void addRoute(UUID tenantId, InterfaceAddress destination, InetAddress nextHop, Integer priority);
38 void removeRoute(UUID tenantId, InterfaceAddress destination, InetAddress nextHop);
40 void removeRoute(UUID tenantId, InterfaceAddress destination, InetAddress nextHop, Integer priority);
42 void addDefaultRoute(UUID tenantId, InetAddress nextHop);
44 void addDefaultRoute(UUID tenantId, InetAddress nextHop, Integer priority);