I don't see an OpenFlow 1.0 error code for the latter. I don't think it's really an error.
On Sat, Sep 29, 2012 at 12:32:16PM -0700, Rob Sherwood wrote: > There are a number of cases that should result in an error code with > bad port. One if is it doesn't exist. Another if if you try to send > out a port that is the same as the in_port. > > - Rob > . > > On Sat, Sep 29, 2012 at 3:34 AM, Reid Price <[email protected]> wrote: > > Off the top of my head, I would check to see what the exact definition of > > 'invalid' is. Your subject seems to imply it is the same as 'does not > > exist'. What if you do port 'abc'? > > > > On Sep 29, 2555 BE, at 7:55, bhaskar jain <[email protected]> > > wrote: > > > > Hi, > > > > I am trying to make a OF 1.0 conforming switch. Am unable to check this > > condition: > > > > must return a of_error_msg with OFPET_BAD_ACTION type, OFPBAC_BAD_OUT_PORT > > code if a flow mod message contains an invalid port. (Section 4.6) > > > > From ovs-ofctl tool, we can set a bad output port but I don't see any > > incoming error code. Is there a way to test this scenario. Thanks. > > > > bash-3.00# ./ovs-ofctl mod-flows sw0 > > in_port=6,idle_timeout=30,actions=output:33 -v > > Oct 07 05:07:25|00001|ofctl|INFO|connecting to > > unix:/var/run/openvswitch/sw0.mgmt > > Oct 07 05:07:25|00002|vconn|DBG|unix:/var/run/openvswitch/sw0.mgmt: sent > > (Success): hello (xid=0x5165d): > > Oct 07 05:07:25|00003|vconn|DBG|unix:/var/run/openvswitch/sw0.mgmt: > > received: hello (xid=0x45b82): > > Oct 07 05:07:25|00004|vconn|DBG|unix:/var/run/openvswitch/sw0.mgmt: > > negotiated OpenFlow version 0x01 (we support versions 0x01 to 0x01 > > inclusive, peer no later than version 0x01) > > Oct 07 05:07:25|00005|vconn|DBG|unix:/var/run/openvswitch/sw0.mgmt: sent > > (Success): flow_mod (xid=0xa9f8e):in_port=6, MOD: cookie:0x0 idle:30 hard:0 > > pri:32768 buf:0xffffffff flags:0 actions=output:33 > > > > > > > > -- > > With best regards, > > Bhaskar. > > > > _______________________________________________ > > openflow-discuss mailing list > > [email protected] > > https://mailman.stanford.edu/mailman/listinfo/openflow-discuss > > > > > > _______________________________________________ > > openflow-discuss mailing list > > [email protected] > > https://mailman.stanford.edu/mailman/listinfo/openflow-discuss > > > _______________________________________________ > openflow-discuss mailing list > [email protected] > https://mailman.stanford.edu/mailman/listinfo/openflow-discuss _______________________________________________ openflow-discuss mailing list [email protected] https://mailman.stanford.edu/mailman/listinfo/openflow-discuss
