Class LabeledUnicastIpv4RIBSupport

    • Method Detail

      • extractPrefix

        public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix extractPrefix​(org.opendaylight.yangtools.yang.data.api.schema.DataContainerNode<? extends org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument> route,
                                                                                                                         org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier prefixTypeNid)
      • emptyRoutesContainer

        public LabeledUnicastRoutes emptyRoutesContainer()
        Description copied from interface: RIBSupport
        Return the table-type-specific empty routes container, as augmented into the bgp-peer model under /peer/effect-rib-in/tables/routes choice node/routes container. This needs to include all the skeleton nodes under which the individual routes will be stored.
        Returns:
        Protocol-specific container in the routes, may not be null.
      • extractAdjRibInRoutes

        public Map<LabeledUnicastRouteKey,​LabeledUnicastRoute> extractAdjRibInRoutes​(Routes routes)
        Description copied from interface: RIBSupport
        Extract a route list from the adj-rib-in instantiation of table routes.
        Parameters:
        routes - Table route choice
        Returns:
        A potentially empty list of routes
      • processDestination

        protected Collection<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifierWithPredicates> processDestination​(org.opendaylight.mdsal.dom.api.DOMDataTreeWriteTransaction tx,
                                                                                                                                              org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier routesPath,
                                                                                                                                              org.opendaylight.yangtools.yang.data.api.schema.ContainerNode destination,
                                                                                                                                              org.opendaylight.yangtools.yang.data.api.schema.ContainerNode attributes,
                                                                                                                                              RIBSupport.ApplyRoute function)
        Specified by:
        processDestination in class AbstractRIBSupport<C extends Routes & org.opendaylight.yangtools.yang.binding.DataObject,​S extends org.opendaylight.yangtools.yang.binding.ChildOf<? super C> & LabeledUnicastRoutesList,​LabeledUnicastRoute,​LabeledUnicastRouteKey>
      • extractLabel

        public static List<LabelStack> extractLabel​(org.opendaylight.yangtools.yang.data.api.schema.DataContainerNode<? extends org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument> route,
                                                    org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier labelStackNid,
                                                    org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier labelValueNid)
      • createRouteListKey

        public final LabeledUnicastRouteKey createRouteListKey​(PathId pathId,
                                                               String routeKey)
        Description copied from interface: RIBSupport
        Construct a Route List Key using new path Id for Families.
        Parameters:
        pathId - The path identifier
        routeKey - RouteKey
        Returns:
        route list Key (RouteKey + pathId)
      • extractPathId

        public final PathId extractPathId​(LabeledUnicastRouteKey routeListKey)
        Description copied from interface: RIBSupport
        Given a route list key, return the associated path ID.
        Parameters:
        routeListKey - Route list key
        Returns:
        Path ID
      • extractRouteKey

        public final String extractRouteKey​(LabeledUnicastRouteKey routeListKey)
        Description copied from interface: RIBSupport
        Given a route list key, return the associated path ID.
        Parameters:
        routeListKey - Route list key
        Returns:
        RouteKey