config: remove old hashes
Message ID | 1499183882-24548-1-git-send-email-jonatan.schlag@ipfire.org |
---|---|
State | Superseded |
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 7921F621AC for <patchwork@ipfire.org>; Tue, 4 Jul 2017 17:58:07 +0200 (CEST) Received: from mail01.ipfire.org (localhost [IPv6:::1]) by mail01.ipfire.org (Postfix) with ESMTP id A0C41931; Tue, 4 Jul 2017 17:58:06 +0200 (CEST) Received: from ipfire.localdomain (dslb-088-073-193-205.088.073.pools.vodafone-ip.de [88.73.193.205]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 060AED6F; Tue, 4 Jul 2017 17:58:04 +0200 (CEST) From: Jonatan Schlag <jonatan.schlag@ipfire.org> To: network@lists.ipfire.org Subject: [PATCH] config: remove old hashes Date: Tue, 4 Jul 2017 17:58:02 +0200 Message-Id: <1499183882-24548-1-git-send-email-jonatan.schlag@ipfire.org> X-Mailer: git-send-email 2.6.3 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 5, 2017, 1:58 a.m. UTC
With the new id feature the old hashes are not necessary anymore.
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
---
src/hooks/configs/ipv4-static | 3 +--
src/hooks/configs/ipv6-static | 2 +-
2 files changed, 2 insertions(+), 3 deletions(-)
Comments
Hi, could we also drop the ipv6_hash function or is that used somewhere else, too? -Michael On Tue, 2017-07-04 at 17:58 +0200, Jonatan Schlag wrote: > With the new id feature the old hashes are not necessary anymore. > > Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org> > --- > src/hooks/configs/ipv4-static | 3 +-- > src/hooks/configs/ipv6-static | 2 +- > 2 files changed, 2 insertions(+), 3 deletions(-) > > diff --git a/src/hooks/configs/ipv4-static b/src/hooks/configs/ipv4- > static > index cb00252..c395200 100644 > --- a/src/hooks/configs/ipv4-static > +++ b/src/hooks/configs/ipv4-static > @@ -106,8 +106,7 @@ hook_new() { > warning "You did not configure a gateway for a non- > local zone" > fi > > - # XXX maybe we can add some hashing to identify a > configuration again > - zone_config_settings_write "${zone}" "${HOOK}.$(uuid)" > + zone_config_settings_write "${zone}" "${HOOK}" > > exit ${EXIT_OK} > } > diff --git a/src/hooks/configs/ipv6-static b/src/hooks/configs/ipv6- > static > index 2a5e8e2..f43ef7e 100644 > --- a/src/hooks/configs/ipv6-static > +++ b/src/hooks/configs/ipv6-static > @@ -59,7 +59,7 @@ hook_new() { > GATEWAY=$(ipv6_format "${GATEWAY}") > fi > > - zone_config_settings_write "${zone}" "${HOOK}.$(ipv6_hash > ${ADDRESS}).${PREFIX}" > + zone_config_settings_write "${zone}" "${HOOK}" > > exit ${EXIT_OK} > }
Hi, i thouhgt we could use this function to generate a hid for ipv6-static? Jonatan Am Di, 4. Jul, 2017 um 6:05 schrieb Michael Tremer <michael.tremer@ipfire.org>: > Hi, > > could we also drop the ipv6_hash function or is that used somewhere > else, too? > > -Michael > > On Tue, 2017-07-04 at 17:58 +0200, Jonatan Schlag wrote: >> With the new id feature the old hashes are not necessary anymore. >> >> Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org> >> --- >> src/hooks/configs/ipv4-static | 3 +-- >> src/hooks/configs/ipv6-static | 2 +- >> 2 files changed, 2 insertions(+), 3 deletions(-) >> >> diff --git a/src/hooks/configs/ipv4-static b/src/hooks/configs/ipv4- >> static >> index cb00252..c395200 100644 >> --- a/src/hooks/configs/ipv4-static >> +++ b/src/hooks/configs/ipv4-static >> @@ -106,8 +106,7 @@ hook_new() { >> warning "You did not configure a gateway for a non- >> local zone" >> fi >> >> - # XXX maybe we can add some hashing to identify a >> configuration again >> - zone_config_settings_write "${zone}" "${HOOK}.$(uuid)" >> + zone_config_settings_write "${zone}" "${HOOK}" >> >> exit ${EXIT_OK} >> } >> diff --git a/src/hooks/configs/ipv6-static b/src/hooks/configs/ipv6- >> static >> index 2a5e8e2..f43ef7e 100644 >> --- a/src/hooks/configs/ipv6-static >> +++ b/src/hooks/configs/ipv6-static >> @@ -59,7 +59,7 @@ hook_new() { >> GATEWAY=$(ipv6_format "${GATEWAY}") >> fi >> >> - zone_config_settings_write "${zone}" "${HOOK}.$(ipv6_hash >> ${ADDRESS}).${PREFIX}" >> + zone_config_settings_write "${zone}" "${HOOK}" >> >> exit ${EXIT_OK} >> }