Thank you for replying.

I tried as you said with the command:

curl -X POST -d '{"dpid": 7, "match": {"ip_dscp": 46, "eth_type": 2048},
"actions": [{"type": "OUTPUT "," port ": 4 }]} '
http://localhost:8080/stats/flowentry/add

But still got that problem. :(

I tried to start up ofctl_rest too, but got the following information.


​
So I think ofctl_rest is started up already.



Sent with MailTrack
<https://mailtrack.io/install?source=signature&lang=en&[email protected]&idSignature=22>

On Wed, Feb 3, 2016 at 10:11 AM, <[email protected]>
wrote:

> Send Ryu-devel mailing list submissions to
>         [email protected]
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         https://lists.sourceforge.net/lists/listinfo/ryu-devel
> or, via email, send a message with subject or body 'help' to
>         [email protected]
>
> You can reach the person managing the list at
>         [email protected]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Ryu-devel digest..."
>
>
> Today's Topics:
>
>    1. Re: Error when add a flow entry (Minoru TAKAHASHI)
>    2. Re: Ryu-devel Digest, Vol 51, Issue 3 (Stas Kozlov)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 03 Feb 2016 11:21:33 +0900
> From: Minoru TAKAHASHI <[email protected]>
> Subject: Re: [Ryu-devel] Error when add a flow entry
> To: Le Tran Duc <[email protected]>,
>         [email protected]
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset=UTF-8
>
> 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
> >
>
>
>
> ------------------------------
>
> Message: 2
> Date: Wed, 3 Feb 2016 10:11:32 +0300
> From: Stas Kozlov <[email protected]>
> Subject: Re: [Ryu-devel] Ryu-devel Digest, Vol 51, Issue 3
> To: [email protected]
> Cc: [email protected]
> Message-ID:
>         <CABiEHDo3fK6eBPO-OWSk+YhS=
> [email protected]>
> Content-Type: text/plain; charset="utf-8"
>
> Hi,
>
> You have to match eth_type with ip_dscp
> Check openflow spec prerequisite for details.
>
>  --
> Stas
>
> From: Le Tran Duc <[email protected]>
>
> > To: [email protected]
> > Cc:
> > Date: Wed, 3 Feb 2016 03:10:58 +0300
> > Subject: [Ryu-devel] Error when add a flow entry
> > 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
> >
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: Capture.JPG
> Type: image/jpeg
> Size: 42479 bytes
> Desc: not available
>
> ------------------------------
>
>
> ------------------------------------------------------------------------------
> 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
>
>
> End of Ryu-devel Digest, Vol 51, Issue 4
> ****************************************
>



-- 
Le Tran Duc
The Bonch-Bruevich Saint - Petersburg State University of Telecommunications
------------------------------------------------------------------------------
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

Reply via email to