[4/8] zone: Introduce id feature
Message ID | 1499264393-13700-4-git-send-email-jonatan.schlag@ipfire.org |
---|---|
State | Accepted |
Commit | 0959b0b96d0754cebfa3fa1cfe9f11538e87b333 |
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 96577621BC for <patchwork@ipfire.org>; Wed, 5 Jul 2017 16:20:07 +0200 (CEST) Received: from mail01.ipfire.org (localhost [IPv6:::1]) by mail01.ipfire.org (Postfix) with ESMTP id 6E3FD27D4; Wed, 5 Jul 2017 16:20:07 +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 B272D27E2; Wed, 5 Jul 2017 16:20:04 +0200 (CEST) From: Jonatan Schlag <jonatan.schlag@ipfire.org> To: network@lists.ipfire.org Subject: [PATCH 4/8] zone: Introduce id feature Date: Wed, 5 Jul 2017 16:19:49 +0200 Message-Id: <1499264393-13700-4-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
When we write a config for the frist time a unique id is generated and appended to the filename.
So it is possible to identify a config clearly.
The variable config is rename to hook because this function takes now
the name of the hook and the id. The name of the config is no more suitable.
If no id is passed we generate one.
This should only happen when we write the file for the first time.
Fixes: #11405
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
---
src/functions/functions.zone | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)