use of org.onosproject.net.flow.criteria.MplsCriterion in project fabric-tna by stratum.
the class ForwardingObjectiveTranslator method mplsRule.
private void mplsRule(ForwardingObjective obj, Set<Criterion> criteriaWithMeta, ObjectiveTranslation.Builder resultBuilder) throws FabricPipelinerException {
final MplsCriterion mplsCriterion = (MplsCriterion) criterionNotNull(criteriaWithMeta, Criterion.Type.MPLS_LABEL);
final TrafficSelector selector = DefaultTrafficSelector.builder().add(mplsCriterion).build();
resultBuilder.addFlowRule(flowRule(obj, P4InfoConstants.FABRIC_INGRESS_FORWARDING_MPLS, selector));
}
Aggregations