[ovs-dev] create gre tunnel is now different in 1.1.0

nicolas prochazka prochazka.nicolas at gmail.com
Wed May 18 16:08:37 UTC 2011


thank you.
nicolas

2011/5/18 Ben Pfaff <blp at nicira.com>

> On Wed, May 18, 2011 at 04:04:07PM +0200, nicolas prochazka wrote:
> > before to create GRE tunnel
> > i do for example :
> > INTF=$(ovs-vsctl create interface name=GRE-${1} type=gre
> >  options="local_ip=${BLADEIP},remote_ip=${1}")
> > PORT=$(ovs-vsctl create port name=GRE-${1} interfaces=[${INTF}]
> > tag=${VLANTAG} )
> > ovs-vsctl add bridge ${INT_BR} ports ${PORT}
> >
> > and it works well.
> >
> > with 1.1.0 not,
> > I try
> > INTF=$(ovs-vsctl -- --id=@GRE-$1 create interface  name=GRE-${1} type=gre
> >  options="local_ip=${BLADEIP},remote_ip=${1}")
> > PORT=$(ovs-vsctl  -- --id=@GRE-$1 create  port  name=GRE-${1}
> > interfaces=[${INTF}] tag=${VLANTAG} )
> > ovs-vsctl add bridge ${INT_BR} ports ${PORT}
>
> You can fix this by running all of the commands together in a single
> ovs-vsctl invocation, separated by --.
>
> But it's easier to use the ovs-vsctl commands for creating and
> modifying ports, e.g.:
>
> ovs-vsctl -- add-port ${INT_BR} GRE-${1} tag=${VLANTAG} \
>          -- set interface GRE-${1} type=gre
> options="local_ip=${BLADEIP},remote_ip=${1}"
>
> > Is there a changelog with the new syntax of command ?
>
> The ovs-vsctl manpage has a number of examples toward the end.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-dev/attachments/20110518/879663a0/attachment-0003.html>


More information about the dev mailing list