How do I send flows to my switch??

asked 2016-05-04 23:13:00 -0800

Ayushi gravatar image

updated 2016-05-05 00:12:00 -0800

Could you please tell me what does salFlowService.addFlow( do

Does it add flows on to my switch ...or some other function needs to be wriiten to finally send flows on to switch . What I mean is like for packet out we use

TransmitPacketInput input = new TransmitPacketInputBuilder() .setPayload(payload) .setNode(new NodeRef(egressNodePath)) .setEgress(egress) .setIngress(ingress) .build()

and finally to send packet out on to switch we use the below function

packetProcessingService.transmitPacket(input); (my packet reaches switch after this function)

so in case of sending flow

AddFlowInputBuilder builder = new AddFlowInputBuilder();

builder.setNode(new NodeRef(nodeInstanceId));







Here vendorData consists of my flow .

Now I do salFlowService.addFlow(;

So does it send the flow or it just adds flow ..finally to receive flow on to the switch what do I do ???

edit retag flag offensive close merge delete