Re: [netmod] Question related to ietf-netconf-with-defaults

"Bogaert, Bart (Nokia - BE/Antwerp)" <bart.bogaert@nokia.com> Fri, 08 May 2020 15:26 UTC

Return-Path: <bart.bogaert@nokia.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 90D5F3A0ADA; Fri, 8 May 2020 08:26:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level:
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=nokia.onmicrosoft.com
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 uvzQyMI06ngX; Fri, 8 May 2020 08:26:42 -0700 (PDT)
Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2117.outbound.protection.outlook.com [40.107.20.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E8D4E3A0410; Fri, 8 May 2020 08:26:41 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=COtBACVP1FgxS2RAe4kUmMmbln4sqfu3lZze5mkaYIsN55bQN5vBBx84jKb0LSsuGVlUE4lAMx6c5bSPBQbZX0W3HEuLl/dMBB1f+tawR7EceFSAShTpGwuPtLKELe8wmUn8pUbY271tGycoXpiO2qWDYxJryQdHJsHZMJPqj/QQgUK5RgMByI4ONVKQlYiF2IZtJg2+2RmCHUI2PQVcCk3FbB+jYwFjutjLUBcUeEty6bjWF+lnRxt8x6dq3FavacGgxBnT8KocXpJkdNS4gcRIrHIyBF0XQH7uDtAaUiM4Wz1v5ZFzRtzkiXMwFXxRRfT1EXqhjGcehdShebNGYw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WqHwe7LuyzhT3cf+6xNtS8ofX2dePSxLeMizCcyocVM=; b=G1LvjEEPWbtevoEVpIjPmL7mnD6j48jQpEIg8uEte4Qq7VHX2p3gJtlYVm08gzT2bVpyZgzvo6KCtVy3ojiWnwwKGY+25nK8nzPLKOUWgRNC0ZAPOz5QfUbVyJpBBNXwtf2Rn6me2nYxcNRDUMigoXckCKkXoC3UeIQ+u37TzEgCp0gLAV7FjjqFa/Y/6e9/d8xRSHVNn33wDcrc37HmDoc9XtW7kF4jLmMPSUrhI8A7u7fjA3L7Oci+VDWu9cwXQ2lhJyCzhG048RbA2v+RsriS0ujPJNmi/mf34PEwERcWF4D1BdbHsfpQfpK/HDmzcIin5a2Q4xAK1al3rPAHPg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nokia.com; dmarc=pass action=none header.from=nokia.com; dkim=pass header.d=nokia.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nokia.onmicrosoft.com; s=selector1-nokia-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WqHwe7LuyzhT3cf+6xNtS8ofX2dePSxLeMizCcyocVM=; b=PhVrNR2ZM7ann0pei9H/NyDaKYdC+uhijXucKbScEFnwwx49Fe5NLvfxLQZ1NVUEYYCYcbcZJNBEEIYNh/j9SNSGUCMkhPA+TMbifdMEg4d6UrnKfXRDnPWTkYVTLmVtos3p6GN1tsnd0YQXUZEuY9aSBVQfcaaToaj1X5/RfMA=
Received: from AM0PR07MB4547.eurprd07.prod.outlook.com (2603:10a6:208:73::13) by AM0PR07MB5315.eurprd07.prod.outlook.com (2603:10a6:208:f2::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2979.18; Fri, 8 May 2020 15:26:38 +0000
Received: from AM0PR07MB4547.eurprd07.prod.outlook.com ([fe80::e8a3:c3:735:383f]) by AM0PR07MB4547.eurprd07.prod.outlook.com ([fe80::e8a3:c3:735:383f%5]) with mapi id 15.20.2979.028; Fri, 8 May 2020 15:26:38 +0000
From: "Bogaert, Bart (Nokia - BE/Antwerp)" <bart.bogaert@nokia.com>
To: "netconf@ietf.org" <netconf@ietf.org>, "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: Question related to ietf-netconf-with-defaults
Thread-Index: AdYlQ1uOZrBhhp89RjO4s3/1vCvkdAABTalAAAEX07A=
Date: Fri, 08 May 2020 15:26:38 +0000
Message-ID: <AM0PR07MB4547599E2676EAB2E681711E94A20@AM0PR07MB4547.eurprd07.prod.outlook.com>
References: <AM0PR07MB45477998534B8C814B1B155894A20@AM0PR07MB4547.eurprd07.prod.outlook.com> <AM0PR07MB4547FFCD1BF0DEEA2C55D0D294A20@AM0PR07MB4547.eurprd07.prod.outlook.com>
In-Reply-To: <AM0PR07MB4547FFCD1BF0DEEA2C55D0D294A20@AM0PR07MB4547.eurprd07.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: ietf.org; dkim=none (message not signed) header.d=none;ietf.org; dmarc=none action=none header.from=nokia.com;
x-originating-ip: [2a02:1811:e41e:3400:596b:b7ab:d629:c524]
x-ms-publictraffictype: Email
x-ms-office365-filtering-ht: Tenant
x-ms-office365-filtering-correlation-id: a1016830-f4e4-40b7-3df2-08d7f36433da
x-ms-traffictypediagnostic: AM0PR07MB5315:
x-microsoft-antispam-prvs: <AM0PR07MB5315620EF09255986E6F01DE94A20@AM0PR07MB5315.eurprd07.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:9508;
x-forefront-prvs: 039735BC4E
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: eKwHHH9Sfl3mJcCVfWl3DsF1yX67mgiT3jjCqvSJ2GYhm2VtAwx9ixE9R3S1eds+dol9qiPYdOOIH+IeptqXS/LtdgMgd6daiyaR7GDldg+ddQUUO2zB3rIlKwwdfF++fsQlRmEqa2vfaJqTdJ1bY76qM/p49sWIVwlwD7fMC2aiTKmDq6oTEM9M5wm69hYGTejQYhID6YAlX8ckc9rrizceibs3+iyNtmex9ouiLNWKWX6zf3wU6sUg9FOk7aY1xJMv9VlQbcr6guLRBZtWOmdiAVLEAmHa/zAy6uCejj9Kgffl2VYbWoyVz8LMS0EQztpbORNG0q9loYq6rLEQ5VS9RTUPpv8zLK6J9ToijLKF/Gdp2EXPhJPwcUKfCM62WmTroG3pqRmcYBRgiKsp2+3lJQBzwRpSDZ31TPt5E9q17FgO2LKYa1PqMfV44NAwj2wGpB8hbjTh0vSK+TWu86wy6gQCZwQthUyDKlbcH6jRi4X/LjcmNGjEOQeQoIxur+Ns8WzVYB+6fvHWN93UcC6mrLot5TjI99faO0Cqek/0Z2gwHbzQ6Q6A/n4dIW1QdOPGXp2kUaKkXH504gLxWxdzq+BXCK6Rg/4cwZuRHGQ=
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0PR07MB4547.eurprd07.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(136003)(366004)(376002)(346002)(39860400002)(396003)(33430700001)(76116006)(8676002)(7696005)(53546011)(86362001)(33440700001)(52536014)(316002)(66476007)(110136005)(83290400001)(186003)(83300400001)(71200400001)(166002)(66556008)(83280400001)(83310400001)(450100002)(83320400001)(66446008)(2940100002)(8936002)(6506007)(55016002)(33656002)(478600001)(2906002)(66946007)(9686003)(5660300002)(64756008); DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata: gBqpQ3BvKh2GUvZ4fFtS0ACCWtFtYEwdn7xjNbBoldCtK2CzIxMsCimN4KYlAwGE7D1OjCJI5sa9I8i96ugYFsd7lsNRwrH1rs72sw8mVzgQv4uvAbiooPwzuJqkuc2GbeRTnpGygoGKjdOX06RUL7+ku80GloGROTndJrA+Iw4qUcr1IZpbVnWfdf7QMW9VNhF4p2cJPqGxl+djJtGJttHgCrW/fhD90fMTxxDaroTFEn9japgyeQGjJa7QEyu3oJWYadHPqemYhk/8TEzCHMbK5ZsqY6qTdj7i7UXUezPoaTpQ/Ri7L6B9emDqFFMayGd8cWkjgEzmgaDEdhqJIuEvmKKvEyXV84S3BL60jcVrb2GMJ9NJE+a29xX8i+OnhYO9HxDNP+IIItG5PZMCnFOpvYiVu6Z+9DEUmvHIarVXDf0kwGQuA2v4wxQQySaU7XdKivSZcYEqmHrpOHeS1rlWYj7oyRxl9ODSXSUcEqxmIpra9zloAtnEqm1MibBVfJ0AiW/v2T4yO/EcIBp+SMFTC4l+k2EByl4I9z5FMhtoT15JE6YfYsv4FZW6qca0
x-ms-exchange-transport-forked: True
Content-Type: multipart/alternative; boundary="_000_AM0PR07MB4547599E2676EAB2E681711E94A20AM0PR07MB4547eurp_"
MIME-Version: 1.0
X-OriginatorOrg: nokia.com
X-MS-Exchange-CrossTenant-Network-Message-Id: a1016830-f4e4-40b7-3df2-08d7f36433da
X-MS-Exchange-CrossTenant-originalarrivaltime: 08 May 2020 15:26:38.6795 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 5d471751-9675-428d-917b-70f44f9630b0
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: XpklBM17mF/GuS7cLSxaty6n+Nb2RG9gotse0NCamJ46LZbTahbcokFAk/FZEy5iCug0buN24WZJw23xoEX6/g==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR07MB5315
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/NSjHonDFJttoy-E03FTSDu4-djc>
Subject: Re: [netmod] Question related to ietf-netconf-with-defaults
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: Fri, 08 May 2020 15:26:48 -0000

Seems that I better address this subject to ietf-netmode.

Sorry for the trouble.

Regards, Bart

From: netconf <netconf-bounces@ietf.org> On Behalf Of Bogaert, Bart (Nokia - BE/Antwerp)
Sent: Friday, May 8, 2020 4:55 PM
To: netconf@ietf.org
Subject: [netconf] Question related to ietf-netconf-with-defaults

Hi,

I have a question related to the with-defaults capability and the how a NC server should be dealing with schema-defaults.


  1.  Assume the following model:

module leaf-has-default {
  yang-version 1.1;
  namespace "http://www.example.com/lhd";
  prefix lhd;

  container contains-leafs {
    leaf num-value {
      type uint32;
      default 1;
    }
    leaf string-value {
      type string;
      default "bla";
    }
  }
}


  1.  The server does not support ietf-netconf-with-defaults


Using an RPC we configure the node 'string-value' to "bla" (which coincides with the schema-default).  But the optional 'num-value' has been defined with a schema-default.  I'm assuming that the server will return the value 1 in case it receives a get-config request, correct?


  1.  Now assume that the model is changed so that the schema-default of num-value is changed to 5 and the schema-default is changed to "blabla" and the server is restarted with this new module (or does an in-service upgrade)

My assumption is that the server now:

  *   returns 5 for the node 'num-value' (new schema-default and node was not configured explicitly)
  *   but still returns 'bla' for the node 'string-value' (as this node was configured explicitly but happened to be configured to the schema-default0 to the same get-config request.

Is that understanding correct?

I'm not looking at this topic from the view-point whether this is good YANG-practice but from the viewpoint of what must be expected from a NC server implementation.

Best regards, Bart