Avoid inserting duplicate iptables rules when restarting vswitch.
[openvswitch] / xenserver / etc_init.d_openvswitch
index 39d4d364e824b92f3c0d3f612351cc5f88ebb669..81039004035d5ca3eb75a152354b1c0ab06832b1 100755 (executable)
@@ -76,8 +76,7 @@ start () {
             --pidfile --detach --monitor unix:/var/run/openvswitch/db.sock
     fi
 
-    # Allow GRE traffic.
-    /sbin/iptables -I INPUT -p gre -j ACCEPT
+    $ovs_ctl --protocol=gre enable-protocol
 
     touch /var/lock/subsys/openvswitch
 }