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

set_field vlan_vid not set correctly

asked 2015-07-28 11:01:00 -0800

jpete2477 gravatar image

updated 2015-07-28 16:00:24 -0800

I'm calling a push-vlan-action via xml to Open Daylight. The resulting flow looks like this:

cookie=0x0, duration=4.823s, table=0, npackets=n/a, nbytes=445, priority=1,inport=12 actions=pushvlan:0x88a8,setfield:4162->vlanvid,output:1

If I do the same values using ovs directly on the switch I get this flow:

cookie=0x0, duration=4.823s, table=0, npackets=n/a, nbytes=445, priority=1,inport=12 actions=pushvlan:0x88a8,setfield:66->vlanvid,output:1

Note that the setfield value for the vlanvid is different. I'm providing a vlan id of 66 for both but the odl flow has 4162. With this flow in place I can't get network traffic to flow across the switch. Any idea why this is happening.

Thanks

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-07-28 16:00:02 -0800

jpete2477 gravatar image

So I'll provide my own answer here...Starting with OpenFlow 1.2, OVS displays VLANs as 4096 + VLAN (4096 + 66 = 4162). This has to do with the OpenFlow specifications introducing set_field as a generic action using a format called OXM TLV. I was able to get network to flow with the vlan_vid as 66 and as 4162.

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

Question Tools

Follow
1 follower

Stats

Asked: 2015-07-28 11:01:00 -0800

Seen: 365 times

Last updated: Jul 28 '15