Re: [netmod] A question on the parameter overriding in draft-ietf-isis-yang-isis-cfg

"Rob Wilton (rwilton)" <rwilton@cisco.com> Mon, 10 June 2019 07:55 UTC

Return-Path: <rwilton@cisco.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 D3578120153; Mon, 10 Jun 2019 00:55:52 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.501
X-Spam-Level:
X-Spam-Status: No, score=-14.501 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cisco.com header.b=KfO1fCI7; dkim=pass (1024-bit key) header.d=cisco.onmicrosoft.com header.b=lUb3ilZA
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Wwt37QJ5YOsE; Mon, 10 Jun 2019 00:55:50 -0700 (PDT)
Received: from alln-iport-4.cisco.com (alln-iport-4.cisco.com [173.37.142.91]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2846B120142; Mon, 10 Jun 2019 00:55:50 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=6742; q=dns/txt; s=iport; t=1560153350; x=1561362950; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=Dnq7OPKrv8fWJA7bzTe1/UHRdQASJRTX4ikcPIBebcY=; b=KfO1fCI7Gof8NLHeLCjMhZGrFinp7Mk3xF3oykWTOByBudvzDWUjUMgC C1Q+TG0mvPw8/xMoRIQoMndZfBXBISVFfEmJwUuQGaE2F2ZCtxPg0wwQe FMwGNlvoRDjyHIiSk8CbOptyIitYT62KlsRVQ2NtL6qOjK4gNsIUtgMa3 Q=;
IronPort-PHdr: 9a23:2SYWExLG/+zgjArtS9mcpTVXNCE6p7X5OBIU4ZM7irVIN76u5InmIFeBvad2lFGcW4Ld5roEkOfQv636EU04qZea+DFnEtRXUgMdz8AfngguGsmAXFfkLfr2aCoSF8VZX1gj9Ha+YgBY
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0B8AAAfDP5c/51dJa1iAxkBAQEBAQEBAQEBAQEHAQEBAQEBgWWBPlADalUgBAsoCoQLg0cDjl6CV4lDjW+CUgNUCQEBAQwBARgNCAIBAYN6RgIXglgjOBMBAwEBBAEBAgEEbRwMhUoBAQEBAwEBEBERDAEBLAsBBAcCAgIBBgIOAgEEAQEBAgIjAwICAhkGBgsUAQgIAQEEAQ0FCBqDAYFqAx0BAgyKPJBgAoE4iF9xgTGCeQEBBYR6DQuCDwMGBYEHKItdF4FAP4EQAUaCTD6CGkcBAQIBgUgYFQoFIYJDMoImjiiaRT4JAoIPhkSJE4QGlxuNE4cTgWONRAIEAgQFAg4BAQWBZiEqgS5wFTuCbIIPDBcUgzkzhGGFP3IBgSiOGAGBIAEB
X-IronPort-AV: E=Sophos;i="5.63,573,1557187200"; d="scan'208";a="282411901"
Received: from rcdn-core-6.cisco.com ([173.37.93.157]) by alln-iport-4.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 10 Jun 2019 07:55:48 +0000
Received: from XCH-RCD-008.cisco.com (xch-rcd-008.cisco.com [173.37.102.18]) by rcdn-core-6.cisco.com (8.15.2/8.15.2) with ESMTPS id x5A7tmAW029863 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL); Mon, 10 Jun 2019 07:55:48 GMT
Received: from xhs-aln-003.cisco.com (173.37.135.120) by XCH-RCD-008.cisco.com (173.37.102.18) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 10 Jun 2019 02:55:47 -0500
Received: from xhs-aln-001.cisco.com (173.37.135.118) by xhs-aln-003.cisco.com (173.37.135.120) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 10 Jun 2019 02:55:45 -0500
Received: from NAM01-SN1-obe.outbound.protection.outlook.com (173.37.151.57) by xhs-aln-001.cisco.com (173.37.135.118) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Mon, 10 Jun 2019 02:55:45 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.onmicrosoft.com; s=selector2-cisco-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Dnq7OPKrv8fWJA7bzTe1/UHRdQASJRTX4ikcPIBebcY=; b=lUb3ilZAloC2sLt7pEXoG4jXfbgxcNaQVTltRqRYOC1xGIg0fimp1l+GE/baVs670vW5h7anexRxtSJr3AQiCuEFejj06i0IokGN53FlwBOI+8LCsDzaZ7oL11Qr+5awwxNCOmYgqgiC2NGJKaT4hPjXsHHxoMze5siupQCYQko=
Received: from BYAPR11MB2631.namprd11.prod.outlook.com (52.135.227.28) by BYAPR11MB3016.namprd11.prod.outlook.com (20.177.225.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1965.15; Mon, 10 Jun 2019 07:55:43 +0000
Received: from BYAPR11MB2631.namprd11.prod.outlook.com ([fe80::d837:c1dd:cdb1:bb78]) by BYAPR11MB2631.namprd11.prod.outlook.com ([fe80::d837:c1dd:cdb1:bb78%7]) with mapi id 15.20.1965.017; Mon, 10 Jun 2019 07:55:43 +0000
From: "Rob Wilton (rwilton)" <rwilton@cisco.com>
To: Qin Wu <bill.wu@huawei.com>, Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>, Xufeng Liu <xufeng.liu.ietf@gmail.com>
CC: "lsr@ietf.org" <lsr@ietf.org>, NETMOD WG <netmod@ietf.org>
Thread-Topic: [netmod] A question on the parameter overriding in draft-ietf-isis-yang-isis-cfg
Thread-Index: AdUfNMAudOA6KCdISCWw7MDlQqFz2gAK+cBw
Date: Mon, 10 Jun 2019 07:55:43 +0000
Message-ID: <BYAPR11MB26318C5FD1350E8DA4E0DDC1B5130@BYAPR11MB2631.namprd11.prod.outlook.com>
References: <B8F9A780D330094D99AF023C5877DABAA496568F@nkgeml513-mbx.china.huawei.com>
In-Reply-To: <B8F9A780D330094D99AF023C5877DABAA496568F@nkgeml513-mbx.china.huawei.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=rwilton@cisco.com;
x-originating-ip: [173.38.220.38]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 84c283ef-7ffa-4f61-563c-08d6ed790a31
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020); SRVR:BYAPR11MB3016;
x-ms-traffictypediagnostic: BYAPR11MB3016:
x-ms-exchange-purlcount: 3
x-microsoft-antispam-prvs: <BYAPR11MB3016C62CCDFA229FAC17F782B5130@BYAPR11MB3016.namprd11.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-forefront-prvs: 0064B3273C
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(376002)(396003)(366004)(346002)(39860400002)(51444003)(13464003)(199004)(189003)(486006)(26005)(73956011)(66446008)(66946007)(64756008)(66556008)(66476007)(6116002)(3846002)(316002)(11346002)(99286004)(446003)(68736007)(76116006)(7736002)(5660300002)(86362001)(186003)(52536014)(305945005)(54906003)(476003)(8676002)(81156014)(110136005)(81166006)(2906002)(8936002)(6506007)(53546011)(7696005)(256004)(53936002)(966005)(66066001)(6436002)(9686003)(102836004)(76176011)(71190400001)(71200400001)(478600001)(55016002)(6246003)(25786009)(33656002)(14454004)(6306002)(74316002)(4326008)(229853002); DIR:OUT; SFP:1101; SCL:1; SRVR:BYAPR11MB3016; H:BYAPR11MB2631.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1;
received-spf: None (protection.outlook.com: cisco.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam-message-info: /98USYxfTaLuPuWL6nhhWXKGh7R1k34FRTgw1e+dgANuCPkMXbG9dbaS9VbSD1mEhqpmRxOubFF8G32MoJRws3x2RtJz7QMk7m8cpqzis6yBJE+/+ZMCOhNRYV1IGylHfQBcMI+GvP+RUx4vRShGMSRG7xRzoVOAnnBo+4pjU88sI6zVlXVRZsxoTlfPF0bZefFaqX4CD2SDKgMpPWwnvSiqwgoB71/f3av98LT0CkqifaLpqrEBYqqBKA/nYPA1o5TdGOaqczdnnraCl0UnWDtoKMVD8agpwVzQ+guB4WEZJGvWdfKkeMWXTmLZ0cFPB040HJs+NBnUZ5L2SO6DMmKA/k8iUBLi/q7LEEbISYJ8D1aXoQ89tpZvfBYBnogbWqSdf731y5o67PutHKt+vAlPJ6/Axaz8qRyl7zXRF6g=
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: 84c283ef-7ffa-4f61-563c-08d6ed790a31
X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Jun 2019 07:55:43.5516 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 5ae1af62-9505-4097-a69a-c1553ef7840e
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: rwilton@cisco.com
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR11MB3016
X-OriginatorOrg: cisco.com
X-Outbound-SMTP-Client: 173.37.102.18, xch-rcd-008.cisco.com
X-Outbound-Node: rcdn-core-6.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/0_eI20mJDTPzYKx6Nuo1Yo_pLdA>
Subject: Re: [netmod] A question on the parameter overriding in draft-ietf-isis-yang-isis-cfg
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.29
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: Mon, 10 Jun 2019 07:55:53 -0000

Fore hierarchical configuration, generally the YANG default statement only makes sense for the top level, i.e. the least specific, configuration node.

Hence, I think that it would be better if the level-1 and level-2 containers did not use a YANG default statement at all.  Instead, the description should explain (perhaps once at the level-1/level-2 container level, or alternatively for every leaf) that the configuration is hierarchical, and if not explicitly configured for a particular level, it uses whatever value is either explicitly configured, or otherwise the default, associated with the top level container.

There is an example of this (but without a top level default) in appendix C.2 of RFC8342.

Thanks,
Rob


-----Original Message-----
From: netmod <netmod-bounces@ietf.org> On Behalf Of Qin Wu
Sent: 10 June 2019 03:37
To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>; Xufeng Liu <xufeng.liu.ietf@gmail.com>
Cc: lsr@ietf.org; NETMOD WG <netmod@ietf.org>
Subject: Re: [netmod] A question on the parameter overriding in draft-ietf-isis-yang-isis-cfg

I think what they are looking for in RFC7950 is generic overridden rule, i.e., a parent node statement can be overridden by its child node substatement.

-Qin
-----邮件原件-----
发件人: netmod [mailto:netmod-bounces@ietf.org] 代表 Juergen Schoenwaelder
发送时间: 2019年6月9日 23:28
收件人: Xufeng Liu <xufeng.liu.ietf@gmail.com>
抄送: lsr@ietf.org; NETMOD WG <netmod@ietf.org>
主题: Re: [netmod] A question on the parameter overriding in draft-ietf-isis-yang-isis-cfg

Hi,

YANG does not have 'levels'. This seems to be an ISIS specific question you should ask on the ISIS list.

/js

On Sun, Jun 09, 2019 at 10:35:11AM -0400, Xufeng Liu wrote:
> In Section 2.3. and many other locations, the current IS-IS model 
> applies the parameter overriding rule as below:
> 
> [Quote]:
> 
> 2.3 <https://tools.ietf.org/html/draft-ietf-isis-yang-isis-cfg-35#section-2..3>.
> Per-Level Parameters
> 
> 
>    Some parameters allow a per level configuration.  In this case, the
>    parameter is modeled as a container with three configuration
>    locations:
> 
>    o  a top-level container: corresponds to level-1-2, so the
>       configuration applies to both levels.
> 
>    o  a level-1 container: corresponds to level-1 specific parameters.
> 
>    o  a level-2 container: corresponds to level-2 specific parameters.
> 
>                +--rw priority
>                |  +--rw value?     uint8
>                |  +--rw level-1
>                |  |  +--rw value?   uint8
>                |  +--rw level-2
>                |     +--rw value?   uint8
> 
>    Example:
> 
>            <priority>
>                <value>250</value>
>                <level-1>
>                    <value>100</value>
>                </level-1>
>                <level-2>
>                    <value>200</value>
>                </level-2>
>            </priority>
> 
>    An implementation SHOULD prefer a level specific parameter over a
>    level-all parameter.  As example, if the priority is 100 for the
>    level-1, 200 for the level-2 and 250 for the top-level configuration,
>    the implementation should use 100 for the level-1 and 200 for the
>    level-2.
> 
> [End of Quote]
> 
> 
> In the model, all three value leaves above have a default statement 
> “default 64”, which brings up my question for the following example:
> 
> 
>            <priority>
>                <value>250</value>
>                <level-1>
>                    <value>100</value>
>                </level-1>
>            </priority>
> 
> 
> The user does not provide a configured value for level-2. According to 
> Section 7.6.1. of RFC7950, because the default value is in use, “the 
> server MUST operationally behave as if the leaf was present in the 
> data tree with the default value as its value”. This means the 
> priority value for level-2 will be 64 (the default value), so the 
> value 250 can never take effect as intended in the above quoted Section 2.3.
> 
> 
> Is my understanding correct?
> 
> 
> Since this is a generic question, I am CC’ing NETMOD WG too.
> 
> 
> Thanks,
> 
> - Xufeng

> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod


-- 
Juergen Schoenwaelder           Jacobs University Bremen gGmbH
Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany
Fax:   +49 421 200 3103         <https://www.jacobs-university.de/>

_______________________________________________
netmod mailing list
netmod@ietf.org
https://www.ietf.org/mailman/listinfo/netmod
_______________________________________________
netmod mailing list
netmod@ietf.org
https://www.ietf.org/mailman/listinfo/netmod