Class InterVpnLinkLocator
- java.lang.Object
-
- org.opendaylight.netvirt.vpnmanager.intervpnlink.InterVpnLinkLocator
-
@Singleton public class InterVpnLinkLocator extends java.lang.Object
This class is responsible for searching the best possible DPN(s) to place an InterVpnLink.
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String
NBR_OF_DPNS_PROPERTY_NAME
-
Constructor Summary
Constructors Constructor Description InterVpnLinkLocator(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, InterVpnLinkCache interVpnLinkCache, VpnUtil vpnUtil)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<InterVpnLinkDataComposite>
findInterVpnLinksSameGroup(InterVpnLink ivpnLinkToMatch, java.util.List<InterVpnLinkDataComposite> interVpnLinks)
java.util.List<org.opendaylight.yangtools.yang.common.Uint64>
selectSuitableDpns(InterVpnLink interVpnLink)
Retrieves a list of randomly selected DPNs avoiding to select DPNs where there is already an InterVpnLink of the same group (i.e., an InterVpnLink that links similar L3VPNs).
-
-
-
Field Detail
-
NBR_OF_DPNS_PROPERTY_NAME
protected static final java.lang.String NBR_OF_DPNS_PROPERTY_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
InterVpnLinkLocator
@Inject public InterVpnLinkLocator(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, InterVpnLinkCache interVpnLinkCache, VpnUtil vpnUtil)
-
-
Method Detail
-
selectSuitableDpns
public java.util.List<org.opendaylight.yangtools.yang.common.Uint64> selectSuitableDpns(InterVpnLink interVpnLink)
Retrieves a list of randomly selected DPNs avoiding to select DPNs where there is already an InterVpnLink of the same group (i.e., an InterVpnLink that links similar L3VPNs).- Parameters:
interVpnLink
- InterVpnLink to find suitable DPNs for.- Returns:
- the list of the selected DPN Ids
-
findInterVpnLinksSameGroup
public java.util.List<InterVpnLinkDataComposite> findInterVpnLinksSameGroup(InterVpnLink ivpnLinkToMatch, java.util.List<InterVpnLinkDataComposite> interVpnLinks)
-
-