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


Add flow rule - allow TCP packets POSTMAN

asked 2016-03-21 16:32:20 -0800

Laksh0608 gravatar image


I want to add a rule to allow TCP packets on a particular port. My initial rule is set to block all packets. How do I go about doing it? I tried doing the following but it did not work. Kindly help!

Flow rule:1

<flow xmlns="urn:opendaylight:flow:inventory"> <priority>500</priority> <flow-name>Foo1</flow-name> <match> <in-port>openflow:1:1</in-port> <ethernet-match> <ethernet-type> <type>2048</type> </ethernet-type> </ethernet-match> <ipv4-destination></ipv4-destination> <tcp-destination-port>8080</tcp-destination-port> <ip-match> <ip-protocol>6</ip-protocol> </ip-match> </match> <id>10</id> <table_id>0</table_id> <instructions> <instruction> <order>0</order> <apply-actions> <action> <order>0</order> <output-action> <output-node-connector>2</output-node-connector> <max-length>65535</max-length> </output-action> </action> <action> <order>1</order> <output-action> <output-node-connector>CONTROLLER</output-node-connector> <max-length>65535</max-length> </output-action> </action> </apply-actions> </instruction> </instructions> </flow>

Flow rule 2:

<flow xmlns="urn:opendaylight:flow:inventory"> <priority>500</priority> <flow-name>Foo9</flow-name> <match> <in-port>openflow:1:2</in-port> <ethernet-match> <ethernet-type> <type>2048</type> </ethernet-type> </ethernet-match> <ipv4-destination></ipv4-destination> <tcp-destination-port>8080</tcp-destination-port> <ip-match> <ip-protocol>6</ip-protocol> </ip-match> </match> <id>9</id> <table_id>0</table_id> <instructions> <instruction> <order>0</order> <apply-actions> <action> <order>0</order> <output-action> <output-node-connector>1</output-node-connector> <max-length>65535</max-length> </output-action> </action> </apply-actions> </instruction> </instructions> </flow>

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2016-03-22 15:51:33 -0800

sterdnotshaken gravatar image

This link provides some very useful examples for what your trying to do:

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

Question Tools

1 follower


Asked: 2016-03-21 16:32:20 -0800

Seen: 465 times

Last updated: Mar 22 '16