[netconf] Question related to ietf-netconf-with-defaults

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

Return-Path: <bart.bogaert@nokia.com>
X-Original-To: netconf@ietfa.amsl.com
Delivered-To: netconf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id CC89A3A086B for <netconf@ietfa.amsl.com>; Fri, 8 May 2020 07:55:08 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.902
X-Spam-Level:
X-Spam-Status: No, score=-1.902 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] 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 yMUfPQpf71p5 for <netconf@ietfa.amsl.com>; Fri, 8 May 2020 07:55:01 -0700 (PDT)
Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2102.outbound.protection.outlook.com [40.107.21.102]) (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 B3C633A0B6A for <netconf@ietf.org>; Fri, 8 May 2020 07:55:00 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Uq8+aWVe0NTrUjJT9tJTlErzHpeN4lMAPBvzYl+YJgsIUemrmZg10bV2GSRrYcmKG28qtr0l8500Q+PhDhWkbVwHtUHXXYmHklLyWOfqqovDoB6veV7Km5j2Uli/BNB7z4NhUKHJmaI341K1aK3/DkGJc/DTr+UynpjCp0cP+ZPPEx2HhrLZJ1GbScbgWLbEG5gc6vmN/f0FRMIGYGVf6GToIEUTvFs3IFoqvF9fRB51FUOGKlpS8cnZWqqU+Wge8q2sLWexYS4AKzBTsFvWf3I/Sq0zkgO6e52Pbc4myHJEdd04hnXJ83ZlBx+BC/3EJctT3dqtEGerVIqYPn1WDw==
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=HFOq9AX9hQS2KjScWWp44V9JBmba24h2vHy5BCc8oQg=; b=a3848LYgILAl5Vsk10Jz4L7dClVamXD5xaPdiE71RrrCvINyQTwz1MMt1ppviUrPIV0rL/6p/5UZL6ttB0FqYYl2wZk3lk0InDTbvaxfKY0/p7Qyqy3uWUtU3wsGLulTnmx6COob7xFvb11LkWC5H41qayG98eslBWAfb1vdFxOYg2d5qt44q9HrApiglpdsz7zu8x4VGxgS4QF1qXII9j1zXUA9m3/Sc94hCDsX7ok/ELfotiZGJMrmno8a2d6o2EJHZJKA164CaY/xd6gvNW86RypGUdx7LT6UhoNa0Xay0USOflvvIzTeqNiMnuV26LNms2497EoL3hHvXST4yQ==
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=HFOq9AX9hQS2KjScWWp44V9JBmba24h2vHy5BCc8oQg=; b=SQ1lTfERX6KlciXd1uYYkCO26Hwf2Y31ibAa0vEqnGwZwWWyyi0EZQsogFbrw22tTcmMY/UDT9WOYOgJ/xYmeAImsWxIpw1YfIvcek9ICCwBLqT720PIVHs4U46Xpjh1Uu9sjpxKn11jPfYqD1f1Ka6dF0Dt5jmKKNkwFNz9j6Y=
Received: from AM0PR07MB4547.eurprd07.prod.outlook.com (2603:10a6:208:73::13) by AM0PR07MB4420.eurprd07.prod.outlook.com (2603:10a6:208:b9::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2979.23; Fri, 8 May 2020 14:54:57 +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 14:54:57 +0000
From: "Bogaert, Bart (Nokia - BE/Antwerp)" <bart.bogaert@nokia.com>
To: "netconf@ietf.org" <netconf@ietf.org>
Thread-Topic: Question related to ietf-netconf-with-defaults
Thread-Index: AdYlQ1uOZrBhhp89RjO4s3/1vCvkdAABTalA
Date: Fri, 08 May 2020 14:54:57 +0000
Message-ID: <AM0PR07MB4547FFCD1BF0DEEA2C55D0D294A20@AM0PR07MB4547.eurprd07.prod.outlook.com>
References: <AM0PR07MB45477998534B8C814B1B155894A20@AM0PR07MB4547.eurprd07.prod.outlook.com>
In-Reply-To: <AM0PR07MB45477998534B8C814B1B155894A20@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: 6c4d2d81-e9ba-4391-bd89-08d7f35fc6cb
x-ms-traffictypediagnostic: AM0PR07MB4420:
x-microsoft-antispam-prvs: <AM0PR07MB44204125AB7A6953927B935F94A20@AM0PR07MB4420.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: dUzqOr2ADxow0CLQoBsSzqItWG8OE23WYRKc4scYL4/mHgGxF+weK/m1dliAc1WYeN6JFRDNK/oh+hHnA2iuzG/O/tT7X+5qXYP+SIHQun1iWn2wshUl5QXvln6FTBoiyMGMrYGQopMCtRY2Un8LyxXfbNZDK+cFoGF9rgLWA1TlIf5P0dDArUHKXP5NapIHJfxwzkRCn42DqmaeGN9h5h/tKkemsw1toE6OBVI1s+UWYzUtpmaK/ZNzU3IzbCH4jT9CBV+PoOXvxgx1k/kPz67OH4JaU0y/j88SuVvQUyeUxzxpsJcK/EeuRtaU31lb5M8ZAtIwtTnO0c7cmjPmFowLzM/mg1BOBb5liotYieJ2rgdh90QOWQBtf9tb9gjmx446aSLmjt0hODoswYR9O+WGxkN5U8tVGTHGNKjILstisWgRdpdsLSsdtv8tWOKpT5Fvi4K+yM4QyBhuEOO2kJBSQFgVs/sCGe3IeLuHBPUjvhGJVK2ydsq9F+D3TsVCQTD2wTQQp0i6kabanZg+IIHCtAiGJxTuVwAzebxbmqV/AfGvWdVHwObxZ/qRw7CIiBL7BhU641Keos0EPn+94mIajPjFPrqz+1Jxda8qiLE=
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)(396003)(39860400002)(346002)(366004)(136003)(376002)(33430700001)(66556008)(64756008)(66446008)(71200400001)(478600001)(7696005)(186003)(52536014)(6506007)(8936002)(166002)(2906002)(76116006)(33440700001)(5660300002)(6916009)(8676002)(316002)(66946007)(86362001)(66476007)(55016002)(9686003)(33656002)(2940100002)(83280400001)(83310400001)(83320400001)(83300400001)(83290400001); DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata: 2XioL3Au3pb3Osityd0zrjhDwIJ8h4dprfleDNpxFVaQJR3fwVWQX4srlUXewIttnss0ElsAGlpi0UD66FajU+3BrFqL1MJcFjIjBgN/XAs5iFNlB1eDorEEAabsqNtaCVRuOZ5SMc1hZCIsS+Ozjjut7sgODXm3UF3rG8reZtIF6Iy/56CDiAzciHhbNsO7yyWQACgGvNuDzOJzk6cXSGo4SerON0WNE4Pd+kfcglnAxFP69BrZblFPg9Tc69rDIQwo7xb7b4a9eEbDOwcrt2fM271IiQJONoIJMsHPpKaOMukBIHXECXD79QDlChjbmwft2VyopfCs6CKVt2w/K7DHnHtDcK7+LN5+LvGi5q5lU/nI/731/gJOeQcSQ0eGedwKyTBnRSruu/iMsZPhpuxzuUt2Di9EEIR7U99eXMoLfnFS+z2PlkAgEzeO7yvfe3KVkWyf//9XPvJoUPdFKjoMXqyRpQTe0+KDQ4QiOvK9gEHNBSQ+aMxKQGbsa46XwV8u/7l+6StcXD0US76oSiQnZscwL/RD/RZud/C0n8PzNPLQc0zL6geyeY2hQcu8
x-ms-exchange-transport-forked: True
Content-Type: multipart/alternative; boundary="_000_AM0PR07MB4547FFCD1BF0DEEA2C55D0D294A20AM0PR07MB4547eurp_"
MIME-Version: 1.0
X-OriginatorOrg: nokia.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 6c4d2d81-e9ba-4391-bd89-08d7f35fc6cb
X-MS-Exchange-CrossTenant-originalarrivaltime: 08 May 2020 14:54:57.7669 (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: 5Sx7mJZGWLbzN0HlKh1L6y9S9tBNarTY9LkKDuF5GcYWV0iHv4/2DpdPgwp0kRxa4dyAmdVTbsAsTA/asxWzeA==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR07MB4420
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/Lr-KhKG8-cDJjihJnjzOXrA8t1s>
Subject: [netconf] Question related to ietf-netconf-with-defaults
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NETCONF WG list <netconf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netconf>, <mailto:netconf-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netconf/>
List-Post: <mailto:netconf@ietf.org>
List-Help: <mailto:netconf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netconf>, <mailto:netconf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 08 May 2020 14:55:09 -0000

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