use of org.openkilda.rulemanager.OfMetadata in project open-kilda by telstra.
the class MultiTableIngressRuleGenerator method buildInstructions.
private Instructions buildInstructions(Switch sw, List<Action> actions) {
Instructions instructions = Instructions.builder().applyActions(actions).goToTable(OfTable.POST_INGRESS).build();
addMeterToInstructions(flowPath.getMeterId(), sw, instructions);
if (flowPath.isOneSwitchFlow()) {
RoutingMetadata metadata = RoutingMetadata.builder().oneSwitchFlowFlag(true).build(sw.getFeatures());
instructions.setWriteMetadata(new OfMetadata(metadata.getValue(), metadata.getMask()));
}
return instructions;
}
Aggregations