Hi,
I think, the connection with the controller may have gone wrong.
For example, ofctl_rest (ryu/app/ofctl_rest.py) app start-up already?
> curl -X POST -d '{"dpid": "7", "match": {"ip_dscp": "46"},
And, OFspec1.3says that OXM_OF_IP_DSCP is allowed only if it is preceded
by another entry with ETH TYPE=0x0800 or ETH TYPE=0x86dd.
So, please correct match field as follows.
for IPv4: "match":{"ip_dscp":46, "eth_type":2048}
or
for IPv6: "match":{"ip_dscp":46, "eth_type":34525}
Just for your infomation, how to use ofctl_rest app(and exapmle of curl) is
described in the following document.
https://ryu.readthedocs.org/en/latest/app/ofctl_rest.html
thanks,
On 2016年02月03日 09:10, Le Tran Duc wrote:
> Hello,
>
> I am trying to add a flow entry to a switch with following command:
>
> curl -X POST -d '{"dpid": "7", "match": {"ip_dscp": "46"}, "actions":
> [{"type": "OUTPUT "," port ":" 4 "}]} '
> http://localhost:8080/stats/flowentry/add
>
> I just want to send the packets that have ip_dscp =46 to the out_port = 4.
>
> But I got the error:
>
>
>
>
> Please help me to solve it.
>
> Thank you.
>
> --
> Le Tran Duc
> The Bonch-Bruevich Saint - Petersburg State University of Telecommunications
>
>
>
> Sent with MailTrack
> <https://mailtrack.io/install?source=signature&lang=en&[email protected]&idSignature=22>
>
>
> ------------------------------------------------------------------------------
> 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=267308311&iu=/4140
>
>
>
> _______________________________________________
> Ryu-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>
------------------------------------------------------------------------------
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=267308311&iu=/4140
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel