Class VpnExtraRouteHelper
- java.lang.Object
-
- org.opendaylight.netvirt.vpnmanager.api.VpnExtraRouteHelper
-
public final class VpnExtraRouteHelper extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.List<Routes>
getAllVpnExtraRoutes(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, java.lang.String vpnName, java.util.List<java.lang.String> usedRds, java.lang.String destPrefix)
static java.util.List<DestPrefixes>
getExtraRouteDestPrefixes(org.opendaylight.mdsal.binding.api.DataBroker broker, org.opendaylight.yangtools.yang.common.Uint32 vpnId)
static java.util.Optional<java.lang.String>
getRdAllocatedForExtraRoute(org.opendaylight.mdsal.binding.api.DataBroker broker, org.opendaylight.yangtools.yang.common.Uint32 vpnId, java.lang.String destPrefix, java.lang.String nextHop)
static @Nullable java.lang.Class<? extends org.opendaylight.yang.gen.v1.urn.opendaylight.genius.interfacemanager.rev160406.TunnelTypeBase>
getTunnelType(org.opendaylight.yang.gen.v1.urn.opendaylight.genius.itm.rpcs.rev160406.ItmRpcService itmRpcService, java.lang.String ifName)
static java.util.List<java.lang.String>
getUsedRds(org.opendaylight.mdsal.binding.api.DataBroker broker, org.opendaylight.yangtools.yang.common.Uint32 vpnId, java.lang.String destPrefix)
static java.util.List<java.lang.String>
getUsedRds(org.opendaylight.mdsal.binding.util.TypedReadTransaction<org.opendaylight.mdsal.binding.util.Datastore.Configuration> confTx, org.opendaylight.yangtools.yang.common.Uint32 vpnId, java.lang.String destPrefix)
static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<ExtrarouteRds>
getUsedRdsIdentifier(org.opendaylight.yangtools.yang.common.Uint32 vpnId)
static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<DestPrefixes>
getUsedRdsIdentifier(org.opendaylight.yangtools.yang.common.Uint32 vpnId, java.lang.String destPrefix)
static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<AllocatedRds>
getUsedRdsIdentifier(org.opendaylight.yangtools.yang.common.Uint32 vpnId, java.lang.String destPrefix, java.lang.String nh)
static java.util.Optional<Routes>
getVpnExtraroutes(org.opendaylight.mdsal.binding.api.DataBroker broker, java.lang.String vpnName, java.lang.String vpnRd, java.lang.String destPrefix)
static java.util.Optional<Routes>
getVpnExtraroutes(org.opendaylight.mdsal.binding.util.TypedReadTransaction<org.opendaylight.mdsal.binding.util.Datastore.Operational> operTx, java.lang.String vpnName, java.lang.String vpnRd, java.lang.String destPrefix)
static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Vpn>
getVpnToExtrarouteVpnIdentifier(java.lang.String vpnName)
static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Routes>
getVpnToExtrarouteVrfIdIdentifier(java.lang.String vpnName, java.lang.String vrfId, java.lang.String ipPrefix)
-
-
-
Method Detail
-
getVpnExtraroutes
public static java.util.Optional<Routes> getVpnExtraroutes(org.opendaylight.mdsal.binding.api.DataBroker broker, java.lang.String vpnName, java.lang.String vpnRd, java.lang.String destPrefix)
-
getVpnExtraroutes
public static java.util.Optional<Routes> getVpnExtraroutes(org.opendaylight.mdsal.binding.util.TypedReadTransaction<org.opendaylight.mdsal.binding.util.Datastore.Operational> operTx, java.lang.String vpnName, java.lang.String vpnRd, java.lang.String destPrefix) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
- Throws:
java.util.concurrent.ExecutionException
java.lang.InterruptedException
-
getVpnToExtrarouteVrfIdIdentifier
public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Routes> getVpnToExtrarouteVrfIdIdentifier(java.lang.String vpnName, java.lang.String vrfId, java.lang.String ipPrefix)
-
getVpnToExtrarouteVpnIdentifier
public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Vpn> getVpnToExtrarouteVpnIdentifier(java.lang.String vpnName)
-
getAllVpnExtraRoutes
public static java.util.List<Routes> getAllVpnExtraRoutes(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, java.lang.String vpnName, java.util.List<java.lang.String> usedRds, java.lang.String destPrefix)
-
getUsedRds
public static java.util.List<java.lang.String> getUsedRds(org.opendaylight.mdsal.binding.api.DataBroker broker, org.opendaylight.yangtools.yang.common.Uint32 vpnId, java.lang.String destPrefix)
-
getUsedRds
public static java.util.List<java.lang.String> getUsedRds(org.opendaylight.mdsal.binding.util.TypedReadTransaction<org.opendaylight.mdsal.binding.util.Datastore.Configuration> confTx, org.opendaylight.yangtools.yang.common.Uint32 vpnId, java.lang.String destPrefix) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
- Throws:
java.util.concurrent.ExecutionException
java.lang.InterruptedException
-
getUsedRdsIdentifier
public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<ExtrarouteRds> getUsedRdsIdentifier(org.opendaylight.yangtools.yang.common.Uint32 vpnId)
-
getUsedRdsIdentifier
public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<DestPrefixes> getUsedRdsIdentifier(org.opendaylight.yangtools.yang.common.Uint32 vpnId, java.lang.String destPrefix)
-
getUsedRdsIdentifier
public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<AllocatedRds> getUsedRdsIdentifier(org.opendaylight.yangtools.yang.common.Uint32 vpnId, java.lang.String destPrefix, java.lang.String nh)
-
getTunnelType
public static @Nullable java.lang.Class<? extends org.opendaylight.yang.gen.v1.urn.opendaylight.genius.interfacemanager.rev160406.TunnelTypeBase> getTunnelType(org.opendaylight.yang.gen.v1.urn.opendaylight.genius.itm.rpcs.rev160406.ItmRpcService itmRpcService, java.lang.String ifName)
-
getRdAllocatedForExtraRoute
public static java.util.Optional<java.lang.String> getRdAllocatedForExtraRoute(org.opendaylight.mdsal.binding.api.DataBroker broker, org.opendaylight.yangtools.yang.common.Uint32 vpnId, java.lang.String destPrefix, java.lang.String nextHop)
-
getExtraRouteDestPrefixes
public static java.util.List<DestPrefixes> getExtraRouteDestPrefixes(org.opendaylight.mdsal.binding.api.DataBroker broker, org.opendaylight.yangtools.yang.common.Uint32 vpnId)
-
-