2 * Copyright © 2016, 2017 Hewlett Packard Enterprise, Co. 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.vpnmanager.api;
11 import java.math.BigInteger;
12 import javax.annotation.Nullable;
15 * ICentralizedSwitchProvider allows to create or interrogate centralized
16 * switch:router mappings.<br>
17 * The centralized switch is currently implemented using NAPT switch models
18 * residing in natservice bundle. As the roles of centralized switch will grow
19 * beyond NAT use cases, the associated models and logic need to be renamed
20 * and moved to either vpnmanager or new bundle as part of Carbon model changes.
22 public interface ICentralizedSwitchProvider {
25 * Get the primary switch selected for the router if it has previously been
28 * @param routerName The router's name.
29 * @return The primary switch id.
32 BigInteger getPrimarySwitchForRouter(String routerName);