Hi Andy, I tried this command on OVS 1.11. And the command was successful.
Here the following command is looking for a specific srcmac, dstmac, ether type and vlan id to push a mpls label on top of it. ovs-ofctl add-flow br0 in_port=1,dl_type=0x0800,dl_src=00:00:00:00:01:01,dl_dst=00:00:00:00:01:02,dl_vlan=1,actions=push_mpls:0x8847,set_field:100-\>mpls_label,output:2. Probably this could get you started. Regards, -Vasu On Tue, Oct 8, 2013 at 7:11 PM, Andy Veitch <[email protected]> wrote: > Hi, > > A general question, if anyone knows the answer or can point me to > documentation, I would appreciate it. > > I'd like to use ovs-ofctl to experiment with managing LSPs on OVS switches > (currently running 1.10 on mininet with the option -O OpenFlow12.) > > I would like to execute the OF MPLS pop and push actions along with the > set and dec MPLS TTL actions. > > I have reviewed the ovs-ofctl man page documentation, > http://openvswitch.org/cgi-bin/ovsman.cgi?page=utilities%2Fovs-ofctl.8<http://openvswitch.org/cgi-bin/ovsman.cgi?page=utilities/ovs-ofctl.8>, > to > see how I can match on an incoming MPLS label and set an outgoing label, > but I do not see anything there. I have looked around the OVS site to see > if it is elsewhere, but cannot find anything. > > I have pasted below a snippet of dpctl documentation from the CPqD site, > https://github.com/CPqD/ofsoftswitch13/wiki/Dpctl-Flow-Mod-Cases#wiki-mpls. > It includes a match on mpls_label and mols_tc and supports setting these > values and the output port (this last is in a separate sample.) > > Is this functionality supported with ova-ofctl? If so, could someone > point me to the documentation or a simple example if they know of one? > > Thanks very much, > > Andy > > dpctl unix:/tmp/ofd flow-mod cmd=add,table=0 > eth_type=0x8847,mpls_label=17,mpls_tc=3 apply:output=2 > > SENDING: > flow_mod{table="0", cmd="add", cookie="0x0", mask="0x0", idle="0", hard="0", > prio="32768", buf="none", port="any", group="any", flags="0x0", > match=oxm{mpls_label="17", mpls_tc="3", eth_type="0x8847"}, > insts=[apply{acts=[out{port="2"}]}]} > > OK. > > > > > > _______________________________________________ > discuss mailing list > [email protected] > http://openvswitch.org/mailman/listinfo/discuss > >
_______________________________________________ discuss mailing list [email protected] http://openvswitch.org/mailman/listinfo/discuss
