Re: [netmod] datastore-specific constraints

"Reshad Rahman (rrahman)" <rrahman@cisco.com> Wed, 12 December 2018 15:31 UTC

Return-Path: <rrahman@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 A2337130934 for <netmod@ietfa.amsl.com>; Wed, 12 Dec 2018 07:31:00 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -15.958
X-Spam-Level:
X-Spam-Status: No, score=-15.958 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-1.459, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, 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
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 lkftOpXeBC7d for <netmod@ietfa.amsl.com>; Wed, 12 Dec 2018 07:30:59 -0800 (PST)
Received: from alln-iport-5.cisco.com (alln-iport-5.cisco.com [173.37.142.92]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B5A9F128C65 for <netmod@ietf.org>; Wed, 12 Dec 2018 07:30:58 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=10896; q=dns/txt; s=iport; t=1544628658; x=1545838258; h=from:to:cc:subject:date:message-id:references: in-reply-to:mime-version; bh=AlpCOznQMa+opDiLAbvJHkBiRRl1cRMreWhjKpY05wI=; b=B3I6i8CFsR0GdSBwFYW3sp3CPUNvOjmwWVCt4pBubBHfM3PbxqUfWwmH o7Ghgzz7zvturbL2pdq8wR0dgluxYiCgG1atme9RbvcshG7v/hVKVQW4p Sbt6odcPYKGsreTHkYoE8I7A+H3HUL/DLt1+8RbBCowK0mCCLXALcbIDf 8=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0AFAAAPKRFc/5tdJa1kGQEBAQEBAQE?= =?us-ascii?q?BAQEBAQcBAQEBAQGBUgMBAQEBAQsBgQ12ZoECJwqDcZQrgg2ReoVZgXoLAQE?= =?us-ascii?q?YAQoJg3pGAheCZSI1CA0BAwEBAgEBAm0cDIU8AQEBBAEBIUsLEAIBCBEDAQI?= =?us-ascii?q?oAwICAiULFAkIAgQBDQWDIQGBHWQPpWiBL4VAhGgFjDwXgUA/gREnH4JMgx4?= =?us-ascii?q?BAYIBFoJOMYImAoljhUqBZ4Rqiw4JApFVEgaRRokpj28CERSBJyEBNSiBLnA?= =?us-ascii?q?VOyoBgkGLHIU/coEoizwBgR4BAQ?=
X-IronPort-AV: E=Sophos;i="5.56,344,1539648000"; d="scan'208,217";a="211459101"
Received: from rcdn-core-4.cisco.com ([173.37.93.155]) by alln-iport-5.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Dec 2018 15:30:57 +0000
Received: from XCH-ALN-001.cisco.com (xch-aln-001.cisco.com [173.36.7.11]) by rcdn-core-4.cisco.com (8.15.2/8.15.2) with ESMTPS id wBCFUvqO021660 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL); Wed, 12 Dec 2018 15:30:57 GMT
Received: from xch-rcd-005.cisco.com (173.37.102.15) by XCH-ALN-001.cisco.com (173.36.7.11) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 12 Dec 2018 09:30:56 -0600
Received: from xch-rcd-005.cisco.com ([173.37.102.15]) by XCH-RCD-005.cisco.com ([173.37.102.15]) with mapi id 15.00.1395.000; Wed, 12 Dec 2018 09:30:56 -0600
From: "Reshad Rahman (rrahman)" <rrahman@cisco.com>
To: Jan Lindblad <janl@tail-f.com>, Ladislav Lhotka <lhotka@nic.cz>
CC: "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: [netmod] datastore-specific constraints
Thread-Index: AQHUkieq8fXp6Xl9HkyjD+ZFsNb77qV7lPaA//+21wA=
Date: Wed, 12 Dec 2018 15:30:56 +0000
Message-ID: <E80F6591-EBBE-417B-A2E6-F03319DB4E45@cisco.com>
References: <87zhtan7bo.fsf@nic.cz> <BE57F393-5E00-4877-BA04-7B980DDB3CDF@tail-f.com>
In-Reply-To: <BE57F393-5E00-4877-BA04-7B980DDB3CDF@tail-f.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/10.10.4.181110
x-ms-exchange-messagesentrepresentingtype: 1
x-ms-exchange-transport-fromentityheader: Hosted
x-originating-ip: [161.44.212.42]
Content-Type: multipart/alternative; boundary="_000_E80F6591EBBE417BA2E6F03319DB4E45ciscocom_"
MIME-Version: 1.0
X-Outbound-SMTP-Client: 173.36.7.11, xch-aln-001.cisco.com
X-Outbound-Node: rcdn-core-4.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/P5kFUJgsqoYAfFGyJc1FkVEYW9o>
Subject: Re: [netmod] datastore-specific constraints
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: Wed, 12 Dec 2018 15:31:01 -0000

Hi,

Should it be ignored or rejected?

Also not keen in foo-operational, since it’s in contradiction to NMDA’s goals.

Regards,
Reshad.

From: netmod <netmod-bounces@ietf.org> on behalf of Jan Lindblad <janl@tail-f.com>
Date: Wednesday, December 12, 2018 at 9:53 AM
To: Ladislav Lhotka <lhotka@nic.cz>
Cc: "netmod@ietf.org" <netmod@ietf.org>
Subject: Re: [netmod] datastore-specific constraints

Lada,

Maybe you could just skip the when and explain the behavior in the description? E.g.

leaf foo {
 ...
 description "Foo controls bla, bla.
  Any configured value will be ignored when auto-foo is true.";
}

Best Regards,
/jan


On 12 Dec 2018, at 15:33, Ladislav Lhotka <lhotka@nic.cz<mailto:lhotka@nic.cz>> wrote:

Hi,

in some cases, constraints expressed with "when" or "must" may only be
intended for configuration datastores. A typical example is an
auto-negotiable parameter:

leaf auto-foo {
 type boolean;
 default true;
 description "If true, parameter 'foo' will be auto-negotiated.";
}
leaf foo {
 when "../auto-foo = 'false'";
 ...
}

This means that if auto-foo is true, it is impossible to configure the
foo parameter. However, even with auto-foo = true, it is desirable to
see the auto-negotiated value in <operational>, so, ideally, the "when"
constraint should not apply in <operational>.

How can this logic be modelled under NMDA? Is an extra leaf
"foo-operational" needed?

Thanks, Lada

--
Ladislav Lhotka
Head, CZ.NIC Labs
PGP Key ID: 0xB8F92B08A9F76C67

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