Hi, all
I want to use ryu rest api to add a flow rule to OpenvSwitch.
Here is the body I use
{ "dpid": 95529493015, "table_id": 0, "idle_timeout": 0,
"hard_timeout": 1800, "priority": 11, "match":{ "in_port":2,
"tunnel_id_nxm":5001, "tun_ipv4_src":"52.193.10.12",
"dl_type":2048, "nw_src":"10.0.0.0/24", "nw_dst":"10.0.1.0/24"
}, "actions":[ { "type":"SET_FIELD",
"field":"tunnel_id_nxm", "value":5001 }, {
"type":"SET_FIELD", "field":"tun_ipv4_dst",
"value":"52.33.232.199" }, { "type":"OUTPUT",
"port": 0xfffffff8 } ]}
The log shows that "Unknown match field: tunnel_id_nxm" and "Unknown match
field: tun_ipv4_src"
These two match fields are found here:
https://github.com/osrg/ryu/blob/7a9b1be5d6874933fdfbf4e610992dd302915ed9/ryu/ofproto/nx_match.py
I guess they are corresponding with "tun_id" and "tun_src" in OpenvSwitch.
But the result is not same as I expected. So if I want to match "tun_id" and
"tun_src" in Openvswitch, which match field shoud I use?
Many thanks.
Zhao Jun
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel