[netmod] Mask tag Usage in draft-ietf-netmod-node-tags

Qin Wu <bill.wu@huawei.com> Wed, 24 August 2022 03:39 UTC

Return-Path: <bill.wu@huawei.com>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 620B6C14CE37 for <netmod@ietfa.amsl.com>; Tue, 23 Aug 2022 20:39:58 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.91
X-Spam-Level:
X-Spam-Status: No, score=-6.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01] autolearn=unavailable autolearn_force=no
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BTcmFH7r40Ph for <netmod@ietfa.amsl.com>; Tue, 23 Aug 2022 20:39:53 -0700 (PDT)
Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E733BC1524D6 for <netmod@ietf.org>; Tue, 23 Aug 2022 20:39:52 -0700 (PDT)
Received: from fraeml745-chm.china.huawei.com (unknown [172.18.147.207]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4MCBft3bxwz67yt9 for <netmod@ietf.org>; Wed, 24 Aug 2022 11:39:34 +0800 (CST)
Received: from canpemm100005.china.huawei.com (7.192.105.21) by fraeml745-chm.china.huawei.com (10.206.15.226) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Wed, 24 Aug 2022 05:39:49 +0200
Received: from canpemm500005.china.huawei.com (7.192.104.229) by canpemm100005.china.huawei.com (7.192.105.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Wed, 24 Aug 2022 11:39:47 +0800
Received: from canpemm500005.china.huawei.com ([7.192.104.229]) by canpemm500005.china.huawei.com ([7.192.104.229]) with mapi id 15.01.2375.024; Wed, 24 Aug 2022 11:39:47 +0800
From: Qin Wu <bill.wu@huawei.com>
To: NetMod WG <netmod@ietf.org>
CC: Balázs Lengyel <balazs.lengyel=40ericsson.com@dmarc.ietf.org>
Thread-Topic: Mask tag Usage in draft-ietf-netmod-node-tags
Thread-Index: Adi3ax3FThnGYQDdSwO8bW3ZJTWxUA==
Date: Wed, 24 Aug 2022 03:39:47 +0000
Message-ID: <f4c1dba9aeb547c7a79adce62341d36c@huawei.com>
Accept-Language: zh-CN, en-US
Content-Language: zh-CN
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.136.100.16]
Content-Type: multipart/alternative; boundary="_000_f4c1dba9aeb547c7a79adce62341d36chuaweicom_"
MIME-Version: 1.0
X-CFilter-Loop: Reflected
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/VMVVod1i7pmIdEONLvuiMaaZtDs>
Subject: [netmod] Mask tag Usage in draft-ietf-netmod-node-tags
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: NETMOD WG list <netmod.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netmod>, <mailto:netmod-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netmod/>
List-Post: <mailto:netmod@ietf.org>
List-Help: <mailto:netmod-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netmod>, <mailto:netmod-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 24 Aug 2022 03:39:58 -0000

Hi, All:
In IETF 114, one issue we discussed for draft-ietf-netmod-node-tags is about mask-tag usage, we use mask-tag to remove the tag.
actually we have two options to remove the tag, one is using edit-data protocol operation to delete the tag,
the other is to use mask-tag to remove tag. so the question when to use mask-tag to remove tag and when to use edit-data operation to delete the tag, what is their priority.
Since the tag can either schema level tag or instance level tag, the original proposal is only using mask-tag to remove schema level tag, which is static tag, the tag will disappear
from operational datastore, but it still exists in the model schema.
But for instance level tag, it is actually user configured tag, I think we can skip to use mask-tag, just use edit-data operation to add tag and remove tag. The reason to skip to use mask tag, becos, the mask tag is only applied to schema level tag or static tag.
Here is the proposed changes to section 7:
OLD TEXT:
"
leaf-list masked-tag {
   type tags:tag;
   description
   "The list of tags that should not be associated with the
   node within the YANG module. The user can remove
   (mask) tags from the operational state datastore by
   adding them to this list. It is not an error to add tags
   to this list that are not associated with the data
   node within YANG  module, but they have no operational
   effect.";
"
NEW TEXT:
"
leaf-list masked-tag {
   type tags:tag;
   description
   "The list of tags that should not be associated with the
   node within the YANG module. The user can remove
   (mask) tags from the operational state datastore by
   adding them to this list.  It is not an error to add tags
   to this list that are not associated with the data
   node within YANG  module, but they have no operational
   effect. Note that the tags described here are limited to system tags
    not applied to user configured tags. ";
"
OLD TEXT:
"
    The 'operational' state view of this list is
    constructed using the following steps:

    1) System tags (i.e., tags of 'system' origin) are added.
    2) User configured tags (i.e., tags of 'intended' origin) are added.
    3) Any tag that is equal to a masked-tag is removed.";
"
NEW TEXT:
"
    The 'operational' state view of this list is
    constructed using the following steps:

    1) System tags (i.e., tags of 'system' origin) are added.
    2) User configured tags (i.e., tags of 'intended' origin) are added.
    3) Any system tag that is equal to a masked-tag is removed.
         4) User configured tags can be removed using standard protocol operation.
         ";
"

-Qin