Alon Bar-Lev has uploaded a new change for review.

Change subject: iptables: disable and stop firewalld to avoid conflict
......................................................................

iptables: disable and stop firewalld to avoid conflict

Change-Id: I423846092615a25352539cb0abc19088408ac93e
Signed-off-by: Alon Bar-Lev <alo...@redhat.com>
---
M src/plugins/otopi/network/iptables.py
1 file changed, 4 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/otopi refs/changes/87/9587/1

diff --git a/src/plugins/otopi/network/iptables.py 
b/src/plugins/otopi/network/iptables.py
index d1e5c1c..7daf50a 100644
--- a/src/plugins/otopi/network/iptables.py
+++ b/src/plugins/otopi/network/iptables.py
@@ -100,6 +100,10 @@
         condition=lambda self: self._enabled,
     )
     def _closeup(self):
+        # We would like to avoid conflict
+        if self.services.exists('firewalld'):
+            self.services.startup('firewalld', False)
+            self.services.state('firewalld', False)
         self.services.startup('iptables', True)
         self.services.state('iptables', False)
         self.services.state('iptables', True)


--
To view, visit http://gerrit.ovirt.org/9587
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I423846092615a25352539cb0abc19088408ac93e
Gerrit-PatchSet: 1
Gerrit-Project: otopi
Gerrit-Branch: master
Gerrit-Owner: Alon Bar-Lev <alo...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to