On Mon, Jul 28, 2014 at 6:14 PM, Wenqin SHAO <[email protected]> wrote:
> match normalisation resolved: > > checked OF norms again, now working, the right way of formulating rules > should be: > > sudo ovs-ofctl -O OpenFlow13 add-flow s1 > ip,tcp,dl_src=00:00:00:00:aa:bb,dl_dst=aa:aa:00:00:00:00,nw_src=192.168.0.1,nw_dst=8.8.8.8,tp_src=7788,actions=output:1 > > > > On Mon, Jul 28, 2014 at 12:02 PM, Wenqin SHAO <[email protected]> > wrote: > >> Hi list, >> >> New to here, and I encountered some seem-to-be-very-basic problems >> concerning flow installation. Here it goes: >> >> First, it's about matching normalisation, I tried to install a rule >> manually via ovs-ofctl. >> >> sudo ovs-ofctl -O OpenFlow13 add-flow s1 >> dl_src=00:00:00:00:aa:bb,dl_dst=aa:aa:00:00:00:00,nw_src=192.168.0.1,nw_dst=8.8.8.8,tp_src=7788,actions=output:1 >> 2014-07-28T09:40:16Z|00001|ofp_util|INFO|normalization changed ofp_match, >> details: >> 2014-07-28T09:40:16Z|00002|ofp_util|INFO| pre: >> dl_src=00:00:00:00:aa:bb,dl_dst=aa:aa:00:00:00:00,nw_src=192.168.0.1,nw_dst=8.8.8.8,tp_src=7788 >> 2014-07-28T09:40:16Z|00003|ofp_util|INFO|post: >> dl_src=00:00:00:00:aa:bb,dl_dst=aa:aa:00:00:00:00 >> >> I was informed that the matching has been normalised. As we can see, only >> the datalink part of the matching is conserved. It must be more than a >> simple normalisation, I'd say. I'd appreciate explanation on that. >> >> Second issues comes with the use of set_filed option while formulating >> actions: >> >> sudo ovs-ofctl -O OpenFlow13 add-flow s1 >> actions=set_field:01:02:03:04:05:06->dl_dst,output:1 >> ovs-ofctl: 01:02:03:04:05:06-: missing `->' >> >> sudo ovs-ofctl -O OpenFlow13 add-flow s1 "actions=set_field:01:02:03:04: 05:06->dl_dst,output:1" ">" has special meaning to the shell, put it in quotes or excape it using "\" > I didn't see how I could miss the ->... >> >> Hoping someone could point out the silly mistakes I've made, I thank you >> all in advance. >> >> >> Sincerely, >> >> -- >> Wenqin SHAO >> +++++++++++++++++++++++++ >> Border 6 >> Telecom ParisTech 2013 >> Fudan University 2010 >> *--------------------------* >> >> >> >> *Ce courrier électronique et toutes les pièces jointes sont strictement >> confidentiels et destinés exclusivement au(x) destinataire(s) mentionné(s) >> ci-dessus. Si vous avez reçu ce message par erreur, ou s'il ne vous est pas >> destiné, veuillez le signaler immédiatement à l'expéditeur et effacer ce >> courrier électronique. **This e-mail message and any attachments are >> strictly confidential and intended only for the named recipient(s) above. >> If you have received this message in error, or are not the named >> recipient(s), please immediately notify the sender and delete this e-mail >> message* >> > > > > -- > Wenqin SHAO > +++++++++++++++++++++++++ > Border 6 > Telecom ParisTech 2013 > Fudan University 2010 > > * ☎* 06-17-98-76-94 > > > *--------------------------* > > > > *Ce courrier électronique et toutes les pièces jointes sont strictement > confidentiels et destinés exclusivement au(x) destinataire(s) mentionné(s) > ci-dessus. Si vous avez reçu ce message par erreur, ou s'il ne vous est pas > destiné, veuillez le signaler immédiatement à l'expéditeur et effacer ce > courrier électronique. **This e-mail message and any attachments are > strictly confidential and intended only for the named recipient(s) above. > If you have received this message in error, or are not the named > recipient(s), please immediately notify the sender and delete this e-mail > message* > > _______________________________________________ > discuss mailing list > [email protected] > http://openvswitch.org/mailman/listinfo/discuss > >
_______________________________________________ discuss mailing list [email protected] http://openvswitch.org/mailman/listinfo/discuss
