Ask is moving to Stack Overflow and Serverfault.com! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode

0

Packet Out to OVS

asked 2016-06-01 11:46:37 -0700

monicarajasekaran gravatar image

Hi,

I am using PacketProcessingService.transmitPacket() to send a packet out from my application to my OVS. But I do not see it received on the OVS side. I have configured the right datapath ID on the OVS side. The logic I am using is:

private PacketProcessingService serviceval;
public static final String Testing = "123123123123123123123123123";
BigInteger datapathId = new BigInteger("0123456789abcdef", 16);
InstanceIdentifier<node> nodeInstId = identifierFromDatapathId(datapathId);
TransmitPacketInput input = new TransmitPacketInputBuilder() //
.setNode(new NodeRef(nodeInstId)) //
.setPayload(Testing.getBytes()) //
.build();
serviceval.transmitPacket(input);

Any idea what might be wrong ?

Thanks.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-06-02 09:43:38 -0700

monicarajasekaran gravatar image

If anyone else faces the same problem, you have to setEgress in order to transmit the packet.

.setEgress(nEgressConfRef)

Where nEgressConfRef is of type NodeConnectorRef.

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2016-06-01 11:46:37 -0700

Seen: 26 times

Last updated: Jun 02 '16