[netmod] What operational values can NMDA return?

"Rob Wilton (rwilton)" <rwilton@cisco.com> Fri, 26 February 2021 15:37 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 2F1333A0C9F for <netmod@ietfa.amsl.com>; Fri, 26 Feb 2021 07:37:20 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.598
X-Spam-Level:
X-Spam-Status: No, score=-14.598 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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=Rbt/MC3m; dkim=pass (1024-bit key) header.d=cisco.onmicrosoft.com header.b=0aL9AShp
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 Xv7T7TQxfPcm for <netmod@ietfa.amsl.com>; Fri, 26 Feb 2021 07:37:18 -0800 (PST)
Received: from rcdn-iport-1.cisco.com (rcdn-iport-1.cisco.com [173.37.86.72]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4999B3A0C9A for <netmod@ietf.org>; Fri, 26 Feb 2021 07:37:18 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=3841; q=dns/txt; s=iport; t=1614353838; x=1615563438; h=from:to:cc:subject:date:message-id: content-transfer-encoding:mime-version; bh=zdyaRA70NnReA2n3jxSYvY8eXVogANHbgRriHpGIxKE=; b=Rbt/MC3mQ7GiOqigMOE2hvIBlYlrN4vGi7KNojHYgXlfXmFNTmrv9TV2 fDTDb0K5R/aY6Qy5M0vr9yNFRkyOAJkQW2WFAcM4EC0GsCkiguagjvvnC 2sDa8OWFgD3qKpeiGp/ucgZgTIJWHr/9CZib9Il1leV2AHYkb3y7RfAsx s=;
IronPort-PHdr: 9a23:SyUBkx99Kdn/A/9uRHGN82YQeigqvan1NQcJ650hzqhDabmn44+7ZxyN5/xmi1XSGJjd6uxJkfHXr7GmVWFTqZqCsXVXdptKWldFjMgNhAUvDYaDDlGzN//laSE2XaEgHF9o9n22Kw5ZTcD5YVCBoHS56jQJXwj5NBR4PP/0Bp+Ug8nkn+y38ofYNgNPgjf1aLhuLRKw+APWsMRz48NiJ689xwGPrGFPfrFdxHhjIhSYmBOv6w==
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0CgBgCrFDlg/4wNJK1fAx4BPAwCCxWBT4FTUQd2WjYxCgGHfgOFOYhVA5khgS6BJQNUCwEBAQ0BASQOAgQBAYRNAoF6AiU0CQ4CAwEBCwEBBQEBAQIBBgRxhWENhkQBAQQ7BgEBNwELAgQBFgIBAQMBAQEeKxcXBgkBBA4FCIJpglUDDiEBA6U/AooldIE0gwQBAQaFHRiCEgMGBYEzgnaKcxyBRUKBEUOCKYUtHyaDA4Irg0YvEIEYbBS6GgqCfAScPqNWtnICBAIEBQIOAQEGgVQ6gVdwFTuCaVAXAg2SDjOKJnM4AgYKAQEDCXyKCAGBDgEB
X-IronPort-AV: E=Sophos;i="5.81,208,1610409600"; d="scan'208";a="857046722"
Received: from alln-core-7.cisco.com ([173.36.13.140]) by rcdn-iport-1.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 26 Feb 2021 15:37:16 +0000
Received: from mail.cisco.com (xbe-rcd-003.cisco.com [173.37.102.18]) by alln-core-7.cisco.com (8.15.2/8.15.2) with ESMTPS id 11QFbHIt032542 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=OK); Fri, 26 Feb 2021 15:37:17 GMT
Received: from xfe-rcd-005.cisco.com (173.37.227.253) by xbe-rcd-003.cisco.com (173.37.102.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.3; Fri, 26 Feb 2021 09:37:16 -0600
Received: from xfe-aln-003.cisco.com (173.37.135.123) by xfe-rcd-005.cisco.com (173.37.227.253) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.3; Fri, 26 Feb 2021 09:37:16 -0600
Received: from NAM02-BL2-obe.outbound.protection.outlook.com (173.37.151.57) by xfe-aln-003.cisco.com (173.37.135.123) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.3 via Frontend Transport; Fri, 26 Feb 2021 09:37:16 -0600
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RESBKCXOaUNPBOx1Zd3R0iFxL06z6DWZQp8H+3T87ReX8EFN/FwRkZ0zCpkaY4vBWUrh34GYGc/sS0RNlaCW8Q02JpGpLlHRx/R1HT5xQ62zjGgxoyTvRDpoONHnXeQFZp3zwozm2/zUEWfOt9JfV07EZSfW54RV1C/IHfUAXAbo+jfjPMwFZUls/IXxZVGUKqSRrl/O1dgd9IVsV+ArWZQcOatgbxTJh7AGM3o9YxqooEJZ2HUxomDvtyRxdK7u/tNs5xZJN/tYg6Scr1p/Dl2CAjqsCmPQ5VUBgN+SWnpsjHUFFcCOxF96u4Lx6WJoYalFmCFhW2Pg217bTRZihA==
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=2Kqfe674riKX0Sa8/kHbzDNMf1qZ5/3nDqXxRFbBZyA=; b=I8pHo0UABsghrLvkj+2NrBmn+YdbsLJCdiJAjB/QBitRnzNaqsMs1q1VKX0D30Jai/RGPmuakpunIgkDJtC5ZLflmYKX0rZN5DxyQA0ueeBTPhYIxfdYfOs1StmgQAxlUzKBn6fyGqg3tpWrdbYpp/HiiBt2ZfHYpdLJ8N1G8B7ri6ZH+AGCKXOA0QmJxVfR5ijDuJmz/8tbFb1c6p1Aw9/YBctjanjk+PaSyUyb7rCtgPv4y069xDmxbnRod8dP7Tebkzwa8W11BPMXcQjhxUcyTnqwg/HUwzrW5lPWAmww+w8ogoA7UxGmKPTFGeYJ2z8WNLFDng5vZ3Sz0PARaw==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cisco.com; dmarc=pass action=none header.from=cisco.com; dkim=pass header.d=cisco.com; arc=none
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=2Kqfe674riKX0Sa8/kHbzDNMf1qZ5/3nDqXxRFbBZyA=; b=0aL9AShp6xsO+/kL7Ve8+yWdzJC/AFNwG0hpeBSsD3RFhZDNLWvsbFlggKJ4Z9naSHlZ/lq+OQCq6WxflQ2fZPQN1ytEJIUJR5qp12Os/OOYB0VaSBV/QdmhqPQP+lG+PleaSap6QTMMQeRTwx6IRLDhHDgO5zEUw/hoSmuxy4g=
Received: from MN2PR11MB4366.namprd11.prod.outlook.com (2603:10b6:208:190::17) by BL0PR11MB3202.namprd11.prod.outlook.com (2603:10b6:208:65::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3868.33; Fri, 26 Feb 2021 15:37:15 +0000
Received: from MN2PR11MB4366.namprd11.prod.outlook.com ([fe80::24c4:4c09:f6f0:5510]) by MN2PR11MB4366.namprd11.prod.outlook.com ([fe80::24c4:4c09:f6f0:5510%2]) with mapi id 15.20.3868.033; Fri, 26 Feb 2021 15:37:15 +0000
From: "Rob Wilton (rwilton)" <rwilton@cisco.com>
To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
CC: "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: What operational values can NMDA return?
Thread-Index: AdcMVTgjp5I1ru2+RgW2s9P9UZly9g==
Date: Fri, 26 Feb 2021 15:37:15 +0000
Message-ID: <MN2PR11MB43663C3AE37A5CD1FB607444B59D9@MN2PR11MB4366.namprd11.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: jacobs-university.de; dkim=none (message not signed) header.d=none;jacobs-university.de; dmarc=none action=none header.from=cisco.com;
x-originating-ip: [82.12.233.180]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 3c7d1df8-086d-4a95-64f9-08d8da6c64b3
x-ms-traffictypediagnostic: BL0PR11MB3202:
x-ms-exchange-minimumurldomainage: jacobs-university.de#0
x-microsoft-antispam-prvs: <BL0PR11MB3202DEBC22424049F4DAFB12B59D9@BL0PR11MB3202.namprd11.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: NXNKBp/M9L2hwb49qphac1QBx/uY/klN3ox8LJT5GU188GbmkkuV5Vify8xtDVUru3/bXVkmhnlEO3wmy+GCbJYPZDXw9kuL4VaLrmXUWQCzU/sKv+kP31mHoNXcncQd180qv6q7aQLbVHadKZqEUZ6V3oOtD9pwNQSbpYxqiDYpUOVJuEv/S6w0MIp95GROaOAdw3D1YsSo58XT1fg8asTEslMHjCjtU/z6YHLVwiwsYkVTCKare8RPD5OV1WjH1pAFXTpieZeLkZ29HBoDGnHxe1MDOCUsMco7babJW3++wksrKItWetFrGIHHm+bshEDmvo3aXLUJGLubrRnUhev0E6pBTsKtU5yVq3JBheRjid4Sf0F1JTpQKPCcjsb3pRoJ3CXlsqMgSJo2MstZcxLTLx0hx8Q4nHOg45cZaFmykWGkUiSbYqjaYE8neCJz/CAxRAusAMMHzGwHMUQY8ESQpKOX2Bl+4JcgUtNemTFlKQaVZaV0rKNx6X6veL1u0pEg6+iDr6X3IWbkFm0VS8tfz3rV2uAkWy0dMxBOMF5nyGYxaokdFKHQzdOHZ90EnhrvT3yKJw3TzhNVG01GYIhUG1+hdBnicaKU73h+tbI=
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MN2PR11MB4366.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(376002)(346002)(136003)(39860400002)(366004)(396003)(5660300002)(71200400001)(66446008)(9686003)(26005)(2906002)(86362001)(52536014)(8676002)(8936002)(4326008)(83380400001)(6916009)(478600001)(53546011)(66556008)(33656002)(76116006)(186003)(55016002)(6506007)(316002)(64756008)(66946007)(66476007)(7696005); DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata: yeZ6mIJy2n/VoAQG7i7NaeEuVsfH5r9DOD7M/W6jZw5CsroGrsjswFN40aycBo6OjDxJAtIoS817jwLuRMqjiBOZbGly/DYR3RpK8syDg/qqzl0SvLkK4yEotGq/dRLoN35mPIwxedPk6Ee1LN9ihGvgs4IyEBKpywSQi8ra4M7fBRJ3ro/aYSKhvPsVx/Ghs8F0Md9w5UuHBbLr7DA7RwAaBuCw2QeBZyU7qfPJgVzpwfbGsgIqiIAP1oebKpbvwyOYu9TUOdvwS5pivrTb4a2PIyvUuuu8L3uTCre+hX1YMeZvJ5F8zj0u8Qky6sQqVxoy5by21Cp2kocfxTmXLton18qceo3OorRbC43g/E6+2uCik1/5VWQUyUWTTyHcl8YCWkXAvHN+ODaIEfqCmtVmY5w88dDnPv2jXaZpOdSBQ7+gqQjLN9FLq5wGhXak8Omliosv9xFjP8yzi+h0pAWK+heygpHWNY7delKEQjmhOXbQpHRm73RGKC6OiBEQrX+48k1F6kQI6Pt7Q1cV1fW1OZGnALexDOt180o2PQBLSXyhZINFqrfTE+xKMLFpnN/Byhz2TFqQyFIESSrarepeMrqcIEjHHAdGaoQzaytv/z3wyYbVTZ5Klz9qA7HcAy8AKG9STkwbk8n5PwYMmo0zYyhUp5IuZMN4LFZzLfST9dFP9YPZdMLTjYNl1Kj/xGLexuCl4F/2089G7V+AP17qwB45pFC4pfOmWsnYq6kIloqT2yETg83UbOkcz57hFfNFHMe/ZBDmZ2jmiD/DffrawzddrtpvFA+MsxqyrV3sWNzz2hVtxKJdCRsdD6225pOUyeJzKBa7740b1XpgIurKpnoGNOQGvhARzMXyVfcFDS2lUg8YJg/ahYfDsXwRFss2NeKxDcp7x2A/wlU3we61au48rMlHNBntqdtsxOzNRFQHpjicb7IKg7byROjc2PliS/puBKne9WL2N20i4b9oX1uLlMidlbrvnmw5BCRfGfQM2JiZZX61PtbUZ+w6l1Rlfpjtie/s5wJc7Oq45RkeBEkOflNG6rYxpuFNsDOr4Pk5gdslxdSt+Ojv21fHv7NA30zjjnbJ7CLILxlMPcTN8UQlxpqX1rMh54F1MyvWWRPjfiQ78+uuh5CCk0H6ml1wyLb2WA+uITZMbTSzVTqdiOcyQsDaW3KQhkDKPIp3tD2+xjmqS2xnPTFTQ9bPptFp2rZ3jpxFfCF6GD59Nduy9udiou9pD4bLYqdeENLt+KdjdQHE/nIG6r1O+KScX1QwSnyZxWbqJL01LS4Y4TF5w+Y8Oa17r2RhI2ODWYrMA5b0n7DuRdrrBen5r1J2
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: MN2PR11MB4366.namprd11.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 3c7d1df8-086d-4a95-64f9-08d8da6c64b3
X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Feb 2021 15:37:15.2907 (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: LGqTlwY0S/45qqxX6FnU3Uw+CHV2QykBXgGsivXNSA+QncZN2czBW04BpRkKxnI0xAyDg8UAZNWgr6Hyz/ie5Q==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR11MB3202
X-OriginatorOrg: cisco.com
X-Outbound-SMTP-Client: 173.37.102.18, xbe-rcd-003.cisco.com
X-Outbound-Node: alln-core-7.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/sni13svSxgg9TEFZtKqVYJEOfQY>
Subject: [netmod] What operational values can NMDA return?
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, 26 Feb 2021 15:37:20 -0000


> -----Original Message-----
> From: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
> Sent: 26 February 2021 14:28
> To: Rob Wilton (rwilton) <rwilton@cisco.com>
> Cc: netmod@ietf.org
> Subject: Re: [netmod] type equivalence
> 
> On Fri, Feb 26, 2021 at 12:21:26PM +0000, Rob Wilton (rwilton) wrote:
> >
> > Tangentially, it is worth noting the RFC 8342 also writes about
> syntactic
> > constraints covering types:
> >
> > 5.3.  The Operational State Datastore (<operational>)
> >
> >    Syntactic constraints MUST NOT be violated, including hierarchical
> >    organization, identifiers, and type-based constraints.  If a node in
> >    <operational> does not meet the syntactic constraints, then it
> >    MUST NOT be returned, and some other mechanism should be used to flag
> >    the error.
> >
> > I'm not sure how clear RFC 8342 section 5.3 is about returning values
> > that can be represented by the underlying built-in-type, but are outside
> > the value space defined by a range, length, or pattern statement.
> >
> > My memory during the discussions was that it is allowed to return a
> value
> > outside arange, length, pattern statement, as long as it is contained
> > in the value space of the built-in-type.  E.g., cannot return 257 in a
> > uint8, but can return 11 even if the type range is 1..10.
> >
> > But, I'm not sure that is what the text actually states.
> 
> Perhaps this requires a separate thread. Perhaps 'syntactic
> constraints' was not a good choice and yes different people might
> understand 'type-based constraints' differently. RFC 7950 says:
> 
>    The following properties are true in all data trees:
> 
>    o  All leaf data values MUST match the type constraints for the leaf,
>       including those defined in the type's "range", "length", and
>       "pattern" properties.
[RW] 

But RFC 8342 also states:

   <operational> SHOULD conform to any constraints specified in the data
   model, but given the principal aim of returning "in use" values, it
   is possible that constraints MAY be violated under some circumstances
   (e.g., an abnormal value is "in use", the structure of a list is
   being modified, or remnant configuration (see Section 5.3.1) still
   exists).  Note that deviations SHOULD be used when it is known in
   advance that a device does not fully conform to the <operational>
   schema.

   Only semantic constraints MAY be violated.  These are the YANG
   "when", "must", "mandatory", "unique", "min-elements", and
   "max-elements" statements; and the uniqueness of key values.

   Syntactic constraints MUST NOT be violated, including hierarchical
   organization, identifiers, and type-based constraints.  If a node in
   <operational> does not meet the syntactic constraints, then it
   MUST NOT be returned, and some other mechanism should be used to flag
   the error.

The first paragraph to me suggests that it is right to return an abnormal value.

E.g., perhaps the IPv6 MTU is only allowed to be configured to values greater than 1280, but due to a bug, what actually gets programmed is 1000.  Should the device return the "in use" MTU value?  My understanding of the NMDA architecture is that it should.

However, the second paragraph doesn't list length, pattern, or range as constraints that can be violated, so perhaps it is not allowed.  But I'm not convinced that is what was originally intended ...

Regards,
Rob

  



> 
> So I am not sure about returning 11 for a range 1..10.
> 
> /js
> 
> --
> 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/>