provide way to extract routes from routesContainer
[bgpcep.git] / bgp / extensions / flowspec / src / main / java / org / opendaylight / protocol / bgp / flowspec / FlowspecIpv6RIBSupport.java
index 7729d8942ee6fbd9d69ae9578705c5d755d8a70d..9fd1c5011391c00200c643282131aa892d855f1c 100644 (file)
@@ -8,6 +8,7 @@
 package org.opendaylight.protocol.bgp.flowspec;
 
 import java.util.Collections;
+import java.util.List;
 import org.opendaylight.mdsal.binding.dom.codec.api.BindingNormalizedNodeSerializer;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.flowspec.rev180329.FlowspecSubsequentAddressFamily;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.flowspec.rev180329.bgp.rib.rib.loc.rib.tables.routes.FlowspecIpv6RoutesCase;
@@ -85,4 +86,9 @@ public final class FlowspecIpv6RIBSupport
     public FlowspecRouteKey createRouteListKey(final long pathId, final String routeKey) {
         return new FlowspecRouteKey(new PathId(pathId), routeKey);
     }
+
+    @Override
+    public List<FlowspecRoute> routesFromContainer(final FlowspecIpv6Routes container) {
+        return container.getFlowspecRoute();
+    }
 }