ok :)
diff --git a/rhel/etc_sysconfig_network-scripts_ifdown-ovs
b/rhel/etc_sysconfig_network-scripts_ifdown-ovs
index d2a2f4b..8e768c8 100755
--- a/rhel/etc_sysconfig_network-scripts_ifdown-ovs
+++ b/rhel/etc_sysconfig_network-scripts_ifdown-ovs
@@ -42,7 +42,7 @@ case "$TYPE" in
retval=$?
ovs-vsctl -t ${TIMEOUT} -- --if-exists del-br "$DEVICE"
;;
- OVSPort|OVSIntPort|OVSBond)
+ OVSPort|OVSIntPort|OVSBond|OVSTunnel)
${OTHERSCRIPT} ${CONFIG} $2
retval=$?
ovs-vsctl -t ${TIMEOUT} -- --if-exists del-port
"$OVS_BRIDGE" "$DEVICE"
diff --git a/rhel/etc_sysconfig_network-scripts_ifup-ovs
b/rhel/etc_sysconfig_network-scripts_ifup-ovs
index 8904c59..b30448b 100755
--- a/rhel/etc_sysconfig_network-scripts_ifup-ovs
+++ b/rhel/etc_sysconfig_network-scripts_ifup-ovs
@@ -117,6 +117,12 @@ case "$TYPE" in
${OTHERSCRIPT} ${CONFIG} ${2}
OVSINTF=${DEVICE} /sbin/ifup "$OVS_BRIDGE"
;;
+ OVSTunnel)
+ /sbin/ifup "$OVS_BRIDGE"
+ ovs-vsctl -t ${TIMEOUT} -- --may-exist add-port
"$OVS_BRIDGE" "$DEVICE" $OVS_OPTIONS -- set Interface "$DEVICE"
type=$OVS_TUNNEL_TYPE $OVS_TUNNEL_OPTIONS ${OVS_EXTRA+-- $OVS_EXTRA}
+ ${OTHERSCRIPT} ${CONFIG} ${2}
+ ;;
+
*)
echo $"Invalid OVS interface type $TYPE"
exit 1
diff --git a/rhel/README.RHEL b/rhel/README.RHEL
index ba2774a..1dbce62 100644
--- a/rhel/README.RHEL
+++ b/rhel/README.RHEL
@@ -125,6 +125,17 @@ DEVICE=gige-*
ONBOOT=yes
HOTPLUG=no
+GRE Tunnel:
+
+==> ifcfg-gre0 <==
+DEVICE=ovs-gre0
+ONBOOT=yes
+DEVICETYPE=ovs
+TYPE=OVSTunnel
+OVS_BRIDGE=ovsbridge0
+OVS_TUNNEL_TYPE=gre
+OVS_TUNNEL_OPTIONS="options:remote_ip=A.B.C.D"
+
Reporting Bugs
--------------
Signed-off-by: Edouard Bourguignon <[email protected]>
I also add the exemple to the README.RHEL.
btw, I know it's a bit off-topic, but do you know if it's possible to make
an ovs gre port to point to an native gre interface on a remote host? The
remote host doesn't have openvswitch... tcpdump shows some gre traffic on
the remote host, but marked as "Unknown Ethernet type" or TEB on more
recent tcpdump. Any idea?
Best regards,
2013/10/11 Ben Pfaff <[email protected]>
> On Fri, Oct 11, 2013 at 01:25:02PM +0200, Madko wrote:
> > Sure, so I have to change TYPE=OVSGre to TYPE=OVSTunnel, OVS_GRE_OPTIONS
> to
> > OVS_TUNNEL_OPTIONS and may be add a OVS_TUNNEL_TYPE to have something
> like:
> > ovs-vsctl -t ${TIMEOUT} -- --may-exist add-port "$OVS_BRIDGE" "$DEVICE"
> > $OVS_OPTIONS -- set Interface "$DEVICE" type=$OVS_TUNNEL_TYPE
> > $OVS_TUNNEL_OPTIONS ${OVS_EXTRA+-- $OVS_EXTRA}
> >
> > is that correct?
>
> That sounds good.
>
--
Edouard Bourguignon
_______________________________________________
discuss mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/discuss