Re: [Ntp] Yangdoctors early review of draft-ietf-ntp-yang-data-model-03

Ankit Kumar Sinha <ankit.ietf@gmail.com> Mon, 15 October 2018 15:35 UTC

Return-Path: <ankit.ietf@gmail.com>
X-Original-To: ntp@ietfa.amsl.com
Delivered-To: ntp@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 96CEB130EA0; Mon, 15 Oct 2018 08:35:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.998
X-Spam-Level:
X-Spam-Status: No, score=-1.998 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, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 pQ9IABGM007q; Mon, 15 Oct 2018 08:35:50 -0700 (PDT)
Received: from mail-vs1-xe29.google.com (mail-vs1-xe29.google.com [IPv6:2607:f8b0:4864:20::e29]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8D24E130E9D; Mon, 15 Oct 2018 08:35:50 -0700 (PDT)
Received: by mail-vs1-xe29.google.com with SMTP id g201so16480307vsd.12; Mon, 15 Oct 2018 08:35:50 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=KdFaf+AQvA47AyfX3eiYST4umbX0SwWT/1LqQ1FViDE=; b=LmPAnsXiC+L5HwDhXGp0n1j30foepzrBrm/MOt72IOW83v2f5Of7fXDTZHchNxVlQ2 Fa5+AxqqTlf11qddtmjPVTI5GIqhezIjIC78+zfp25V6nV/ExkcpY8G/ZmrCVM6/o7cw BsmOhO51a56TP8OghbCkrNTYaQlqHdtMIjEbLdHt0rhLhM/wlXb2PweMnFnK9ZZRGQmG R+I5MHw2/6gCIO68ogE1Adwy2Os164fpC5iF3l/hxgOQdMaNkzewmuaapGoF1TDpFgLS khPmMSmGRBn/ptB6/DPBqvvzlNoKtQOxn9FkAmo6xKOYM4u9e0pb371/zfyY9W1zc0IF XKcg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=KdFaf+AQvA47AyfX3eiYST4umbX0SwWT/1LqQ1FViDE=; b=HWERMogz5AdXY30zJlFblLLY3cRFbeSOoMvrcQ6JOsQqzMcP6CrnB7X221/NXbEPny nd3/J6kUhX3vKi2woa8ahruTSsDNLw1oQD/+Ir5ZxFhutgGU1VU0V+5urzUvPaYUKbH9 e2Cr1nW/3vay1e1igR+PJ6DL94RSx2nss5t2hwB030T2D8VMp70GU3CWAJ+l7cp/iN5N QneV2yV7pxD5FIDqvhxvzy8zJbtbha0f4PrUBToKMTN45st+QTM89VEDotvQ4pjUu7LT QhVTbiNhuHNFoI/41IM0v4Jq8NzlOtG/QrI457NU7lQ6xgWJk0pZ4kZ4/4nFrggeGtLQ O72g==
X-Gm-Message-State: ABuFfohHLn60U5bTKxWsaoCu/OG6Q1aMmS0tPF5ULvSx+eqLiN6pa+kS OB3ky9eoyyrfArbZlylL5XkEiawnlWcK8N3vJRTlYtM9
X-Google-Smtp-Source: ACcGV61svbxNCZMG4km1VgBeu4DfhsBEkiJ9KPu0oi886afcjOKlggZLJSbOikxh5J38Gc1NpuruJ3Y0pFpKsdg0JJw=
X-Received: by 2002:a67:64c1:: with SMTP id y184mr939754vsb.193.1539617749489; Mon, 15 Oct 2018 08:35:49 -0700 (PDT)
MIME-Version: 1.0
References: <153904592430.18394.3630036782970324198@ietfa.amsl.com>
In-Reply-To: <153904592430.18394.3630036782970324198@ietfa.amsl.com>
From: Ankit Kumar Sinha <ankit.ietf@gmail.com>
Date: Mon, 15 Oct 2018 21:05:37 +0530
Message-ID: <CACxeDFrpQvUteo3xRB_WtroZBe74twB-DCD9KxMG7pq6+v1Qbw@mail.gmail.com>
To: andy@yumaworks.com
Cc: yang-doctors@ietf.org, ntp@ietf.org, netmod@ietf.org, draft-ietf-ntp-yang-data-model.all@ietf.org
Content-Type: multipart/alternative; boundary="0000000000000c5d4a0578463141"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/qgfukmwiEkpczwKMAZAjHK_tHeQ>
Subject: Re: [Ntp] Yangdoctors early review of draft-ietf-ntp-yang-data-model-03
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <ntp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ntp>, <mailto:ntp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ntp/>
List-Post: <mailto:ntp@ietf.org>
List-Help: <mailto:ntp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ntp>, <mailto:ntp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 15 Oct 2018 15:35:54 -0000

Hi Andy,

Please find our comment in line below

Thanks,
Ankit

On Tue, 9 Oct 2018 at 06:15, Andy Bierman <andy@yumaworks.com> wrote:

> Reviewer: Andy Bierman
> Review result: Almost Ready
>
>
>
>
> Overall:
>    - no compiler warnings; passes --ietf check as well
>
> Normative Sections:
>
> sec 1:
>    - YANG version cited should be RFC 7950, not 6020.
>      YANG 1.1 is used in this document.\
>

[Authors]: Updated

>
> sec 4: Relationship with RFC 7317
>   - this section should say how overlapping configuration
>     objects interact. Does setting 1 field (e.g., /system/ntp/enabled)
>     change the other field at the same time  (e.g., /ntp/enabled)
>     It seems the intent is to ignore and deprecate /system/ntp if
>     /ntp is implemented.  This section should explain.
>

[Authors]: Updated

>
> sec 5:
>   - this section is supposed to have citations for every imported
>     YANG module used in the ietf-ntp YANG module
>

[Authors]: In section 1.4, we have a table of all the improted yang modules
with references. We also use reference statement in the yang model in
section 5. All imported modules are mentioned as normative reference. Is
there any other change you would like to see?

>
>
> YANG Module Issues:
>   1 - Indexing used in /ntp/associations list
>      key "address local-mode isConfigured";
>
>      a) will there really be multiple instances per address for
>         different association-modes?  The list description-stmt
>         should explain.
>

[Authors]: It is possible to have different association-modes for same
address. Example is updated in the the document

>
>      b) There can be configured values (isConfigured key) and learned
>         entries for the same address and association-modes?  Why isn't
>         NMDA used instead? (i.e. intended and operational datastores
>         used instead of the isConfigured list key?)
>

[Authors]: Here /ntp/associations/ is read only, which can have learned
entries and configured entries. Configured entries depends on "unicast,
broadcast, multicast and manycast" configurations. Lets take following
examples

1) If RT1 acting as broadcast server,
   and RT2 acting as broadcast client, then RT2
   will form dynamic association with address as RT1,
   local-mode as client and isconfigured as false.

2) When RT2 is configured
   with unicast-server RT1, then RT2 will form
   association with address as RT1, local-mode as client
   and isconfigured as true.

>
>   2 - Purpose of /ntp/access-rules
>       There is no explanation for what it means to configure an entry
>       here that points at an ACL entry in /acls/acl; The description
>       statement needs to specify the details.  Doesn't the ACL module
>       just work? How does the /ntp/access-rules/access-rule list
>       change behavior?
>

[Authors]: We have updated draft with "section 5 Access Rules" with
explanation

>
>   3 - Reinvent Key Management
>       It does not seem like a good idea for every protocol to
>       duplicate key management functionality. The draft should
>       explain why other YANG modules related to this work are not
>       relevant here
>

[Authors]: We have updated draft with "section 6 Key Management" with
explanation

>
>   4 - Reference statements
>       There are no reference statements used in any objects or typedes
>       Definitions which are intended to match a definition in NTP
>       should include a reference-stmt
>

[Authors]: Updated

>
> Minor Issues:
>    - typedef names should be singular
>       - access-mode not access-modes
>       - association-mode not association-modes
>    - grouping comman-attributes should be common-attributes
>    - mixed-case naming should not be used (isConfigured)
>    - indentation used in module needs a lot of corrections
>    - some descriptions have incorrect tense (e.g., "NTP is enable")
>    - port definition should be based on inet:port-number, not uint16
>      OLD:
>          type uint16 {
>            range "123 | 1025..max";
>          }
>      NEW:
>          type inet:port-number {
>            range "123 | 1025..max";
>          }
>

[Authors]: All the above comments are updated

   - /ntp/authentication/trusted-keys
>      Why is this list needed? Seems a leaf (e.g., trusted-key (true/false)
>      added to the authentication-keys list is sufficient
>
[Authors]: trusted-key is removed and leaf istrusted is added to
authentication-key

   - /ntp/clock-state : some leafs should have a units-stmt instead of
>      specifying the units in the description-stmt (could also apply
> elsewhere)
>    - Examples should use line continuation convention
>      e.g.:
>      OLD:
>       <transmit-time>10-10-2017 07:33:55.300 Z+05:30
>          </transmit-time>
>      NEW:
>       <transmit-time>10-10-2017 07:33:55.300 Z+05:30\
>          </transmit-time>
>    - a spell checker should be used; There are many description-stmts
>      with spelling errors
>

[Authors]: All the above comments are updated