On Fri, Mar 30, 2012 at 04:28:48PM +0530, sonny sonny wrote:
> I am using OVS 1.2.2 and when i give command
> ovs-ofctl  add-flow "dl_src=55:34:23:35:23:54 actions=mod_tp_src:-1"
>  It is not giving any error and the entry is add
> with dl_src=55:34:23:35:23:54 actions=mod_tp_src:65535 means switch itself
> modifies "-1" into 65535
> (and same is the case when i try to modify nw_tos field it ranges the
> values b/w 0-255)
> 
> 
> But when I do the same in case of vlan means when i try to add entry as:
> ovs-ofctl add-flows "dl_src=55:34:23:35:23:54 actions=mod_dl_vlan_vid:-1"
> or
> 
> ovs-ofctl add-flows "dl_src=55:34:23:35:23:54 actions=mod_dl_vlan_vid:4097"
> 
> it gives me error OFPFC_BAD_ACTION error
> 
> 
> 
> 
> Why switch is behaving differently for these cases why it is not giving bad
> action error for first two cases(mod_tp_src and mod_nw_tos).

The parameter validation in ovs-ofctl isn't perfect.  I recommend
specifying correct actions.
_______________________________________________
discuss mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to