Ask Your Question
0

create a openflow flow to untag a vlan then retag it with vlanid=0

asked 2014-12-15 16:03:45 -0500

robm gravatar image

Hi I have a simple flow in place between 2 10gbe ports that just send packets coming in port 50 out 52 now I am creating packets with vlan IDs 1-4095 what i would like to do is pop the vlan tag they come in with 1-4095 and retag them with vlanid =0 is that possible?

ovs-ofctl add-flow br0 "in_port=50, actions=output:52" -O openflow13

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2014-12-15 16:43:16 -0500

robm gravatar image

updated 2014-12-16 08:47:45 -0500

ovs-ofctl add-flow br0 "in_port=52, action=mod_vlan_vid:101,output:50" -O openflow13

edit flag offensive delete link more
0

answered 2014-12-16 23:59:03 -0500

ovs-ofctl add-flow br0 "in_port=50, action=strip_vlan,push_vlan:0x8100,11,output:52" -O openflow13

Manual says: The add-flow, add-flows, and mod-flows commands require an additional field, which must be the final field specified: actions=[action][,action...]

note it's plural - try this (untested):

ovs-ofctl add-flow br0 "in_port=50, actions=strip_vlan,push_vlan:0x8100,11,output:52" -O openflow13

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-12-15 16:03:45 -0500

Seen: 14,612 times

Last updated: Dec 16 '14