Class CentralizedSwitchProvider
- java.lang.Object
-
- org.opendaylight.netvirt.vpnmanager.CentralizedSwitchProvider
-
- All Implemented Interfaces:
ICentralizedSwitchProvider
@Singleton public class CentralizedSwitchProvider extends java.lang.Object implements ICentralizedSwitchProvider
-
-
Constructor Summary
Constructors Constructor Description CentralizedSwitchProvider(VpnUtil vpnUtil)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable org.opendaylight.yangtools.yang.common.Uint64
getPrimarySwitchForRouter(java.lang.String routerName)
Get the primary switch selected for the router if it has previously been allocated.
-
-
-
Constructor Detail
-
CentralizedSwitchProvider
@Inject public CentralizedSwitchProvider(VpnUtil vpnUtil)
-
-
Method Detail
-
getPrimarySwitchForRouter
public @Nullable org.opendaylight.yangtools.yang.common.Uint64 getPrimarySwitchForRouter(java.lang.String routerName)
Description copied from interface:ICentralizedSwitchProvider
Get the primary switch selected for the router if it has previously been allocated.- Specified by:
getPrimarySwitchForRouter
in interfaceICentralizedSwitchProvider
- Parameters:
routerName
- The router's name.- Returns:
- The primary switch id.
-
-