[7/8] zone: change edit syntax for config.
Message ID | 1499264393-13700-7-git-send-email-jonatan.schlag@ipfire.org |
---|---|
State | Accepted |
Commit | e6a03d560a89a9a749f520fab6279a1f12a6520e |
Headers |
Return-Path: <network-bounces@lists.ipfire.org> Received: from mail01.ipfire.org (unknown [172.28.1.200]) by web02.ipfire.org (Postfix) with ESMTP id 55E4B621BC for <patchwork@ipfire.org>; Wed, 5 Jul 2017 16:20:10 +0200 (CEST) Received: from mail01.ipfire.org (localhost [IPv6:::1]) by mail01.ipfire.org (Postfix) with ESMTP id 2A97727D9; Wed, 5 Jul 2017 16:20:10 +0200 (CEST) Received: from ipfire.localdomain (dslb-088-073-209-139.088.073.pools.vodafone-ip.de [88.73.209.139]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id D9CA327E4; Wed, 5 Jul 2017 16:20:07 +0200 (CEST) From: Jonatan Schlag <jonatan.schlag@ipfire.org> To: network@lists.ipfire.org Subject: [PATCH 7/8] zone: change edit syntax for config. Date: Wed, 5 Jul 2017 16:19:52 +0200 Message-Id: <1499264393-13700-7-git-send-email-jonatan.schlag@ipfire.org> X-Mailer: git-send-email 2.6.3 In-Reply-To: <1499264393-13700-1-git-send-email-jonatan.schlag@ipfire.org> References: <1499264393-13700-1-git-send-email-jonatan.schlag@ipfire.org> X-BeenThere: network@lists.ipfire.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List for the network package <network.lists.ipfire.org> List-Unsubscribe: <http://lists.ipfire.org/mailman/options/network>, <mailto:network-request@lists.ipfire.org?subject=unsubscribe> List-Archive: <http://lists.ipfire.org/pipermail/network/> List-Post: <mailto:network@lists.ipfire.org> List-Help: <mailto:network-request@lists.ipfire.org?subject=help> List-Subscribe: <http://lists.ipfire.org/mailman/listinfo/network>, <mailto:network-request@lists.ipfire.org?subject=subscribe> Errors-To: network-bounces@lists.ipfire.org Sender: "network" <network-bounces@lists.ipfire.org> |
Message
Jonatan Schlag
July 6, 2017, 12:19 a.m. UTC
The syntax to edit a config is now
network zone upl0 config <id> edit
similar to the syntax if a zone is edited.
The cmd variable is setted to the content of ${1},
because we need the content in this variable if the ${id} is not valid, to print a nice error message.
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
---
src/functions/functions.zone | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)