def static Flow checkSmac(String flowId, InterfaceInfo interfaceInfo, ElanInstance elanInstance) {
new FlowBuilder >> [
flowName = ELAN1
+ barrier = false
hardTimeout = 0
id = new FlowId(flowId)
idleTimeout = 0
+ installHw = true
instructions = new InstructionsBuilder >> [
instruction = #[
new InstructionBuilder >> [
]
]
priority = 20
+ strict = true
tableId = 50 as short
]
}
def static Flow checkDmacOfSameDpn(String flowId, InterfaceInfo interfaceInfo, ElanInstance elanInstance) {
val regvalue = MetaDataUtil.getReg6ValueForLPortDispatcher(interfaceInfo.getInterfaceTag(), NwConstants.DEFAULT_SERVICE_INDEX);
new FlowBuilder >> [
+ barrier = false
flowName = ELAN1
hardTimeout = 0
id = new FlowId(flowId)
idleTimeout = 0
+ installHw = true;
instructions = new InstructionsBuilder >> [
instruction = #[
new InstructionBuilder >> [
]
]
priority = 20
+ strict = true
tableId = 51 as short
]
}
val regvalue = MetaDataUtil.getReg6ValueForLPortDispatcher(tepDetails.getInterfaceInfo().getInterfaceTag(), NwConstants.DEFAULT_SERVICE_INDEX);
val tnlId = new BigInteger(""+interfaceInfo.getInterfaceTag())
new FlowBuilder >> [
+ barrier = false
flowName = ELAN1
hardTimeout = 0
id = new FlowId(flowId)
idleTimeout = 0
+ installHw = true
instructions = new InstructionsBuilder >> [
instruction = #[
new InstructionBuilder >> [
]
]
priority = 20
+ strict = true
tableId = 51 as short
]
}