Ask Your Question
0

Translating ARP Reply Flow into JSON Format or XML

asked 2015-11-29 01:12:51 -0700

Hello, I have one questions. How to translate the following hardcoded flow:

ovs-ofctl add-flow s1 “table=1, dltype=0x0806, nwdst=10.0.0.1, actions=move:NXMOFETHSRC[]>NXMOFETHDST[], moddlsrc:DE:AE:9E:68:06:D4, load:0x2>NXMOFARPOP[], move:NXMNXARPSHA[]>NXMNXARPTHA[], move:NXMOFARPSPA[]>NXMOFARPTPA[], load:0xdeae9e6806d4->NXMNXARPSHA[], load:0x0a000001->NXMOFARPSPA[], inport"

into JSON format for use using either the RESTConf interface or the PYBVC python library? The Flow's purpose is to create ARP Reply packets once an ARP Request is received. If that does not work is there any other way of installing ARP reply flows using the pybvc python library. In case you do not have answers to my questions who should I contact for more details?

Thank you, Galileo

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2015-11-29 23:18:09 -0700

sanjaykumar2891987 gravatar image

Here is one sample flow, it modifies the MAC address on incoming packet. Using this example, u can try to apply your desired action in <action> tag. Check if that helps.

{ "flow": { "priority": "20", "hard-timeout": "0", "idle-timeout": "0", "instructions": { "instruction": { "order": "0", "apply-actions": { "action": [{ "order": "0", "set-dl-dst-action": { "address": "aa:bb:cc:dd:ee:ff" } }, { "order": "1", "output-action": { "output-node-connector": "openflow:275790218380866:2" } }] } } }, "match": { "ethernet-match": { "ethernet-type": { "type": "2048" }, "ethernet-source": { "address": "11:22:33:44:55:66" }, "ethernet-destination": { "address": "1:2:3:4:5:6" } } }, "table_id": "0", "id": "3" } }

edit flag offensive delete publish link more

Your Answer

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

Add Answer

[hide preview]

Stats

Asked: 2015-11-29 01:12:51 -0700

Seen: 61 times

Last updated: Nov 29 '15