[netmod] Comments on schema mount draft

Rohit Ranade <rohitrranade@outlook.com> Sun, 25 March 2018 12:46 UTC

Return-Path: <rohitrranade@outlook.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 CA79F127601 for <netmod@ietfa.amsl.com>; Sun, 25 Mar 2018 05:46:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.01
X-Spam-Level:
X-Spam-Status: No, score=-2.01 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=outlook.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 o8dzS8_JaSpS for <netmod@ietfa.amsl.com>; Sun, 25 Mar 2018 05:46:30 -0700 (PDT)
Received: from APC01-HK2-obe.outbound.protection.outlook.com (mail-oln040092255019.outbound.protection.outlook.com [40.92.255.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7B9421241F8 for <netmod@ietf.org>; Sun, 25 Mar 2018 05:46:30 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=DgXeUE5kE12f8Q7VYcas7sikd5QDmlau6kjW5fbCS90=; b=Uo9JdrAnpdZYQW5zxBjxDHE/2wR0hT1IcGANvrElclYUOu9L7ZZ+7ZHBfxt+K+MxKl1ieq7YhvLiHcDke4YJEZUHT2ysSilUw4dtwHfOOSpwAK3vOWu42Z1Sz55mz6PDXuN7edjSHycAsmoYTRxU2GvmvhtrOdCagTbwUvsxbzGKX9nOLeSTK/kShXAhwUWxyvvuPN5JeHxx5OO1kWunFyjoRAJg7jX55SSHz1IljXH5uB6bNpVfQoOrXLsADQIfir05bAIcVa0pfFRfUyf3+qWuKExIzXa0LPN+atOalMBKV1D8W4jyUdR+RsYnpTk0GNYkUpvb2/F2WvLCJyOjmQ==
Received: from SG2APC01FT050.eop-APC01.prod.protection.outlook.com (10.152.250.55) by SG2APC01HT154.eop-APC01.prod.protection.outlook.com (10.152.251.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.631.7; Sun, 25 Mar 2018 12:46:26 +0000
Received: from HK2PR0401MB1265.apcprd04.prod.outlook.com (10.152.250.54) by SG2APC01FT050.mail.protection.outlook.com (10.152.251.238) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.631.7 via Frontend Transport; Sun, 25 Mar 2018 12:46:25 +0000
Received: from HK2PR0401MB1265.apcprd04.prod.outlook.com ([fe80::2db2:49db:7b47:d80]) by HK2PR0401MB1265.apcprd04.prod.outlook.com ([fe80::2db2:49db:7b47:d80%4]) with mapi id 15.20.0609.012; Sun, 25 Mar 2018 12:46:25 +0000
From: Rohit Ranade <rohitrranade@outlook.com>
To: "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: Comments on schema mount draft
Thread-Index: AQHTxDbT1I3AIjMZP0GUUq533Jigqg==
Date: Sun, 25 Mar 2018 12:46:25 +0000
Message-ID: <HK2PR0401MB12659DDADA1E5DAE6EE5AFA3DBAE0@HK2PR0401MB1265.apcprd04.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-incomingtopheadermarker: OriginalChecksum:2345548C3E2BD5409E48042D10B44D9B1D3161C7E3B1E0B22FAA015964616144; UpperCasedChecksum:FCA51C7710AE56F27669E031645CA2940671BA30DF8C9BB5486FCF7E47E7AABC; SizeAsReceived:6817; Count:43
x-tmn: [ypZTJhByyXIb/ectN+5oXz5sE8Pi775d]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; SG2APC01HT154; 7:GxYSaaR0iJM6AZ4oYQISdq2uQaL+AqCnRalMUWYqWLVd/07/GYqd39pSraaK6RExLihXdMQnBUQSJOeW5ZA7Jd95HYuAuHhIZ/k/0jUxDEfVJqZWyWPDal+8yzAM183+mvrHbaL0l/1F7+h0/2QWWelsaMb7XvQ4Z3OxcGaVSFxBWc9hf6v5Bplx3x55CENVVeIfhlYgCmOSfJyJEYbESOKm8qLhKdYhXku22bja6juunwDOQeOr9bepZM+HhePW
x-incomingheadercount: 43
x-eopattributedmessage: 0
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(201702061078)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031324274)(2017031323274)(2017031322404)(1601125374)(1603101448)(1701031045); SRVR:SG2APC01HT154;
x-ms-traffictypediagnostic: SG2APC01HT154:
x-ms-office365-filtering-correlation-id: e897936a-68e1-4a54-aee6-08d5924e6bf8
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(444000031); SRVR:SG2APC01HT154; BCL:0; PCL:0; RULEID:; SRVR:SG2APC01HT154;
x-forefront-prvs: 0622A98CD5
x-forefront-antispam-report: SFV:NSPM; SFS:(7070007)(98901004); DIR:OUT; SFP:1901; SCL:1; SRVR:SG2APC01HT154; H:HK2PR0401MB1265.apcprd04.prod.outlook.com; FPR:; SPF:None; LANG:;
x-microsoft-antispam-message-info: hzWyKBzDNo9N2XejlzW18hZ2svakDmTuPWmD1ZBpffa7v012NwMYt3DMchk3OQrvhqVRx76gLiGIHl8kezIemgeJ7xAy2aGImDPRyjsKCe2597laPG8PkVaqqD0PhaqAgmUtXD6ctxciHotRr4iTvfP5CaYmjr+T0XbYdrzsMxF8TfzfdH04DdXXN81HTFFj
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative; boundary="_000_HK2PR0401MB12659DDADA1E5DAE6EE5AFA3DBAE0HK2PR0401MB1265_"
MIME-Version: 1.0
X-OriginatorOrg: outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: e897936a-68e1-4a54-aee6-08d5924e6bf8
X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Mar 2018 12:46:25.8046 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Internet
X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2APC01HT154
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/P0JI8XIvobKu0fMJ89GUEfjWJ0U>
Subject: [netmod] Comments on schema mount draft
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.22
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: Sun, 25 Mar 2018 12:46:33 -0000

Hi All,

Please find some comments for the schema mount draft. If I find any other will send in another mail.

Editorial:
============
1. Section 3.1
   "The "mount-point" statement MUST NOT be used in a YANG version 1
   module."
   ==> It is unclear why such a restriction is placed.

2. Section 3.2
   "state data in the "yangmnt:schema-mounts""
   ==> Here the yang tree diagram is not yet introduced. I feel better to introduce
   this diagram as it makes it easier to understand the data-nodes

3. Section 3.2
   "Data in this container is intended to be as stable as data in the
   top-level YANG library"
   ==> What is the meaning of "as stable" as ? As a developer , I am unclear what needs
   to be done here. Please clarify.

4. Section 3.2
   "i.e., instances of that mount point MUST NOT contain any data above
   those that are defined in the parent schema."
   ==> Here "any data above", means "above" in the hieararchy ? Not clear, this is similar
   to having a USB slot, but no device mounted on it as yet in UNIX terms. Right ?
   The query output on parent-schema should give empty data.

5. Section 3.2
   "If multiple mount points with the same name are defined in the same
   module - either directly or because the mount point is defined in a
   grouping and the grouping is used multiple times - then the
   corresponding "mount-point" entry applies equally to all such mount
   points."
  ==> As per tree diagram, "mount-point" has two keys. So each module can have multiple
  mount points. So how to apply it "equally" ? Not clear.

6. Section 3.2
   Instead of "inline" and "shared-schema", I suggest to use "variable-schema" and
   "same-schema"
   Reason: The key difference between the two is that in one case, the schema MAY be different
   while in the other the schema is same. The name can be similar to the reason.

Logical Point:
1. Consider the topology where 1 main device is present with N logical devices behind it.
   When the mounting is done, it is quite possible that some of N devices are having different
   versions of modules.
   This can lead to each instance of mount point, having different schema.
   How can the client understand the schema of each mount-point instance ? Preferably get-schema of these devices and then know the model ?

With Regards,

Rohit R