[node-patches] Change in ovirt-node[ovirt-3.5]: Prevent adding iptable rule on every run.

fabiand at redhat.com fabiand at redhat.com
Wed Dec 9 11:18:12 UTC 2015


Fabian Deutsch has submitted this change and it was merged.

Change subject: Prevent adding iptable rule on every run.
......................................................................


Prevent adding iptable rule on every run.

if iptables list is empty a rule will be added to /etc/sysconfig/iptables
We need this rule to be added only once .
Therefor we will load the table before checking
if we need to add the rule.

Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1221999
Change-Id: Ibe3e80834b9fe817b395793d1a2d02db0c206c4f
Signed-off-by: Tolik Litovsky <tlitovsk at redhat.com>
(cherry picked from commit b21a9a8e188cee9545ed2dc75114c2b9107f210f)
---
M src/ovirt/node/utils/firewall.py
1 file changed, 3 insertions(+), 3 deletions(-)

Approvals:
  Fabian Deutsch: Verified; Looks good to me, approved; Passed CI tests



-- 
To view, visit https://gerrit.ovirt.org/50163
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ibe3e80834b9fe817b395793d1a2d02db0c206c4f
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: ovirt-3.5
Gerrit-Owner: Fabian Deutsch <fabiand at redhat.com>
Gerrit-Reviewer: Fabian Deutsch <fabiand at redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation at ovirt.org>



More information about the node-patches mailing list