Class 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 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.controller.md.sal.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