[ovs-dev] create gre tunnel is now different in 1.1.0
Ben Pfaff
blp at nicira.com
Wed May 18 15:57:04 UTC 2011
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.
More information about the dev
mailing list