Blob Blame History Raw
From 084d390730a0007da369a1a1b25265e6da624446 Mon Sep 17 00:00:00 2001
From: Ondrej Holecek <oholecek@suse.com>
Date: Mon, 29 Apr 2019 17:26:25 +0200
Subject: [PATCH 56/73] Change-interface can accept permanent option

(cherry picked from commit 2f0293141e2e1468fa1fe8a0293905595a06587c)
(cherry picked from commit 3d211246d85afd230cda41c08c6fa27acc4a8c04)
---
 doc/xml/firewall-cmd.xml.in | 2 +-
 src/firewall-cmd.in         | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/doc/xml/firewall-cmd.xml.in b/doc/xml/firewall-cmd.xml.in
index 5f25661b4a0e..cd4aa47addb2 100644
--- a/doc/xml/firewall-cmd.xml.in
+++ b/doc/xml/firewall-cmd.xml.in
@@ -935,7 +935,7 @@ For interfaces that are not under control of NetworkManager, firewalld tries to
 	</varlistentry>
 
 	<varlistentry>
-	  <term><optional><option>--zone</option>=<replaceable>zone</replaceable></optional> <option>--change-interface</option>=<replaceable>interface</replaceable></term>
+	  <term><optional><option>--permanent</option></optional> <optional><option>--zone</option>=<replaceable>zone</replaceable></optional> <option>--change-interface</option>=<replaceable>interface</replaceable></term>
 	  <listitem>
 	    <para>
 	      If the interface is under control of NetworkManager, it is at first connected to change the zone for the connection that is using the interface. If this fails, the zone binding is created in firewalld and the limitations below apply.
diff --git a/src/firewall-cmd.in b/src/firewall-cmd.in
index d44f00a67a93..2aed703103d3 100755
--- a/src/firewall-cmd.in
+++ b/src/firewall-cmd.in
@@ -309,7 +309,7 @@ Options to Handle Bindings of Interfaces
   --add-interface=<interface>
                        Bind the <interface> to a zone [P] [Z]
   --change-interface=<interface>
-                       Change zone the <interface> is bound to [Z]
+                       Change zone the <interface> is bound to [P] [Z]
   --query-interface=<interface>
                        Query whether <interface> is bound to a zone [P] [Z]
   --remove-interface=<interface>
-- 
2.20.1