[ovs-discuss] ovs-ofctl transactions syntax

Ben Pfaff blp at ovn.org
Tue Jan 15 17:05:59 UTC 2019


Please don't drop the list.

ovs-ofctl --bundle add-flows SWITCH - <<EOF
flow1
flow2
EOF

or

(echo "flow1"; echo "flow2") | ovs-ofctl --bundle add-flows SWITCH -

On Tue, Jan 15, 2019 at 08:31:31AM -0500, Matteo Olivi wrote:
> Is there a way to do that without a file, i. e. specifying the flows
> inline?
> 
> Il giorno mar 15 gen 2019, 01:10 Ben Pfaff <blp at ovn.org> ha scritto:
> 
> > On Mon, Jan 14, 2019 at 09:29:56PM -0500, Matteo Olivi wrote:
> > > What's the syntax for adding multiple flows to an OvS bridge within a
> > > single transaction? I read the man page of ovs-ofctl but could not
> > > understand how to do that. I also tried to use the same syntax as
> > ovs-vsctl
> > > (separate commands with "--", I separated flows instead of commands), but
> > > it did not work.
> >
> > --bundle add-flows SWITCH FILE
> >


More information about the discuss mailing list