<?xml version='1.0' encoding='utf-8'?>
<rfc xmlns:xi="http://www.w3.org/2001/XInclude" version="3" category="std" consensus="true" docName="draft-ietf-ntp-yang-data-model-17" indexInclude="true" ipr="trust200902" number="9249" prepTime="2022-07-05T18:50:10" scripts="Common,Latin" sortRefs="true" submissionType="IETF" symRefs="true" tocDepth="3" tocInclude="true" xml:lang="en">
  <link href="https://datatracker.ietf.org/doc/draft-ietf-ntp-yang-data-model-17" rel="prev"/>
  <link href="https://dx.doi.org/10.17487/rfc9249" rel="alternate"/>
  <link href="urn:issn:2070-1721" rel="alternate"/>
  <front>
    <title abbrev="YANG for NTP">A YANG Data Model for NTP</title>
    <seriesInfo name="RFC" value="9249" stream="IETF"/>
    <author fullname="Nan Wu" initials="N." surname="Wu">
      <organization showOnFrontPage="true">Huawei</organization>
      <address>
        <postal>
          <street>Huawei Bld., No.156 Beiqing Rd.</street>
          <city>Beijing</city>
          <code>100095</code>
          <country>China</country>
        </postal>
        <email>eric.wu@huawei.com</email>
      </address>
    </author>
    <author fullname="Dhruv Dhody" initials="D." surname="Dhody" role="editor">
      <organization showOnFrontPage="true">Huawei</organization>
      <address>
        <postal>
          <street>Divyashree Techno Park, Whitefield</street>
          <city>Bangalore</city>
          <region>Kanataka</region>
          <code>560066</code>
          <country>India</country>
        </postal>
        <email>dhruv.ietf@gmail.com</email>
      </address>
    </author>
    <author fullname="Ankit Kumar Sinha" initials="A." surname="Sinha" role="editor">
      <organization showOnFrontPage="true">RtBrick Inc.</organization>
      <address>
        <postal>
          <street/>
          <city>Bangalore</city>
          <region>Kanataka</region>
          <code/>
          <country>India</country>
        </postal>
        <email>ankit.ietf@gmail.com</email>
      </address>
    </author>
    <author fullname="Anil Kumar S N" initials="A." surname="Kumar S N">
      <organization showOnFrontPage="true">RtBrick Inc.</organization>
      <address>
        <postal>
          <street/>
          <city>Bangalore</city>
          <region>Kanataka</region>
          <code/>
          <country>India</country>
        </postal>
        <email>anil.ietf@gmail.com</email>
      </address>
    </author>
    <author fullname="Yi Zhao" initials="Y." surname="Zhao">
      <organization showOnFrontPage="true">Ericsson</organization>
      <address>
        <postal>
          <street>China Digital Kingdom Bld., No.1 WangJing North Rd.</street>
          <city>Beijing</city>
          <code>100102</code>
          <country>China</country>
        </postal>
        <email>yi.z.zhao@ericsson.com</email>
      </address>
    </author>
    <date month="07" year="2022"/>
    <area>int</area>
    <workgroup>ntp</workgroup>
    <keyword>NTP</keyword>
    <keyword>YANG</keyword>
    <abstract pn="section-abstract">
      <t indent="0" pn="section-abstract-1">This document defines a YANG data model that can be used to 
   configure and manage Network Time Protocol (NTP) version 4.  It can 
   also be used to configure and manage version 3.  The data model 
   includes configuration data and state data.</t>
    </abstract>
    <boilerplate>
      <section anchor="status-of-memo" numbered="false" removeInRFC="false" toc="exclude" pn="section-boilerplate.1">
        <name slugifiedName="name-status-of-this-memo">Status of This Memo</name>
        <t indent="0" pn="section-boilerplate.1-1">
            This is an Internet Standards Track document.
        </t>
        <t indent="0" pn="section-boilerplate.1-2">
            This document is a product of the Internet Engineering Task Force
            (IETF).  It represents the consensus of the IETF community.  It has
            received public review and has been approved for publication by
            the Internet Engineering Steering Group (IESG).  Further
            information on Internet Standards is available in Section 2 of 
            RFC 7841.
        </t>
        <t indent="0" pn="section-boilerplate.1-3">
            Information about the current status of this document, any
            errata, and how to provide feedback on it may be obtained at
            <eref target="https://www.rfc-editor.org/info/rfc9249" brackets="none"/>.
        </t>
      </section>
      <section anchor="copyright" numbered="false" removeInRFC="false" toc="exclude" pn="section-boilerplate.2">
        <name slugifiedName="name-copyright-notice">Copyright Notice</name>
        <t indent="0" pn="section-boilerplate.2-1">
            Copyright (c) 2022 IETF Trust and the persons identified as the
            document authors. All rights reserved.
        </t>
        <t indent="0" pn="section-boilerplate.2-2">
            This document is subject to BCP 78 and the IETF Trust's Legal
            Provisions Relating to IETF Documents
            (<eref target="https://trustee.ietf.org/license-info" brackets="none"/>) in effect on the date of
            publication of this document. Please review these documents
            carefully, as they describe your rights and restrictions with
            respect to this document. Code Components extracted from this
            document must include Revised BSD License text as described in
            Section 4.e of the Trust Legal Provisions and are provided without
            warranty as described in the Revised BSD License.
        </t>
      </section>
    </boilerplate>
    <toc>
      <section anchor="toc" numbered="false" removeInRFC="false" toc="exclude" pn="section-toc.1">
        <name slugifiedName="name-table-of-contents">Table of Contents</name>
        <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1">
          <li pn="section-toc.1-1.1">
            <t indent="0" pn="section-toc.1-1.1.1"><xref derivedContent="1" format="counter" sectionFormat="of" target="section-1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-introduction">Introduction</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.1.2">
              <li pn="section-toc.1-1.1.2.1">
                <t indent="0" keepWithNext="true" pn="section-toc.1-1.1.2.1.1"><xref derivedContent="1.1" format="counter" sectionFormat="of" target="section-1.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-operational-state">Operational State</xref></t>
              </li>
              <li pn="section-toc.1-1.1.2.2">
                <t indent="0" keepWithNext="true" pn="section-toc.1-1.1.2.2.1"><xref derivedContent="1.2" format="counter" sectionFormat="of" target="section-1.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-terminology">Terminology</xref></t>
              </li>
              <li pn="section-toc.1-1.1.2.3">
                <t indent="0" keepWithNext="true" pn="section-toc.1-1.1.2.3.1"><xref derivedContent="1.3" format="counter" sectionFormat="of" target="section-1.3"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-tree-diagrams">Tree Diagrams</xref></t>
              </li>
              <li pn="section-toc.1-1.1.2.4">
                <t indent="0" pn="section-toc.1-1.1.2.4.1"><xref derivedContent="1.4" format="counter" sectionFormat="of" target="section-1.4"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-prefixes-in-data-node-names">Prefixes in Data Node Names</xref></t>
              </li>
              <li pn="section-toc.1-1.1.2.5">
                <t indent="0" pn="section-toc.1-1.1.2.5.1"><xref derivedContent="1.5" format="counter" sectionFormat="of" target="section-1.5"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-references-in-the-model">References in the Model</xref></t>
              </li>
              <li pn="section-toc.1-1.1.2.6">
                <t indent="0" pn="section-toc.1-1.1.2.6.1"><xref derivedContent="1.6" format="counter" sectionFormat="of" target="section-1.6"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-requirements-language">Requirements Language</xref></t>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.2">
            <t indent="0" pn="section-toc.1-1.2.1"><xref derivedContent="2" format="counter" sectionFormat="of" target="section-2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-ntp-data-model">NTP Data Model</xref></t>
          </li>
          <li pn="section-toc.1-1.3">
            <t indent="0" pn="section-toc.1-1.3.1"><xref derivedContent="3" format="counter" sectionFormat="of" target="section-3"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-relationship-with-ntpv4-mib">Relationship with NTPv4-MIB</xref></t>
          </li>
          <li pn="section-toc.1-1.4">
            <t indent="0" pn="section-toc.1-1.4.1"><xref derivedContent="4" format="counter" sectionFormat="of" target="section-4"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-relationship-with-rfc-7317">Relationship with RFC 7317</xref></t>
          </li>
          <li pn="section-toc.1-1.5">
            <t indent="0" pn="section-toc.1-1.5.1"><xref derivedContent="5" format="counter" sectionFormat="of" target="section-5"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-access-rules">Access Rules</xref></t>
          </li>
          <li pn="section-toc.1-1.6">
            <t indent="0" pn="section-toc.1-1.6.1"><xref derivedContent="6" format="counter" sectionFormat="of" target="section-6"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-key-management">Key Management</xref></t>
          </li>
          <li pn="section-toc.1-1.7">
            <t indent="0" pn="section-toc.1-1.7.1"><xref derivedContent="7" format="counter" sectionFormat="of" target="section-7"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-ntp-version">NTP Version</xref></t>
          </li>
          <li pn="section-toc.1-1.8">
            <t indent="0" pn="section-toc.1-1.8.1"><xref derivedContent="8" format="counter" sectionFormat="of" target="section-8"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-ntp-yang-module">NTP YANG Module</xref></t>
          </li>
          <li pn="section-toc.1-1.9">
            <t indent="0" pn="section-toc.1-1.9.1"><xref derivedContent="9" format="counter" sectionFormat="of" target="section-9"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-usage-example">Usage Example</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.9.2">
              <li pn="section-toc.1-1.9.2.1">
                <t indent="0" pn="section-toc.1-1.9.2.1.1"><xref derivedContent="9.1" format="counter" sectionFormat="of" target="section-9.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-unicast-association">Unicast Association</xref></t>
              </li>
              <li pn="section-toc.1-1.9.2.2">
                <t indent="0" pn="section-toc.1-1.9.2.2.1"><xref derivedContent="9.2" format="counter" sectionFormat="of" target="section-9.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-refclock-master">Refclock Master</xref></t>
              </li>
              <li pn="section-toc.1-1.9.2.3">
                <t indent="0" pn="section-toc.1-1.9.2.3.1"><xref derivedContent="9.3" format="counter" sectionFormat="of" target="section-9.3"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-authentication-configuratio">Authentication Configuration</xref></t>
              </li>
              <li pn="section-toc.1-1.9.2.4">
                <t indent="0" pn="section-toc.1-1.9.2.4.1"><xref derivedContent="9.4" format="counter" sectionFormat="of" target="section-9.4"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-access-configuration">Access Configuration</xref></t>
              </li>
              <li pn="section-toc.1-1.9.2.5">
                <t indent="0" pn="section-toc.1-1.9.2.5.1"><xref derivedContent="9.5" format="counter" sectionFormat="of" target="section-9.5"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-multicast-configuration">Multicast Configuration</xref></t>
              </li>
              <li pn="section-toc.1-1.9.2.6">
                <t indent="0" pn="section-toc.1-1.9.2.6.1"><xref derivedContent="9.6" format="counter" sectionFormat="of" target="section-9.6"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-manycast-configuration">Manycast Configuration</xref></t>
              </li>
              <li pn="section-toc.1-1.9.2.7">
                <t indent="0" pn="section-toc.1-1.9.2.7.1"><xref derivedContent="9.7" format="counter" sectionFormat="of" target="section-9.7"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-clock-state">Clock State</xref></t>
              </li>
              <li pn="section-toc.1-1.9.2.8">
                <t indent="0" pn="section-toc.1-1.9.2.8.1"><xref derivedContent="9.8" format="counter" sectionFormat="of" target="section-9.8"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-get-all-association">Get All Association</xref></t>
              </li>
              <li pn="section-toc.1-1.9.2.9">
                <t indent="0" pn="section-toc.1-1.9.2.9.1"><xref derivedContent="9.9" format="counter" sectionFormat="of" target="section-9.9"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-global-statistic">Global Statistic</xref></t>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.10">
            <t indent="0" pn="section-toc.1-1.10.1"><xref derivedContent="10" format="counter" sectionFormat="of" target="section-10"/>. <xref derivedContent="" format="title" sectionFormat="of" target="name-iana-considerations">IANA Considerations</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.10.2">
              <li pn="section-toc.1-1.10.2.1">
                <t indent="0" pn="section-toc.1-1.10.2.1.1"><xref derivedContent="10.1" format="counter" sectionFormat="of" target="section-10.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-ietf-xml-registry">IETF XML Registry</xref></t>
              </li>
              <li pn="section-toc.1-1.10.2.2">
                <t indent="0" pn="section-toc.1-1.10.2.2.1"><xref derivedContent="10.2" format="counter" sectionFormat="of" target="section-10.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-yang-module-names">YANG Module Names</xref></t>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.11">
            <t indent="0" pn="section-toc.1-1.11.1"><xref derivedContent="11" format="counter" sectionFormat="of" target="section-11"/>. <xref derivedContent="" format="title" sectionFormat="of" target="name-security-considerations">Security Considerations</xref></t>
          </li>
          <li pn="section-toc.1-1.12">
            <t indent="0" pn="section-toc.1-1.12.1"><xref derivedContent="12" format="counter" sectionFormat="of" target="section-12"/>. <xref derivedContent="" format="title" sectionFormat="of" target="name-references">References</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.12.2">
              <li pn="section-toc.1-1.12.2.1">
                <t indent="0" pn="section-toc.1-1.12.2.1.1"><xref derivedContent="12.1" format="counter" sectionFormat="of" target="section-12.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-normative-references">Normative References</xref></t>
              </li>
              <li pn="section-toc.1-1.12.2.2">
                <t indent="0" pn="section-toc.1-1.12.2.2.1"><xref derivedContent="12.2" format="counter" sectionFormat="of" target="section-12.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-informative-references">Informative References</xref></t>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.13">
            <t indent="0" pn="section-toc.1-1.13.1"><xref derivedContent="Appendix A" format="default" sectionFormat="of" target="section-appendix.a"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-full-yang-tree">Full YANG Tree</xref></t>
          </li>
          <li pn="section-toc.1-1.14">
            <t indent="0" pn="section-toc.1-1.14.1"><xref derivedContent="" format="none" sectionFormat="of" target="section-appendix.b"/><xref derivedContent="" format="title" sectionFormat="of" target="name-acknowledgments">Acknowledgments</xref></t>
          </li>
          <li pn="section-toc.1-1.15">
            <t indent="0" pn="section-toc.1-1.15.1"><xref derivedContent="" format="none" sectionFormat="of" target="section-appendix.c"/><xref derivedContent="" format="title" sectionFormat="of" target="name-authors-addresses">Authors' Addresses</xref></t>
          </li>
        </ul>
      </section>
    </toc>
  </front>
  <middle>
    <section numbered="true" toc="include" removeInRFC="false" pn="section-1">
      <name slugifiedName="name-introduction">Introduction</name>
      <t indent="0" pn="section-1-1">This document defines a YANG data model <xref target="RFC7950" format="default" sectionFormat="of" derivedContent="RFC7950"/> that can be used to configure and manage
      Network Time Protocol version 4 <xref target="RFC5905" format="default" sectionFormat="of" derivedContent="RFC5905"/>. Note that the model could also be used to configure and manage NTPv3 <xref target="RFC1305" format="default" sectionFormat="of" derivedContent="RFC1305"/> (see <xref target="ver" format="default" sectionFormat="of" derivedContent="Section 7"/>).</t>
      <t indent="0" pn="section-1-2">The data model covers configuration of system parameters of NTP
      such as access rules, authentication and VPN Routing and Forwarding (VRF) binding, and various modes of NTP and per-interface parameters.
      It also provides access to information about running state of NTP
      implementations.</t>
      <section numbered="true" toc="include" removeInRFC="false" pn="section-1.1">
        <name slugifiedName="name-operational-state">Operational State</name>
        <t indent="0" pn="section-1.1-1">NTP operational state is included in the same tree as NTP configuration,
        consistent with "<xref target="RFC8342" format="title" sectionFormat="of" derivedContent="Network Management Datastore Architecture (NMDA)"/>" <xref target="RFC8342" format="default" sectionFormat="of" derivedContent="RFC8342"/>.
        NTP current state and statistics are also maintained
        in the operational state. The operational state also includes the NTP association state.</t>
      </section>
      <section numbered="true" toc="include" removeInRFC="false" pn="section-1.2">
        <name slugifiedName="name-terminology">Terminology</name>
        <t indent="0" pn="section-1.2-1">The terminology used in this document is aligned with <xref target="RFC5905" format="default" sectionFormat="of" derivedContent="RFC5905"/> and <xref target="RFC1305" format="default" sectionFormat="of" derivedContent="RFC1305"/>.</t>
      </section>
      <section numbered="true" toc="include" removeInRFC="false" pn="section-1.3">
        <name slugifiedName="name-tree-diagrams">Tree Diagrams</name>
        <t indent="0" pn="section-1.3-1">A simplified graphical representation of the data model is used in
        this document. 
    This document uses the graphical representation of data models
    defined in <xref target="RFC8340" format="default" sectionFormat="of" derivedContent="RFC8340"/>.
        </t>
      </section>
      <section toc="include" numbered="true" removeInRFC="false" pn="section-1.4">
        <name slugifiedName="name-prefixes-in-data-node-names">Prefixes in Data Node Names</name>
        <t indent="0" pn="section-1.4-1">In this document, names of data nodes and other data
   model objects are often used without a prefix, as long as it is clear
   from the context in which YANG module each name is defined.
   Otherwise, names are prefixed using the standard prefix associated
   with the corresponding YANG module, as shown in <xref target="tab.prefixes" format="default" sectionFormat="of" derivedContent="Table 1"/>.</t>
        <table anchor="tab.prefixes" align="center" pn="table-1">
          <name slugifiedName="name-prefixes-and-corresponding-">Prefixes and Corresponding YANG Modules</name>
          <thead>
            <tr>
              <th align="left" colspan="1" rowspan="1">Prefix</th>
              <th align="left" colspan="1" rowspan="1">YANG Module</th>
              <th align="left" colspan="1" rowspan="1">Reference</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td align="left" colspan="1" rowspan="1">yang</td>
              <td align="left" colspan="1" rowspan="1">ietf-yang-types</td>
              <td align="left" colspan="1" rowspan="1">
                <xref target="RFC6991" format="default" sectionFormat="of" derivedContent="RFC6991"/></td>
            </tr>
            <tr>
              <td align="left" colspan="1" rowspan="1">inet</td>
              <td align="left" colspan="1" rowspan="1">ietf-inet-types</td>
              <td align="left" colspan="1" rowspan="1">
                <xref target="RFC6991" format="default" sectionFormat="of" derivedContent="RFC6991"/></td>
            </tr>
            <tr>
              <td align="left" colspan="1" rowspan="1">if</td>
              <td align="left" colspan="1" rowspan="1">ietf-interfaces</td>
              <td align="left" colspan="1" rowspan="1">
                <xref target="RFC8343" format="default" sectionFormat="of" derivedContent="RFC8343"/></td>
            </tr>
            <tr>
              <td align="left" colspan="1" rowspan="1">sys</td>
              <td align="left" colspan="1" rowspan="1">ietf-system</td>
              <td align="left" colspan="1" rowspan="1">
                <xref target="RFC7317" format="default" sectionFormat="of" derivedContent="RFC7317"/></td>
            </tr>
            <tr>
              <td align="left" colspan="1" rowspan="1">acl</td>
              <td align="left" colspan="1" rowspan="1">ietf-access-control-list</td>
              <td align="left" colspan="1" rowspan="1">
                <xref target="RFC8519" format="default" sectionFormat="of" derivedContent="RFC8519"/></td>
            </tr>
            <tr>
              <td align="left" colspan="1" rowspan="1">rt-types</td>
              <td align="left" colspan="1" rowspan="1">ietf-routing-types</td>
              <td align="left" colspan="1" rowspan="1">
                <xref target="RFC8294" format="default" sectionFormat="of" derivedContent="RFC8294"/></td>
            </tr>
            <tr>
              <td align="left" colspan="1" rowspan="1">nacm</td>
              <td align="left" colspan="1" rowspan="1">ietf-netconf-acm</td>
              <td align="left" colspan="1" rowspan="1">
                <xref target="RFC8341" format="default" sectionFormat="of" derivedContent="RFC8341"/></td>
            </tr>
          </tbody>
        </table>
      </section>
      <section toc="include" numbered="true" removeInRFC="false" pn="section-1.5">
        <name slugifiedName="name-references-in-the-model">References in the Model</name>
        <t indent="0" pn="section-1.5-1">The following documents are referenced in the model defined in this
   document.</t>
        <table anchor="tab.ref" align="center" pn="table-2">
          <name slugifiedName="name-references-in-the-yang-modu">References in the YANG Module</name>
          <thead>
            <tr>
              <th align="left" colspan="1" rowspan="1">Title</th>
              <th align="left" colspan="1" rowspan="1">Reference</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td align="left" colspan="1" rowspan="1">Network Time Protocol Version 4: Protocol and Algorithms Specification</td>
              <td align="left" colspan="1" rowspan="1">
                <xref target="RFC5905" format="default" sectionFormat="of" derivedContent="RFC5905"/></td>
            </tr>
            <tr>
              <td align="left" colspan="1" rowspan="1">Common YANG Data Types</td>
              <td align="left" colspan="1" rowspan="1">
                <xref target="RFC6991" format="default" sectionFormat="of" derivedContent="RFC6991"/></td>
            </tr>
            <tr>
              <td align="left" colspan="1" rowspan="1">A YANG Data Model for System Management</td>
              <td align="left" colspan="1" rowspan="1">
                <xref target="RFC7317" format="default" sectionFormat="of" derivedContent="RFC7317"/></td>
            </tr>
            <tr>
              <td align="left" colspan="1" rowspan="1">Common YANG Data Types for the Routing Area</td>
              <td align="left" colspan="1" rowspan="1">
                <xref target="RFC8294" format="default" sectionFormat="of" derivedContent="RFC8294"/></td>
            </tr>
            <tr>
              <td align="left" colspan="1" rowspan="1">Network Configuration Access Control Model</td>
              <td align="left" colspan="1" rowspan="1">
                <xref target="RFC8341" format="default" sectionFormat="of" derivedContent="RFC8341"/></td>
            </tr>
            <tr>
              <td align="left" colspan="1" rowspan="1">A YANG Data Model for Interface Management</td>
              <td align="left" colspan="1" rowspan="1">
                <xref target="RFC8343" format="default" sectionFormat="of" derivedContent="RFC8343"/></td>
            </tr>
            <tr>
              <td align="left" colspan="1" rowspan="1">YANG Data Model for Network Access Control Lists (ACLs)</td>
              <td align="left" colspan="1" rowspan="1">
                <xref target="RFC8519" format="default" sectionFormat="of" derivedContent="RFC8519"/></td>
            </tr>
            <tr>
              <td align="left" colspan="1" rowspan="1">Message Authentication Code for the Network Time Protocol</td>
              <td align="left" colspan="1" rowspan="1">
                <xref target="RFC8573" format="default" sectionFormat="of" derivedContent="RFC8573"/></td>
            </tr>
            <tr>
              <td align="left" colspan="1" rowspan="1">The AES-CMAC Algorithm</td>
              <td align="left" colspan="1" rowspan="1">
                <xref target="RFC4493" format="default" sectionFormat="of" derivedContent="RFC4493"/></td>
            </tr>
            <tr>
              <td align="left" colspan="1" rowspan="1">The MD5 Message-Digest Algorithm</td>
              <td align="left" colspan="1" rowspan="1">
                <xref target="RFC1321" format="default" sectionFormat="of" derivedContent="RFC1321"/></td>
            </tr>
            <tr>
              <td align="left" colspan="1" rowspan="1">US Secure Hash Algorithm 1 (SHA1)</td>
              <td align="left" colspan="1" rowspan="1">
                <xref target="RFC3174" format="default" sectionFormat="of" derivedContent="RFC3174"/></td>
            </tr>
            <tr>
              <td align="left" colspan="1" rowspan="1">FIPS 180-4: Secure Hash Standard (SHS)</td>
              <td align="left" colspan="1" rowspan="1">
                <xref target="SHS" format="default" sectionFormat="of" derivedContent="SHS"/></td>
            </tr>
          </tbody>
        </table>
      </section>
      <section numbered="true" removeInRFC="false" toc="include" pn="section-1.6">
        <name slugifiedName="name-requirements-language">Requirements Language</name>
        <t indent="0" pn="section-1.6-1">
    The key words "<bcp14>MUST</bcp14>", "<bcp14>MUST NOT</bcp14>",
    "<bcp14>REQUIRED</bcp14>", "<bcp14>SHALL</bcp14>", "<bcp14>SHALL NOT</bcp14>",
    "<bcp14>SHOULD</bcp14>", "<bcp14>SHOULD NOT</bcp14>",
    "<bcp14>RECOMMENDED</bcp14>", "<bcp14>NOT RECOMMENDED</bcp14>",
    "<bcp14>MAY</bcp14>", and "<bcp14>OPTIONAL</bcp14>" in this document are to be
    interpreted as described in BCP 14 <xref target="RFC2119" format="default" sectionFormat="of" derivedContent="RFC2119"/> <xref target="RFC8174" format="default" sectionFormat="of" derivedContent="RFC8174"/> when, and only when, they appear in all capitals, as
    shown here.
        </t>
      </section>
    </section>
    <section numbered="true" toc="include" removeInRFC="false" pn="section-2">
      <name slugifiedName="name-ntp-data-model">NTP Data Model</name>
      <t indent="0" pn="section-2-1">This document defines the YANG module "ietf-ntp", which has the
      following condensed structure:</t>
      <sourcecode type="yangtree" markers="false" pn="section-2-2">
module: ietf-ntp
  +--rw ntp!
     +--rw port?                    inet:port-number {ntp-port}?
     +--rw refclock-master!
     |  +--rw master-stratum?   ntp-stratum
     +--rw authentication {authentication}?
     |  +--rw auth-enabled?          boolean
     |  +--rw authentication-keys* [keyid]
     |     +--rw keyid       uint32
     |     +--...
     +--rw access-rules {access-rules}?
     |  +--rw access-rule* [access-mode]
     |     +--rw access-mode    identityref
     |     +--rw acl?           -&gt; /acl:acls/acl/name
     +--ro clock-state
     |  +--ro system-status
     |     +--ro clock-state                  identityref
     |     +--ro clock-stratum                ntp-stratum
     |     +--ro clock-refid                  refid
     |     +--...
     +--rw unicast-configuration* [address type]
     |       {unicast-configuration}?
     |  +--rw address           inet:ip-address
     |  +--rw type              identityref
     |  +--...
     +--rw associations
     |  +--ro association* [address local-mode isconfigured]
     |     +--ro address           inet:ip-address
     |     +--ro local-mode        identityref
     |     +--ro isconfigured      boolean
     |     +--...
     |     +--ro ntp-statistics
     |        +--...
     +--rw interfaces
     |  +--rw interface* [name]
     |     +--rw name                if:interface-ref
     |     +--rw broadcast-server! {broadcast-server}?
     |     |  +--...
     |     +--rw broadcast-client! {broadcast-client}?
     |     +--rw multicast-server* [address] {multicast-server}?
     |     |  +--rw address
     |     |  |       rt-types:ip-multicast-group-address
     |     |  +--...
     |     +--rw multicast-client* [address] {multicast-client}?
     |     |  +--rw address    rt-types:ip-multicast-group-address
     |     +--rw manycast-server* [address] {manycast-server}?
     |     |  +--rw address    rt-types:ip-multicast-group-address
     |     +--rw manycast-client* [address] {manycast-client}?
     |        +--rw address
     |        |       rt-types:ip-multicast-group-address
     |        +--...
     +--ro ntp-statistics
        +--...

  rpcs:
    +---x statistics-reset
       +---w input
          +---w (association-or-all)?
             +--:(association)
             |  +---w associations-address?
             |  |       -&gt; /ntp/associations/association/address
             |  +---w associations-local-mode?
             |  |       -&gt; /ntp/associations/association/local-mode
             |  +---w associations-isconfigured?
             |          -&gt; /ntp/associations/association/isconfigured
             +--:(all)

</sourcecode>
      <t indent="0" pn="section-2-3">The full data model tree for the YANG module "ietf-ntp" is in <xref target="full" format="default" sectionFormat="of" derivedContent="Appendix A"/>.</t>
      <t indent="0" pn="section-2-4">This data model defines one top-level container that includes both
        the NTP configuration and the NTP running state including access rules,
      authentication, associations, unicast configurations, interfaces, system status, and associations.</t>
    </section>
    <section numbered="true" toc="include" removeInRFC="false" pn="section-3">
      <name slugifiedName="name-relationship-with-ntpv4-mib">Relationship with NTPv4-MIB</name>
      <t indent="0" pn="section-3-1">If the device implements the NTPv4-MIB <xref target="RFC5907" format="default" sectionFormat="of" derivedContent="RFC5907"/>, data
      nodes from the YANG module can be mapped
      to table entries in the NTPv4-MIB.</t>
      <t indent="0" pn="section-3-2">The following tables list the YANG data nodes with corresponding
      objects in the NTPv4-MIB.</t>
      <table align="center" pn="table-3">
        <name slugifiedName="name-yang-ntp-data-nodes-in-ntp-">YANG NTP Data Nodes in /ntp/clock-state/system-status and Related NTPv4-MIB Objects</name>
        <thead>
          <tr>
            <th align="center" colspan="1" rowspan="1">YANG Data Nodes in /ntp/clock-state/system-status</th>
            <th align="center" colspan="1" rowspan="1">NTPv4-MIB Objects</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td align="center" colspan="1" rowspan="1">clock-state</td>
            <td align="center" colspan="1" rowspan="1">ntpEntStatusCurrentMode</td>
          </tr>
          <tr>
            <td align="center" colspan="1" rowspan="1">clock-stratum</td>
            <td align="center" colspan="1" rowspan="1">ntpEntStatusStratum</td>
          </tr>
          <tr>
            <td align="center" colspan="1" rowspan="1">clock-refid</td>
            <td align="center" colspan="1" rowspan="1">
              <ul empty="true" spacing="compact" bare="true" indent="3" pn="section-3-3.2.3.2.1">
                <li pn="section-3-3.2.3.2.1.1">ntpEntStatusActiveRefSourceId</li>
                <li pn="section-3-3.2.3.2.1.2">ntpEntStatusActiveRefSourceName</li>
              </ul>
            </td>
          </tr>
          <tr>
            <td align="center" colspan="1" rowspan="1">clock-precision</td>
            <td align="center" colspan="1" rowspan="1">ntpEntTimePrecision</td>
          </tr>
          <tr>
            <td align="center" colspan="1" rowspan="1">clock-offset</td>
            <td align="center" colspan="1" rowspan="1">ntpEntStatusActiveOffset</td>
          </tr>
          <tr>
            <td align="center" colspan="1" rowspan="1">root-dispersion</td>
            <td align="center" colspan="1" rowspan="1">ntpEntStatusDispersion</td>
          </tr>
        </tbody>
      </table>
      <t keepWithPrevious="true" indent="0" pn="section-3-4"/>
      <table align="center" pn="table-4">
        <name slugifiedName="name-yang-ntp-data-nodes-in-ntp-a">YANG NTP Data Nodes in /ntp/associations/ and Related NTPv4-MIB Objects</name>
        <thead>
          <tr>
            <th align="center" colspan="1" rowspan="1">YANG Data Nodes in /ntp/associations/</th>
            <th align="center" colspan="1" rowspan="1">NTPv4-MIB Objects</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td align="center" colspan="1" rowspan="1">address</td>
            <td align="center" colspan="1" rowspan="1">
              <ul empty="true" spacing="compact" bare="true" indent="3" pn="section-3-5.2.1.2.1">
                <li pn="section-3-5.2.1.2.1.1">ntpAssocAddressType</li>
                <li pn="section-3-5.2.1.2.1.2">ntpAssocAddress</li>
              </ul>
            </td>
          </tr>
          <tr>
            <td align="center" colspan="1" rowspan="1">stratum</td>
            <td align="center" colspan="1" rowspan="1">ntpAssocStratum</td>
          </tr>
          <tr>
            <td align="center" colspan="1" rowspan="1">refid</td>
            <td align="center" colspan="1" rowspan="1">ntpAssocRefId</td>
          </tr>
          <tr>
            <td align="center" colspan="1" rowspan="1">offset</td>
            <td align="center" colspan="1" rowspan="1">ntpAssocOffset</td>
          </tr>
          <tr>
            <td align="center" colspan="1" rowspan="1">delay</td>
            <td align="center" colspan="1" rowspan="1">ntpAssocStatusDelay</td>
          </tr>
          <tr>
            <td align="center" colspan="1" rowspan="1">dispersion</td>
            <td align="center" colspan="1" rowspan="1">ntpAssocStatusDispersion</td>
          </tr>
          <tr>
            <td align="center" colspan="1" rowspan="1">ntp-statistics/packet-sent</td>
            <td align="center" colspan="1" rowspan="1">ntpAssocStatOutPkts</td>
          </tr>
          <tr>
            <td align="center" colspan="1" rowspan="1">ntp-statistics/packet-received</td>
            <td align="center" colspan="1" rowspan="1">ntpAssocStatInPkts</td>
          </tr>
          <tr>
            <td align="center" colspan="1" rowspan="1">ntp-statistics/packet-dropped</td>
            <td align="center" colspan="1" rowspan="1">ntpAssocStatProtocolError</td>
          </tr>
        </tbody>
      </table>
    </section>
    <section numbered="true" toc="include" removeInRFC="false" pn="section-4">
      <name slugifiedName="name-relationship-with-rfc-7317">Relationship with RFC 7317</name>
      <t indent="0" pn="section-4-1">This section describes the relationship with definition of NTP in
      Section <xref target="RFC7317" section="3.2" sectionFormat="bare" format="default" derivedLink="https://rfc-editor.org/rfc/rfc7317#section-3.2" derivedContent="RFC7317">System Time Management</xref> of <xref target="RFC7317" format="default" sectionFormat="of" derivedContent="RFC7317"/>.
      YANG data nodes in /ntp/ also support per-interface 
      configuration, which is not supported in /system/ntp.
      If the YANG data model defined in this document is implemented, then
      /system/ntp <bcp14>SHOULD NOT</bcp14> be used and <bcp14>MUST</bcp14> be ignored.</t>
      <table align="center" pn="table-5">
        <name slugifiedName="name-yang-ntp-configuration-data">YANG NTP Configuration Data Nodes and Counterparts from RFC 7317</name>
        <thead>
          <tr>
            <th align="center" colspan="1" rowspan="1">YANG Data Nodes in /ntp/ </th>
            <th align="center" colspan="1" rowspan="1">YANG Data Nodes in /system/ntp</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td align="center" colspan="1" rowspan="1">ntp!</td>
            <td align="center" colspan="1" rowspan="1">enabled</td>
          </tr>
          <tr>
            <td align="center" colspan="1" rowspan="1">unicast-configuration</td>
            <td align="center" colspan="1" rowspan="1">
              <ul empty="true" spacing="compact" bare="true" indent="3" pn="section-4-2.2.2.2.1">
                <li pn="section-4-2.2.2.2.1.1">server</li>
                <li pn="section-4-2.2.2.2.1.2">server/name</li>
              </ul>
            </td>
          </tr>
          <tr>
            <td align="center" colspan="1" rowspan="1">unicast-configuration/address</td>
            <td align="center" colspan="1" rowspan="1">server/transport/udp/address</td>
          </tr>
          <tr>
            <td align="center" colspan="1" rowspan="1">unicast-configuration/port</td>
            <td align="center" colspan="1" rowspan="1">server/transport/udp/port</td>
          </tr>
          <tr>
            <td align="center" colspan="1" rowspan="1">unicast-configuration/type</td>
            <td align="center" colspan="1" rowspan="1">server/association-type</td>
          </tr>
          <tr>
            <td align="center" colspan="1" rowspan="1">unicast-configuration/iburst</td>
            <td align="center" colspan="1" rowspan="1">server/iburst</td>
          </tr>
          <tr>
            <td align="center" colspan="1" rowspan="1">unicast-configuration/prefer</td>
            <td align="center" colspan="1" rowspan="1">server/prefer</td>
          </tr>
        </tbody>
      </table>
    </section>
    <section numbered="true" toc="include" removeInRFC="false" pn="section-5">
      <name slugifiedName="name-access-rules">Access Rules</name>
      <t indent="0" pn="section-5-1">The access rules in this section refer to the on-the-wire
      access control to the NTP service and are completely independent
      of any management API access control, e.g., NETCONF Access
      Control Model (NACM) <xref target="RFC8341" format="default" sectionFormat="of" derivedContent="RFC8341"/>.</t>
      <t indent="0" pn="section-5-2">An Access Control List (ACL) is one of the basic elements used to
   configure device-forwarding behavior. An ACL is a user-ordered set of rules that is used to filter traffic
   on a networking device.</t>
      <t indent="0" pn="section-5-3">As per <xref target="RFC1305" format="default" sectionFormat="of" derivedContent="RFC1305"/> (for NTPv3) and <xref target="RFC5905" format="default" sectionFormat="of" derivedContent="RFC5905"/> (for NTPv4), NTP could
include an access-control feature that prevents unauthorized access and
that controls which peers are allowed to update the local clock. Further, it is useful to differentiate between the various kinds of access and attach a different acl-rule to each. For this, the YANG module allows such configuration via /ntp/access-rules. The access-rule itself is configured via <xref target="RFC8519" format="default" sectionFormat="of" derivedContent="RFC8519"/>.</t>
      <t indent="0" pn="section-5-4">The following access-modes are supported:
      </t>
      <dl spacing="normal" indent="3" newline="false" pn="section-5-5">
        <dt pn="section-5-5.1">Peer:</dt>
        <dd pn="section-5-5.2">Permit others to synchronize their time with the NTP entity or vice versa.  NTP control queries are also accepted.</dd>
        <dt pn="section-5-5.3">Server:</dt>
        <dd pn="section-5-5.4">Permit others to synchronize their time with the NTP entity, but vice versa is not supported. NTP control queries are accepted.</dd>
        <dt pn="section-5-5.5">Server-only:</dt>
        <dd pn="section-5-5.6">Permit others to synchronize their time with the NTP entity, but vice versa is not supported. NTP control queries are not accepted.</dd>
        <dt pn="section-5-5.7">Query-only:</dt>
        <dd pn="section-5-5.8">Only control queries are accepted.</dd>
      </dl>
      <t indent="0" pn="section-5-6">Query-only is the most restricted whereas the peer is the full access authority. The ability to give different ACL rules for different access-modes allows for a greater control by the operator.</t>
    </section>
    <section numbered="true" toc="include" removeInRFC="false" pn="section-6">
      <name slugifiedName="name-key-management">Key Management</name>
      <t indent="0" pn="section-6-1">As per <xref target="RFC1305" format="default" sectionFormat="of" derivedContent="RFC1305"/> (for NTPv3) and <xref target="RFC5905" format="default" sectionFormat="of" derivedContent="RFC5905"/> (for NTPv4), when authentication is enabled, NTP employs
a crypto-checksum, computed by the sender and checked by the receiver,
together with a set of predistributed algorithms, and
cryptographic keys indexed by a key identifier included in the NTP message. This keyid is a 32-bit unsigned integer that <bcp14>MUST</bcp14> be configured on the NTP peers before the authentication can be used. 
For this reason, this YANG module allows such configuration via /ntp/authentication/authentication-keys/. Further at the time of configuration of NTP association (for example, unicast server), the keyid is specified.</t>
      <t indent="0" pn="section-6-2">The 'nacm:default-deny-all' is
used to prevent retrieval of the actual key information after it is set.</t>
    </section>
    <section anchor="ver" numbered="true" toc="include" removeInRFC="false" pn="section-7">
      <name slugifiedName="name-ntp-version">NTP Version</name>
      <t indent="0" pn="section-7-1">This YANG data model allows a version to be configured for the NTP association, i.e., an operator can control the use of NTPv3 <xref target="RFC1305" format="default" sectionFormat="of" derivedContent="RFC1305"/> or NTPv4 <xref target="RFC5905" format="default" sectionFormat="of" derivedContent="RFC5905"/> for each association it forms. This allows backward compatibility with a legacy system. Note that NTPv3 <xref target="RFC1305" format="default" sectionFormat="of" derivedContent="RFC1305"/> is obsoleted by NTPv4 <xref target="RFC5905" format="default" sectionFormat="of" derivedContent="RFC5905"/>.
      </t>
    </section>
    <section numbered="true" toc="include" removeInRFC="false" pn="section-8">
      <name slugifiedName="name-ntp-yang-module">NTP YANG Module</name>
      <sourcecode name="ietf-ntp@2022-07-05.yang" type="yang" markers="true" pn="section-8-1">
module ietf-ntp {
  yang-version 1.1;
  namespace "urn:ietf:params:xml:ns:yang:ietf-ntp";
  prefix ntp;

  import ietf-yang-types {
    prefix yang;
    reference
      "RFC 6991: Common YANG Data Types";
  }
  import ietf-inet-types {
    prefix inet;
    reference
      "RFC 6991: Common YANG Data Types";
  }
  import ietf-interfaces {
    prefix if;
    reference
      "RFC 8343: A YANG Data Model for Interface Management";
  }
  import ietf-system {
    prefix sys;
    reference
      "RFC 7317: A YANG Data Model for System Management";
  }
  import ietf-access-control-list {
    prefix acl;
    reference
      "RFC 8519: YANG Data Model for Network Access Control
       Lists (ACLs)";
  }
  import ietf-routing-types {
    prefix rt-types;
    reference
      "RFC 8294: Common YANG Data Types for the Routing Area";
  }
  import ietf-netconf-acm {
    prefix nacm;
    reference
      "RFC 8341: Network Configuration Access Control Model";
  }

  organization
    "IETF NTP (Network Time Protocol) Working Group";
  contact
    "WG Web:  &lt;https://datatracker.ietf.org/wg/ntp/&gt;
     WG List:  &lt;mailto: ntp@ietf.org
     Editor:   Dhruv Dhody
              &lt;mailto:dhruv.ietf@gmail.com&gt;
     Editor:   Ankit Kumar Sinha
              &lt;mailto:ankit.ietf@gmail.com&gt;";
  description
    "This document defines a YANG data model that can be used
     to configure and manage  Network Time Protocol (NTP) version 4.
     It can also be used to configure and manage version 3.
     The data model includes configuration data and state data.

     The key words 'MUST', 'MUST NOT', 'REQUIRED', 'SHALL', 'SHALL
     NOT', 'SHOULD', 'SHOULD NOT', 'RECOMMENDED', 'NOT RECOMMENDED',
     'MAY', and 'OPTIONAL' in this document are to be interpreted as
     described in BCP 14 (RFC 2119) (RFC 8174) when, and only when,
     they appear in all capitals, as shown here.

     Copyright (c) 2022 IETF Trust and the persons identified as
     authors of the code.  All rights reserved.

     Redistribution and use in source and binary forms, with or
     without modification, is permitted pursuant to, and subject
     to the license terms contained in, the Revised BSD License
     set forth in Section 4.c of the IETF Trust's Legal Provisions
     Relating to IETF Documents
     (https://trustee.ietf.org/license-info).

     This version of this YANG module is part of RFC 9249; see the
     RFC itself for full legal notices.";

  revision 2022-07-05 {
    description
      "Initial revision";
    reference
      "RFC 9249: A YANG Data Model for NTP";
  }

  /* Typedef Definitions */

  typedef ntp-stratum {
    type uint8 {
      range "1..16";
    }
    description
      "The level of each server in the hierarchy is defined by
       a stratum.  Primary servers are assigned with stratum
       one; secondary servers at each lower level are assigned with
       one stratum greater than the preceding level.";
    reference
      "RFC 5905: Network Time Protocol Version 4: Protocol and
       Algorithms Specification, Section 3";
  }

  typedef ntp-version {
    type uint8 {
      range "3..max";
    }
    default "4";
    description
      "The current NTP version supported by the corresponding
       association";
    reference
      "RFC 5905: Network Time Protocol Version 4: Protocol and
       Algorithms Specification, Section 1";
  }

  typedef refid {
    type union {
      type inet:ipv4-address;
      type uint32;
      type string {
        length "4";
      }
    }
    description
      "A code identifying the particular server or reference
       clock.  The interpretation depends upon stratum.  It
       could be an IPv4 address, the first 32 bits of the MD5 hash
       of the IPv6 address, or a string for the Reference Identifier
       and kiss codes.  Some examples:

       -- a refclock ID like '127.127.1.0' for local clock sync

       -- uni/multi/broadcast associations for IPv4 will look like
          '203.0.113.1' and '0x4321FEDC' for IPv6

       -- sync with a primary source will look like 'DCN', 'NIST',
          'ATOM'

       -- kiss codes will look like 'AUTH', 'DROP', or 'RATE'

       Note that the use of an MD5 hash for IPv6 addresses is not
       for cryptographic purposes.";
    reference
      "RFC 5905: Network Time Protocol Version 4: Protocol and
       Algorithms Specification, Section 7.3";
  }

  typedef ntp-date-and-time {
    type union {
      type yang:date-and-time;
      type uint8;
    }
    description
      "Follows the date-and-time format when valid values exist.
       Otherwise, allows for setting a special value such as
       zero.";
    reference
      "RFC 6991: Common YANG Data Types";
  }

  typedef log2seconds {
    type int8;
    description
      "An 8-bit signed integer that represents signed log2
       seconds.";
  }

  /* features */

  feature ntp-port {
    description
      "Support for NTP port configuration";
    reference
      "RFC 5905: Network Time Protocol Version 4: Protocol and
       Algorithms Specification, Section 7.2";
  }

  feature authentication {
    description
      "Support for NTP symmetric key authentication";
    reference
      "RFC 5905: Network Time Protocol Version 4: Protocol and
       Algorithms Specification, Section 7.3";
  }

  feature deprecated {
    description
      "Support deprecated MD5-based authentication (RFC 8573),
       SHA-1, or any other deprecated authentication mechanism.
       It is enabled to support legacy compatibility when secure
       cryptographic algorithms are not available to use.
       It is also used to configure keystrings in ASCII format.";
    reference
      "RFC 1321: The MD5 Message-Digest Algorithm,
       RFC 3174: US Secure Hash Algorithm 1 (SHA1),
       SHS: Secure Hash Standard (SHS) (FIPS PUB 180-4)";
  }

  feature hex-key-string {
    description
      "Support hexadecimal key string";
  }

  feature access-rules {
    description
      "Support for NTP access control";
    reference
      "RFC 5905: Network Time Protocol Version 4: Protocol and
       Algorithms Specification, Section 9.2";
  }

  feature unicast-configuration {
    description
      "Support for NTP client/server or active/passive
       in unicast";
    reference
      "RFC 5905: Network Time Protocol Version 4: Protocol and
       Algorithms Specification, Section 3";
  }

  feature broadcast-server {
    description
      "Support for broadcast server";
    reference
      "RFC 5905: Network Time Protocol Version 4: Protocol and
       Algorithms Specification, Section 3";
  }

  feature broadcast-client {
    description
      "Support for broadcast client";
    reference
      "RFC 5905: Network Time Protocol Version 4: Protocol and
       Algorithms Specification, Section 3";
  }

  feature multicast-server {
    description
      "Support for multicast server";
    reference
      "RFC 5905: Network Time Protocol Version 4: Protocol and
       Algorithms Specification, Section 3.1";
  }
  feature multicast-client {
    description
      "Support for multicast client";
    reference
      "RFC 5905: Network Time Protocol Version 4: Protocol and
       Algorithms Specification, Section 3.1";
  }

  feature manycast-server {
    description
      "Support for manycast server";
    reference
      "RFC 5905: Network Time Protocol Version 4: Protocol and
       Algorithms Specification, Section 3.1";
  }

  feature manycast-client {
    description
      "Support for manycast client";
    reference
      "RFC 5905: Network Time Protocol Version 4: Protocol and
       Algorithms Specification, Section 3.1";
  }

  /* Identity */
  /* unicast-configurations types */

  identity unicast-configuration-type {
    if-feature "unicast-configuration";
    description
      "This defines NTP unicast mode of operation as used
       for unicast-configurations.";
  }

  identity uc-server {
    if-feature "unicast-configuration";
    base unicast-configuration-type;
    description
      "Use client association mode where the unicast server
       address is configured.";
  }

  identity uc-peer {
    if-feature "unicast-configuration";
    base unicast-configuration-type;
    description
      "Use symmetric active association mode where the peer
       address is configured.";
  }

  /* association-modes */

  identity association-mode {
    description
      "The NTP association modes";
    reference
      "RFC 5905: Network Time Protocol Version 4: Protocol and
       Algorithms Specification, Section 3";
  }

  identity active {
    base association-mode;
    description
      "Use symmetric active association mode (mode 1).
       This device may synchronize with its NTP peer
       or provide synchronization to a configured NTP peer.";
  }

  identity passive {
    base association-mode;
    description
      "Use symmetric passive association mode (mode 2).
       This device has learned this association dynamically.
       This device may synchronize with its NTP peer.";
  }

  identity client {
    base association-mode;
    description
      "Use client association mode (mode 3).
       This device will not provide synchronization
       to the configured NTP server.";
  }

  identity server {
    base association-mode;
    description
      "Use server association mode (mode 4).
       This device will provide synchronization to
       NTP clients.";
  }

  identity broadcast-server {
    base association-mode;
    description
      "Use broadcast server mode (mode 5).
       This mode defines that it's either working
       as a broadcast server or a multicast server.";
  }

  identity broadcast-client {
    base association-mode;
    description
      "This mode defines that it's either working
       as a broadcast client (mode 6) or a multicast client.";
  }

  /* access-mode */

  identity access-mode {
    if-feature "access-rules";
    description
      "This defines NTP access-modes.  These identify
       how the ACL is applied with NTP.";
    reference
      "RFC 5905: Network Time Protocol Version 4: Protocol and
       Algorithms Specification, Section 9.2";
  }

  identity peer-access-mode {
    if-feature "access-rules";
    base access-mode;
    description
      "Permit others to synchronize their time with this NTP
       or vice versa.
       NTP control queries are also accepted.  This enables
       full access authority.";
  }

  identity server-access-mode {
    if-feature "access-rules";
    base access-mode;
    description
      "Permit others to synchronize their time with this NTP
       entity, but vice versa is not supported.  NTP control
       queries are accepted.";
  }

  identity server-only-access-mode {
    if-feature "access-rules";
    base access-mode;
    description
      "Permit others to synchronize their time with this NTP
       entity, but vice versa is not supported.  NTP control
       queries are not accepted.";
  }

  identity query-only-access-mode {
    if-feature "access-rules";
    base access-mode;
    description
      "Only control queries are accepted.";
  }

  /* clock-state */

  identity clock-state {
    description
      "This defines NTP clock status at a high level.";
  }

  identity synchronized {
    base clock-state;
    description
      "Indicates that the local clock has been synchronized with
       an NTP server or the reference clock.";
  }

  identity unsynchronized {
    base clock-state;
    description
      "Indicates that the local clock has not been synchronized
       with any NTP server.";
  }

  /* ntp-sync-state */

  identity ntp-sync-state {
    description
      "This defines NTP clock sync state at a more granular
       level.  Referred to as 'Clock state definitions' in
       RFC 5905.";
    reference
      "RFC 5905: Network Time Protocol Version 4: Protocol and
       Algorithms Specification, Appendix A.1.1";
  }

  identity clock-never-set {
    base ntp-sync-state;
    description
      "Indicates the clock was never set.";
  }

  identity freq-set-by-cfg {
    base ntp-sync-state;
    description
      "Indicates the clock frequency is set by
       NTP configuration or file.";
  }

  identity spike {
    base ntp-sync-state;
    description
      "Indicates a spike is detected.";
  }

  identity freq {
    base ntp-sync-state;
    description
      "Indicates the frequency mode.";
  }

  identity clock-synchronized {
    base ntp-sync-state;
    description
      "Indicates that the clock is synchronized.";
  }

  /* crypto-algorithm */

  identity crypto-algorithm {
    description
      "Base identity of cryptographic algorithm options.";
  }

  identity md5 {
    if-feature "deprecated";
    base crypto-algorithm;
    description
      "The MD5 algorithm.  Note that RFC 8573
       deprecates the use of MD5-based authentication.";
    reference
      "RFC 1321: The MD5 Message-Digest Algorithm";
  }

  identity sha-1 {
    if-feature "deprecated";
    base crypto-algorithm;
    description
      "The SHA-1 algorithm";
    reference
      "RFC 3174: US Secure Hash Algorithm 1 (SHA1)";
  }

  identity hmac-sha-1 {
    if-feature "deprecated";
    base crypto-algorithm;
    description
      "HMAC-SHA-1 authentication algorithm";
    reference
      "SHS: Secure Hash Standard (SHS) (FIPS PUB 180-4)";
  }

  identity hmac-sha1-12 {
    if-feature "deprecated";
    base crypto-algorithm;
    description
      "The HMAC-SHA1-12 algorithm";
  }

  identity hmac-sha-256 {
    description
      "HMAC-SHA-256 authentication algorithm";
    reference
      "SHS: Secure Hash Standard (SHS) (FIPS PUB 180-4)";
  }

  identity hmac-sha-384 {
    description
      "HMAC-SHA-384 authentication algorithm";
    reference
      "SHS: Secure Hash Standard (SHS) (FIPS PUB 180-4)";
  }

  identity hmac-sha-512 {
    description
      "HMAC-SHA-512 authentication algorithm";
    reference
      "SHS: Secure Hash Standard (SHS) (FIPS PUB 180-4)";
  }

  identity aes-cmac {
    base crypto-algorithm;
    description
      "The AES-CMAC algorithm -- required by
       RFC 8573 for MAC for the NTP.";
    reference
      "RFC 4493: The AES-CMAC Algorithm,
       RFC 8573: Message Authentication Code for the Network
       Time Protocol";
  }

  /* Groupings */

  grouping key {
    description
      "The key";
    nacm:default-deny-all;
    choice key-string-style {
      description
        "Key string styles";
      case keystring {
        leaf keystring {
          if-feature "deprecated";
          type string;
          description
            "Key string in ASCII format";
        }
      }
      case hexadecimal {
        if-feature "hex-key-string";
        leaf hexadecimal-string {
          type yang:hex-string;
          description
            "Key in hexadecimal string format.  When compared
             to ASCII, specification in hexadecimal affords
             greater key entropy with the same number of
             internal key-string octets.  Additionally, it
             discourages use of well-known words or
             numbers.";
        }
      }
    }
  }

  grouping authentication-key {
    description
      "To define an authentication key for an NTP
       time source.";
    leaf keyid {
      type uint32 {
        range "1..max";
      }
      description
        "Authentication key identifier";
    }
    leaf algorithm {
      type identityref {
        base crypto-algorithm;
      }
      description
        "Authentication algorithm.  Note that RFC 8573
         deprecates the use of MD5-based authentication
         and recommends AES-CMAC.";
    }
    container key {
      uses key;
      description
        "The key.  Note that RFC 8573 deprecates the use
         of MD5-based authentication.";
    }
    leaf istrusted {
      type boolean;
      description
        "Keyid is trusted or not";
    }
    reference
      "RFC 5905: Network Time Protocol Version 4: Protocol and
       Algorithms Specification, Sections 7.3 and 7.4";
  }

  grouping authentication {
    description
      "Authentication";
    choice authentication-type {
      description
        "Type of authentication";
      case symmetric-key {
        leaf keyid {
          type leafref {
            path "/ntp:ntp/ntp:authentication/"
               + "ntp:authentication-keys/ntp:keyid";
          }
          description
            "Authentication key id referenced in this
             association.";
        }
      }
    }
  }

  grouping statistics {
    description
      "NTP packet statistic";
    leaf discontinuity-time {
      type ntp-date-and-time;
      description
        "The time on the most recent occasion at which any one or
         more of these NTP counters suffered a discontinuity.  If
         no such discontinuities have occurred, then this node
         contains the time the NTP association was
         (re-)initialized.";
    }
    leaf packet-sent {
      type yang:counter32;
      description
        "The total number of NTP packets delivered to the
         transport service by this NTP entity for this
         association.
         Discontinuities in the value of this counter can occur
         upon cold start, reinitialization of the NTP entity or the
         management system, and at other times.";
    }
    leaf packet-sent-fail {
      type yang:counter32;
      description
        "The number of times NTP packet sending failed.";
    }
    leaf packet-received {
      type yang:counter32;
      description
        "The total number of NTP packets delivered to the
         NTP entity from this association.
         Discontinuities in the value of this counter can occur
         upon cold start, reinitialization of the NTP entity or the
         management system, and at other times.";
    }
    leaf packet-dropped {
      type yang:counter32;
      description
        "The total number of NTP packets that were delivered
         to this NTP entity from this association and that this
         entity was not able to process due to an NTP error.
         Discontinuities in the value of this counter can occur
         upon cold start, reinitialization of the NTP entity or the
         management system, and at other times.";
    }
  }

  grouping common-attributes {
    description
      "NTP common attributes for configuration";
    leaf minpoll {
      type log2seconds;
      default "6";
      description
        "The minimum poll interval used in this association";
      reference
        "RFC 5905: Network Time Protocol Version 4: Protocol and
         Algorithms Specification, Section 7.2";
    }
    leaf maxpoll {
      type log2seconds;
      default "10";
      description
        "The maximum poll interval used in this association";
      reference
        "RFC 5905: Network Time Protocol Version 4: Protocol and
         Algorithms Specification, Section 7.2";
    }
    leaf port {
      if-feature "ntp-port";
      type inet:port-number {
        range "123 | 1024..max";
      }
      default "123";
      description
        "Specify the port used to send NTP packets.";
      reference
        "RFC 5905: Network Time Protocol Version 4: Protocol and
         Algorithms Specification, Section 7.2";
    }
    leaf version {
      type ntp-version;
      description
        "NTP version";
    }
    reference
      "RFC 5905: Network Time Protocol Version 4: Protocol and
       Algorithms Specification";
  }

  grouping association-ref {
    description
      "Reference to NTP association mode";
    leaf associations-address {
      type leafref {
        path "/ntp:ntp/ntp:associations/ntp:association"
           + "/ntp:address";
      }
      description
        "Indicates the association's address
         that results in clock synchronization.";
    }
    leaf associations-local-mode {
      type leafref {
        path "/ntp:ntp/ntp:associations/ntp:association"
           + "/ntp:local-mode";
      }
      description
        "Indicates the association's local-mode
         that results in clock synchronization.";
    }
    leaf associations-isconfigured {
      type leafref {
        path "/ntp:ntp/ntp:associations/ntp:association/"
           + "ntp:isconfigured";
      }
      description
        "Indicates if the association (that resulted in the
         clock synchronization) is explicitly configured.";
    }
  }

  container ntp {
    when 'false() = boolean(/sys:system/sys:ntp)' {
      description
        "Applicable when the system /sys/ntp/ is not used.";
    }
    presence "NTP is enabled and system should attempt to
              synchronize the system clock with an NTP server
              from the 'ntp/associations' list.";
    description
      "Configuration parameters for NTP";
    leaf port {
      if-feature "ntp-port";
      type inet:port-number {
        range "123 | 1024..max";
      }
      default "123";
      description
        "Specify the port used to send and receive NTP packets.";
      reference
        "RFC 5905: Network Time Protocol Version 4: Protocol and
         Algorithms Specification, Section 7.2";
    }
    container refclock-master {
      presence "NTP master clock is enabled.";
      description
        "Configures the local clock of this device as NTP server.";
      leaf master-stratum {
        type ntp-stratum;
        default "16";
        description
          "Stratum level from which NTP clients get their time
           synchronized.";
      }
    }
    container authentication {
      if-feature "authentication";
      description
        "Configuration of authentication";
      leaf auth-enabled {
        type boolean;
        default "false";
        description
          "Controls whether NTP authentication is enabled
           or disabled on this device.";
      }
      list authentication-keys {
        key "keyid";
        uses authentication-key;
        description
          "List of authentication keys";
      }
    }
    container access-rules {
      if-feature "access-rules";
      description
        "Configuration to control access to NTP service
         by using the NTP access-group feature.
         The access-mode identifies how the ACL is
         applied with NTP.";
      list access-rule {
        key "access-mode";
        description
          "List of access rules";
        leaf access-mode {
          type identityref {
            base access-mode;
          }
          description
            "The NTP access-mode.  Some of the possible values
             include peer, server, synchronization, query,
             etc.";
        }
        leaf acl {
          type leafref {
            path "/acl:acls/acl:acl/acl:name";
          }
          description
            "Control access configuration to be used.";
        }
        reference
          "RFC 5905: Network Time Protocol Version 4: Protocol and
           Algorithms Specification, Section 9.2";
      }
    }
    container clock-state {
      config false;
      description
        "Clock operational state of the NTP";
      container system-status {
        description
          "System status of NTP";
        leaf clock-state {
          type identityref {
            base clock-state;
          }
          mandatory true;
          description
            "The state of the system clock.  Some of the possible
             values include synchronized and unsynchronized.";
        }
        leaf clock-stratum {
          type ntp-stratum;
          mandatory true;
          description
            "The NTP entity's own stratum value.  Should be one
             greater than the preceding level.
             16 if unsynchronized.";
          reference
            "RFC 5905: Network Time Protocol Version 4: Protocol and
             Algorithms Specification, Section 3";
        }
        leaf clock-refid {
          type refid;
          mandatory true;
          description
            "A code identifying the particular server or reference
             clock.  The interpretation depends upon stratum.  It
             could be an IPv4 address, the first 32 bits of the MD5
             hash of the IPv6 address, or a string for the Reference
             Identifier and kiss codes.  Some examples:

             -- a refclock ID like '127.127.1.0' for local clock sync

             -- uni/multi/broadcast associations for IPv4 will look
                like '203.0.113.1' and '0x4321FEDC' for IPv6

             -- sync with primary source will look like 'DCN',
                'NIST', 'ATOM'

             -- kiss codes will look like 'AUTH', 'DROP', 'RATE'

             Note that the use of MD5 hash for IPv6 address is not
             for cryptographic purposes.";
          reference
            "RFC 5905: Network Time Protocol Version 4: Protocol and
             Algorithms Specification, Section 7.3";
        }
        uses association-ref {
          description
            "Reference to association";
        }
        leaf nominal-freq {
          type decimal64 {
            fraction-digits 4;
          }
          units "Hz";
          mandatory true;
          description
            "The nominal frequency of the local clock.  An ideal
             frequency with zero uncertainty.";
        }
        leaf actual-freq {
          type decimal64 {
            fraction-digits 4;
          }
          units "Hz";
          mandatory true;
          description
            "The actual frequency of the local clock";
        }
        leaf clock-precision {
          type log2seconds;
          mandatory true;
          description
            "Clock precision of this system in signed integer format,
             in log 2 seconds -  (prec=2^(-n)).  A value of 5 would
             mean 2^-5 = 0.03125 seconds = 31.25 ms.";
          reference
            "RFC 5905: Network Time Protocol Version 4: Protocol and
             Algorithms Specification, Section 7.3";
        }
        leaf clock-offset {
          type decimal64 {
            fraction-digits 3;
          }
          units "milliseconds";
          description
            "The signed time offset to the current selected reference
             time source, e.g., '0.032ms' or '1.232ms'.  The negative
             value indicates that the local clock is behind the
             current selected reference time source.";
          reference
            "RFC 5905: Network Time Protocol Version 4: Protocol and
             Algorithms Specification, Section 9.1";
        }
        leaf root-delay {
          type decimal64 {
            fraction-digits 3;
          }
          units "milliseconds";
          description
            "Total delay along the path to the root clock";
          reference
            "RFC 5905: Network Time Protocol Version 4: Protocol and
             Algorithms Specification, Sections 4 and 7.3";
        }
        leaf root-dispersion {
          type decimal64 {
            fraction-digits 3;
          }
          units "milliseconds";
          description
            "The dispersion to the local clock
             and the root clock, e.g., '6.927ms'.";
          reference
            "RFC 5905: Network Time Protocol Version 4: Protocol and
             Algorithms Specification, Sections 4, 7.3, and 10";
        }
        leaf reference-time {
          type ntp-date-and-time;
          description
            "The reference timestamp.  Time when the system clock was
             last set or corrected.";
          reference
            "RFC 5905: Network Time Protocol Version 4: Protocol and
             Algorithms Specification, Section 7.3";
        }
        leaf sync-state {
          type identityref {
            base ntp-sync-state;
          }
          mandatory true;
          description
            "The synchronization status of the local clock.  Referred
             to as 'Clock state definitions' in RFC 5905.";
          reference
            "RFC 5905: Network Time Protocol Version 4: Protocol and
             Algorithms Specification, Appendix A.1.1";
        }
      }
    }
    list unicast-configuration {
      if-feature "unicast-configuration";
      key "address type";
      description
        "List of NTP unicast-configurations";
      leaf address {
        type inet:ip-address;
        description
          "Address of this association";
      }
      leaf type {
        type identityref {
          base unicast-configuration-type;
        }
        description
          "The unicast configuration type, for example,
           unicast-server";
      }
      container authentication {
        if-feature "authentication";
        description
          "Authentication used for this association";
        uses authentication;
      }
      leaf prefer {
        type boolean;
        default "false";
        description
          "Whether or not this association is preferred";
      }
      leaf burst {
        type boolean;
        default "false";
        description
          "If set, a series of packets are sent instead of a single
           packet within each synchronization interval to achieve
           faster synchronization.";
        reference
          "RFC 5905: Network Time Protocol Version 4: Protocol
           and Algorithms Specification, Section 13.1";
      }
      leaf iburst {
        type boolean;
        default "false";
        description
          "If set, a series of packets are sent instead of a single
           packet within the initial synchronization interval to
           achieve faster initial synchronization.";
        reference
          "RFC 5905: Network Time Protocol Version 4: Protocol
           and Algorithms Specification, Section 13.1";
      }
      leaf source {
        type if:interface-ref;
        description
          "The interface whose IP address is used by this association
           as the source address.";
      }
      uses common-attributes {
        description
          "Common attributes like port, version, and min and max
           poll.";
      }
    }
    container associations {
      description
        "Association parameters";
      list association {
        key "address local-mode isconfigured";
        config false;
        description
          "List of NTP associations.  Here address, local-mode,
           and isconfigured are required to uniquely identify
           a particular association.  Let's take the following
           examples:

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

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

           Thus, all three leaves are needed as key to uniquely
           identify the association.";
        leaf address {
          type inet:ip-address;
          description
            "The remote address of this association.  Represents the
             IP address of a unicast/multicast/broadcast address.";
        }
        leaf local-mode {
          type identityref {
            base association-mode;
          }
          description
            "Local-mode of this NTP association";
        }
        leaf isconfigured {
          type boolean;
          description
            "Indicates if this association is configured (true) or
             dynamically learned (false).";
        }
        leaf stratum {
          type ntp-stratum;
          description
            "The association stratum value";
          reference
            "RFC 5905: Network Time Protocol Version 4: Protocol and
             Algorithms Specification, Section 3";
        }
        leaf refid {
          type refid;
          description
            "A code identifying the particular server or reference
             clock.  The interpretation depends upon stratum.  It
             could be an IPv4 address or first 32 bits of the MD5
             hash of the IPv6 address or a string for the Reference
             Identifier and kiss codes.  Some examples:

             -- a refclock ID like '127.127.1.0' for local clock sync

             -- uni/multi/broadcast associations for IPv4 will look
                like '203.0.113.1' and '0x4321FEDC' for IPv6

             -- sync with primary source will look like 'DCN',
                'NIST', or 'ATOM'

             -- kiss codes will look like 'AUTH', 'DROP', or 'RATE'

             Note that the use of an MD5 hash for IPv6 address is
             not for cryptographic purposes.";
          reference
            "RFC 5905: Network Time Protocol Version 4: Protocol and
             Algorithms Specification, Section 7.3";
        }
        leaf authentication {
          if-feature "authentication";
          type leafref {
            path "/ntp:ntp/ntp:authentication/"
               + "ntp:authentication-keys/ntp:keyid";
          }
          description
            "Authentication key used for this association";
        }
        leaf prefer {
          type boolean;
          default "false";
          description
            "Indicates if this association is preferred";
        }
        leaf peer-interface {
          type if:interface-ref;
          description
            "The interface that is used for communication";
        }
        uses common-attributes {
          description
            "Common attributes like port, version, and min and
             max poll";
        }
        leaf reach {
          type uint8;
          description
            "An 8-bit shift register that tracks packet
             generation and receipt.  It is used to determine
             whether the server is reachable and the data are
             fresh.";
          reference
            "RFC 5905: Network Time Protocol Version 4: Protocol and
             Algorithms Specification, Sections 9.2 and 13";
        }
        leaf unreach {
          type uint8;
          units "seconds";
          description
            "A count of how long in second the server has been
             unreachable, i.e., the reach value has been zero.";
          reference
            "RFC 5905: Network Time Protocol Version 4: Protocol and
             Algorithms Specification, Sections 9.2 and 13";
        }
        leaf poll {
          type log2seconds;
          description
            "The polling interval for current association in signed
             log2 seconds.";
          reference
            "RFC 5905: Network Time Protocol Version 4: Protocol and
             Algorithms Specification, Section 7.3";
        }
        leaf now {
          type uint32;
          units "seconds";
          description
            "The time since the last NTP packet was
             received or last synchronized.";
        }
        leaf offset {
          type decimal64 {
            fraction-digits 3;
          }
          units "milliseconds";
          description
            "The signed offset between the local clock
             and the peer clock, e.g., '0.032ms' or '1.232ms'.  The
             negative value indicates that the local clock is behind
             the peer.";
          reference
            "RFC 5905: Network Time Protocol Version 4: Protocol and
             Algorithms Specification, Section 8";
        }
        leaf delay {
          type decimal64 {
            fraction-digits 3;
          }
          units "milliseconds";
          description
            "The network delay between the local clock
             and the peer clock";
          reference
            "RFC 5905: Network Time Protocol Version 4: Protocol and
             Algorithms Specification, Section 8";
        }
        leaf dispersion {
          type decimal64 {
            fraction-digits 3;
          }
          units "milliseconds";
          description
            "The root dispersion between the local clock
             and the peer clock.";
          reference
            "RFC 5905: Network Time Protocol Version 4: Protocol and
             Algorithms Specification, Section 10";
        }
        leaf originate-time {
          type ntp-date-and-time;
          description
            "This is the local time, in timestamp format,
             when the latest NTP packet was sent to the peer
             (called T1).";
          reference
            "RFC 5905: Network Time Protocol Version 4: Protocol and
             Algorithms Specification, Section 8";
        }
        leaf receive-time {
          type ntp-date-and-time;
          description
            "This is the local time, in timestamp format,
             when the latest NTP packet arrived at the peer
             (called T2).  If the peer becomes unreachable,
             the value is set to zero.";
          reference
            "RFC 5905: Network Time Protocol Version 4: Protocol
             and Algorithms Specification, Section 8";
        }
        leaf transmit-time {
          type ntp-date-and-time;
          description
            "This is the local time, in timestamp format,
             at which the NTP packet departed the peer
             (called T3).  If the peer becomes unreachable,
             the value is set to zero.";
          reference
            "RFC 5905: Network Time Protocol Version 4: Protocol
             and Algorithms Specification, Section 8";
        }
        leaf input-time {
          type ntp-date-and-time;
          description
            "This is the local time, in timestamp format,
             when the latest NTP message from the peer arrived
             (called T4).  If the peer becomes unreachable,
             value is set to zero.";
          reference
            "RFC 5905: Network Time Protocol Version 4: Protocol
             and Algorithms Specification, Section 8";
        }
        container ntp-statistics {
          description
            "Per peer packet send and receive statistics";
          uses statistics {
            description
              "NTP send and receive packet statistics";
          }
        }
      }
    }
    container interfaces {
      description
        "Configuration parameters for NTP interfaces";
      list interface {
        key "name";
        description
          "List of interfaces";
        leaf name {
          type if:interface-ref;
          description
            "The interface name";
        }
        container broadcast-server {
          if-feature "broadcast-server";
          presence "NTP broadcast-server is configured on this
                    interface.";
          description
            "Configuration of broadcast server";
          leaf ttl {
            type uint8;
            description
              "Specifies the time to live (TTL) for a
               broadcast packet";
            reference
              "RFC 5905: Network Time Protocol Version 4: Protocol
               and Algorithms Specification, Section 3.1";
          }
          container authentication {
            if-feature "authentication";
            description
              "Authentication used on this interface";
            uses authentication;
          }
          uses common-attributes {
            description
              "Common attributes such as port, version, and min and
               max poll";
          }
          reference
            "RFC 5905: Network Time Protocol Version 4: Protocol
             and Algorithms Specification, Section 3.1";
        }
        container broadcast-client {
          if-feature "broadcast-client";
          presence "NTP broadcast-client is configured on this
                    interface.";
          description
            "Configuration of broadcast client";
          reference
            "RFC 5905: Network Time Protocol Version 4: Protocol
             and Algorithms Specification, Section 3.1";
        }
        list multicast-server {
          if-feature "multicast-server";
          key "address";
          description
            "Configuration of multicast server";
          leaf address {
            type rt-types:ip-multicast-group-address;
            description
              "The IP address to send NTP multicast packets";
          }
          leaf ttl {
            type uint8;
            description
              "Specifies the TTL for a  multicast packet";
            reference
              "RFC 5905: Network Time Protocol Version 4: Protocol
               and Algorithms Specification, Section 3.1";
          }
          container authentication {
            if-feature "authentication";
            description
              "Authentication used on this interface";
            uses authentication;
          }
          uses common-attributes {
            description
              "Common attributes such as port, version, and min and
               max poll";
          }
          reference
            "RFC 5905: Network Time Protocol Version 4: Protocol
             and Algorithms Specification, Section 3.1";
        }
        list multicast-client {
          if-feature "multicast-client";
          key "address";
          description
            "Configuration of a multicast client";
          leaf address {
            type rt-types:ip-multicast-group-address;
            description
              "The IP address of the multicast group to
               join";
          }
          reference
            "RFC 5905: Network Time Protocol Version 4: Protocol
             and Algorithms Specification, Section 3.1";
        }
        list manycast-server {
          if-feature "manycast-server";
          key "address";
          description
            "Configuration of a manycast server";
          leaf address {
            type rt-types:ip-multicast-group-address;
            description
              "The multicast group IP address to receive
               manycast client messages.";
          }
          reference
            "RFC 5905: Network Time Protocol Version 4: Protocol
             and Algorithms Specification, Section 3.1";
        }
        list manycast-client {
          if-feature "manycast-client";
          key "address";
          description
            "Configuration of manycast-client";
          leaf address {
            type rt-types:ip-multicast-group-address;
            description
              "The group IP address that the manycast client
               broadcasts the request message to";
          }
          container authentication {
            if-feature "authentication";
            description
              "Authentication used on this interface";
            uses authentication;
          }
          leaf ttl {
            type uint8;
            description
              "Specifies the maximum TTL for the expanding
               ring search";
            reference
              "RFC 5905: Network Time Protocol Version 4: Protocol
               and Algorithms Specification, Section 3.1";
          }
          leaf minclock {
            type uint8;
            description
              "The minimum manycast survivors in this
               association";
            reference
              "RFC 5905: Network Time Protocol Version 4: Protocol
               and Algorithms Specification, Section 13.2";
          }
          leaf maxclock {
            type uint8;
            description
              "The maximum manycast candidates in this
               association";
            reference
              "RFC 5905: Network Time Protocol Version 4: Protocol
               and Algorithms Specification, Section 13.2";
          }
          leaf beacon {
            type log2seconds;
            description
              "The beacon is the upper limit of the poll interval.
               When the TTL reaches its limit without finding the
               minimum number of manycast servers, the poll interval
               increases until reaching the beacon value, when it
               starts over from the beginning.";
            reference
              "RFC 5905: Network Time Protocol Version 4: Protocol
               and Algorithms Specification, Section 13.2";
          }
          uses common-attributes {
            description
              "Common attributes like port, version, and min and
               max poll";
          }
          reference
            "RFC 5905: Network Time Protocol Version 4: Protocol
             and Algorithms Specification, Section 3.1";
        }
      }
    }
    container ntp-statistics {
      config false;
      description
        "Total NTP packet statistics";
      uses statistics {
        description
          "NTP send and receive packet statistics";
      }
    }
  }

  rpc statistics-reset {
    description
      "Reset statistics collected.";
    input {
      choice association-or-all {
        description
          "Resets statistics for a particular association or
           all.";
        case association {
          uses association-ref;
          description
            "This resets all the statistics collected for
             the association.";
        }
        case all {
          description
            "This resets all the statistics collected.";
        }
      }
    }
  }
}
</sourcecode>
    </section>
    <section numbered="true" toc="include" removeInRFC="false" pn="section-9">
      <name slugifiedName="name-usage-example">Usage Example</name>
      <t indent="0" pn="section-9-1">This section include examples for illustration purposes.</t>
      <t indent="0" pn="section-9-2">Note: '\' indicates line wrapping per <xref target="RFC8792" format="default" sectionFormat="of" derivedContent="RFC8792"/>.</t>
      <section numbered="true" toc="include" removeInRFC="false" pn="section-9.1">
        <name slugifiedName="name-unicast-association">Unicast Association</name>
        <t indent="0" pn="section-9.1-1">This example describes how to configure a preferred unicast server present at 192.0.2.1 running at port 1025 with authentication-key 10 and version 4 (default).</t>
        <sourcecode type="xml" markers="false" pn="section-9.1-2">
  &lt;edit-config xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"&gt;
    &lt;target&gt;
      &lt;running/&gt;
    &lt;/target&gt;
    &lt;config&gt;
      &lt;ntp xmlns="urn:ietf:params:xml:ns:yang:ietf-ntp"&gt;
        &lt;unicast-configuration&gt;
          &lt;address&gt;192.0.2.1&lt;/address&gt;
          &lt;type&gt;uc-server&lt;/type&gt;
          &lt;prefer&gt;true&lt;/prefer&gt;
          &lt;port&gt;1025&lt;/port&gt;
          &lt;authentication&gt;
            &lt;symmetric-key&gt;
              &lt;keyid&gt;10&lt;/keyid&gt;
            &lt;/symmetric-key&gt;
          &lt;/authentication&gt;
        &lt;/unicast-configuration&gt;
      &lt;/ntp&gt;
    &lt;/config&gt;
  &lt;/edit-config&gt;
</sourcecode>
        <t keepWithNext="true" indent="0" pn="section-9.1-3">An example with IPv6 would use an IPv6 address (say 2001:db8::1) in the "address" leaf with no change in any other data tree.</t>
        <sourcecode type="xml" markers="false" pn="section-9.1-4">
  &lt;edit-config xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"&gt;
    &lt;target&gt;
      &lt;running/&gt;
    &lt;/target&gt;
    &lt;config&gt;
      &lt;ntp xmlns="urn:ietf:params:xml:ns:yang:ietf-ntp"&gt;
        &lt;unicast-configuration&gt;
          &lt;address&gt;2001:db8::1&lt;/address&gt;
          &lt;type&gt;uc-server&lt;/type&gt;
          &lt;prefer&gt;true&lt;/prefer&gt;
          &lt;port&gt;1025&lt;/port&gt;
          &lt;authentication&gt;
            &lt;symmetric-key&gt;
              &lt;keyid&gt;10&lt;/keyid&gt;
            &lt;/symmetric-key&gt;
          &lt;/authentication&gt;
        &lt;/unicast-configuration&gt;
      &lt;/ntp&gt;
    &lt;/config&gt;
  &lt;/edit-config&gt;
</sourcecode>
        <t indent="0" pn="section-9.1-5">This example is for retrieving unicast configurations: </t>
        <sourcecode type="xml" markers="false" pn="section-9.1-6">
&lt;get&gt;
  &lt;filter type="subtree"&gt;
  &lt;ntp xmlns="urn:ietf:params:xml:ns:yang:ietf-ntp"&gt;
      &lt;unicast-configuration&gt;
      &lt;/unicast-configuration&gt;
  &lt;/ntp&gt;
  &lt;/filter&gt;
&lt;/get&gt;

&lt;data xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"&gt;
  &lt;ntp xmlns="urn:ietf:params:xml:ns:yang:ietf-ntp"&gt;
    &lt;unicast-configuration&gt;
      &lt;address&gt;192.0.2.1&lt;/address&gt;
      &lt;type&gt;uc-server&lt;/type&gt;
        &lt;authentication&gt;
          &lt;symmetric-key&gt;
            &lt;keyid&gt;10&lt;/keyid&gt;
          &lt;/symmetric-key&gt;
        &lt;/authentication&gt;
      &lt;prefer&gt;true&lt;/prefer&gt;
      &lt;burst&gt;false&lt;/burst&gt;
      &lt;iburst&gt;true&lt;/iburst&gt;
      &lt;source/&gt;
      &lt;minpoll&gt;6&lt;/minpoll&gt;
      &lt;maxpoll&gt;10&lt;/maxpoll&gt;
      &lt;port&gt;1025&lt;/port&gt;
      &lt;stratum&gt;9&lt;/stratum&gt;
      &lt;refid&gt;203.0.113.1&lt;/refid&gt;
      &lt;reach&gt;255&lt;/reach&gt;
      &lt;unreach&gt;0&lt;/unreach&gt;
      &lt;poll&gt;128&lt;/poll&gt;
      &lt;now&gt;10&lt;/now&gt;
      &lt;offset&gt;0.025&lt;/offset&gt;
      &lt;delay&gt;0.5&lt;/delay&gt;
      &lt;dispersion&gt;0.6&lt;/dispersion&gt;
      &lt;originate-time&gt;10-10-2017 07:33:55.253 Z+05:30\
      &lt;/originate-time&gt;
      &lt;receive-time&gt;10-10-2017 07:33:55.258 Z+05:30\
      &lt;/receive-time&gt;
      &lt;transmit-time&gt;10-10-2017 07:33:55.300 Z+05:30\
      &lt;/transmit-time&gt;
      &lt;input-time&gt;10-10-2017 07:33:55.305 Z+05:30\
      &lt;/input-time&gt;
      &lt;ntp-statistics&gt;
        &lt;packet-sent&gt;20&lt;/packet-sent&gt;
        &lt;packet-sent-fail&gt;0&lt;/packet-sent-fail&gt;
        &lt;packet-received&gt;20&lt;/packet-received&gt;
        &lt;packet-dropped&gt;0&lt;/packet-dropped&gt;
      &lt;/ntp-statistics&gt;
    &lt;/unicast-configuration&gt;
  &lt;/ntp&gt;
&lt;/data&gt;
</sourcecode>
      </section>
      <section numbered="true" toc="include" removeInRFC="false" pn="section-9.2">
        <name slugifiedName="name-refclock-master">Refclock Master</name>
        <t indent="0" pn="section-9.2-1">This example describes how to configure reference clock with stratum 8:</t>
        <sourcecode type="xml" markers="false" pn="section-9.2-2">
&lt;edit-config xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"&gt;
  &lt;target&gt;
    &lt;running/&gt;
  &lt;/target&gt;
  &lt;config&gt;
    &lt;ntp xmlns="urn:ietf:params:xml:ns:yang:ietf-ntp"&gt;
      &lt;refclock-master&gt;
        &lt;master-stratum&gt;8&lt;/master-stratum&gt;
      &lt;/refclock-master&gt;
    &lt;/ntp&gt;
  &lt;/config&gt;
&lt;/edit-config&gt;
</sourcecode>
        <t keepWithNext="true" indent="0" pn="section-9.2-3">This example describes how to get reference clock configuration: </t>
        <sourcecode type="xml" markers="false" pn="section-9.2-4">
&lt;get&gt;
  &lt;filter type="subtree"&gt;
    &lt;ntp xmlns="urn:ietf:params:xml:ns:yang:ietf-ntp"&gt;
      &lt;refclock-master&gt;
      &lt;/refclock-master&gt;
    &lt;/ntp&gt;
  &lt;/filter&gt;
&lt;/get&gt;

&lt;data xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"&gt;
  &lt;ntp xmlns="urn:ietf:params:xml:ns:yang:ietf-ntp"&gt;
    &lt;refclock-master&gt;
      &lt;master-stratum&gt;8&lt;/master-stratum&gt;
    &lt;/refclock-master&gt;
  &lt;/ntp&gt;
&lt;/data&gt;
</sourcecode>
      </section>
      <section numbered="true" toc="include" removeInRFC="false" pn="section-9.3">
        <name slugifiedName="name-authentication-configuratio">Authentication Configuration</name>
        <t indent="0" pn="section-9.3-1">This example describes how to enable authentication and configure trusted authentication key 10 with mode as AES-CMAC and a hexadecimal string key:</t>
        <sourcecode type="xml" markers="false" pn="section-9.3-2">
&lt;edit-config xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"&gt;
  &lt;target&gt;
    &lt;running/&gt;
  &lt;/target&gt;
  &lt;config&gt;
    &lt;ntp xmlns="urn:ietf:params:xml:ns:yang:ietf-ntp"&gt;
      &lt;authentication&gt;
        &lt;auth-enabled&gt;true&lt;/auth-enabled&gt;
        &lt;authentication-keys&gt;
          &lt;keyid&gt;10&lt;/keyid&gt;
          &lt;algorithm&gt;aes-cmac&lt;/algorithm&gt;
          &lt;key&gt;
            &lt;hexadecimal-string&gt;
              bb1d6929e95937287fa37d129b756746
            &lt;/hexadecimal-string&gt;
          &lt;/key&gt;
          &lt;istrusted&gt;true&lt;/istrusted&gt;
        &lt;/authentication-keys&gt;
      &lt;/authentication&gt;
    &lt;/ntp&gt;
  &lt;/config&gt;
&lt;/edit-config&gt;
</sourcecode>
      </section>
      <section numbered="true" toc="include" removeInRFC="false" pn="section-9.4">
        <name slugifiedName="name-access-configuration">Access Configuration</name>
        <t indent="0" pn="section-9.4-1">This example describes how to configure "peer-access-mode" associated with ACL 2000:</t>
        <sourcecode type="xml" markers="false" pn="section-9.4-2">
&lt;edit-config xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"&gt;
  &lt;target&gt;
    &lt;running/&gt;
  &lt;/target&gt;
  &lt;config&gt;
    &lt;ntp xmlns="urn:ietf:params:xml:ns:yang:ietf-ntp"&gt;
      &lt;access-rules&gt;
        &lt;access-rule&gt;
          &lt;access-mode&gt;peer-access-mode&lt;/access-mode&gt;
          &lt;acl&gt;2000&lt;/acl&gt;
        &lt;/access-rule&gt;
      &lt;/access-rules&gt;
    &lt;/ntp&gt;
  &lt;/config&gt;
&lt;/edit-config&gt;
</sourcecode>
        <t indent="0" pn="section-9.4-3">This example describes how to get access-related configuration:</t>
        <sourcecode type="xml" markers="false" pn="section-9.4-4">
&lt;get&gt;
  &lt;filter type="subtree"&gt;
    &lt;ntp xmlns="urn:ietf:params:xml:ns:yang:ietf-ntp"&gt;
      &lt;access-rules&gt;
      &lt;/access-rules&gt;
    &lt;/ntp&gt;
  &lt;/filter&gt;
&lt;/get&gt;

&lt;data xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"&gt;
  &lt;ntp xmlns="urn:ietf:params:xml:ns:yang:ietf-ntp"&gt;
    &lt;access-rules&gt;
      &lt;access-rule&gt;
        &lt;access-mode&gt;peer-access-mode&lt;/access-mode&gt;
        &lt;acl&gt;2000&lt;/acl&gt;
      &lt;/access-rule&gt;
    &lt;/access-rules&gt;
  &lt;/ntp&gt;
&lt;/data&gt;
</sourcecode>
      </section>
      <section numbered="true" toc="include" removeInRFC="false" pn="section-9.5">
        <name slugifiedName="name-multicast-configuration">Multicast Configuration</name>
        <t indent="0" pn="section-9.5-1">This example describes how to configure a multicast server with an address of "224.0.1.1", port of 1025, version of 3, and authentication keyid of 10.</t>
        <sourcecode type="xml" markers="false" pn="section-9.5-2">
&lt;edit-config xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"&gt;
  &lt;target&gt;
    &lt;running/&gt;
  &lt;/target&gt;
  &lt;config&gt;
    &lt;ntp xmlns="urn:ietf:params:xml:ns:yang:ietf-ntp"&gt;
      &lt;interfaces&gt;
        &lt;interface&gt;
          &lt;name&gt;Ethernet3/0/0&lt;/name&gt;
          &lt;multicast-server&gt;
            &lt;address&gt;224.0.1.1&lt;/address&gt;
            &lt;authentication&gt;
              &lt;symmetric-key&gt;
                &lt;keyid&gt;10&lt;/keyid&gt;
              &lt;/symmetric-key&gt;
            &lt;/authentication&gt;
            &lt;port&gt;1025&lt;/port&gt;
            &lt;version&gt;3&lt;/version&gt;
          &lt;/multicast-server&gt;
        &lt;/interface&gt;
      &lt;/interfaces&gt;
    &lt;/ntp&gt;
  &lt;/config&gt;
&lt;/edit-config&gt;
</sourcecode>
        <t keepWithNext="true" indent="0" pn="section-9.5-3">This example describes how to get multicast-server-related configuration:</t>
        <sourcecode type="xml" markers="false" pn="section-9.5-4">
&lt;get&gt;
  &lt;filter type="subtree"&gt;
    &lt;ntp xmlns="urn:ietf:params:xml:ns:yang:ietf-ntp"&gt;
      &lt;interfaces&gt;
        &lt;interface&gt;
          &lt;multicast-server&gt;
          &lt;/multicast-server&gt;
        &lt;/interface&gt;
      &lt;/interfaces&gt;
    &lt;/ntp&gt;
  &lt;/filter&gt;
&lt;/get&gt;

&lt;data xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"&gt;
  &lt;ntp xmlns="urn:ietf:params:xml:ns:yang:ietf-ntp"&gt;
    &lt;interfaces&gt;
      &lt;interface&gt;
        &lt;name&gt;Ethernet3/0/0&lt;/name&gt;
        &lt;multicast-server&gt;
          &lt;address&gt;224.0.1.1&lt;/address&gt;
          &lt;ttl&gt;8&lt;/ttl&gt;
          &lt;authentication&gt;
            &lt;symmetric-key&gt;
              &lt;keyid&gt;10&lt;/keyid&gt;
            &lt;/symmetric-key&gt;
          &lt;/authentication&gt;
          &lt;minpoll&gt;6&lt;/minpoll&gt;
          &lt;maxpoll&gt;10&lt;/maxpoll&gt;
          &lt;port&gt;1025&lt;/port&gt;
          &lt;version&gt;3&lt;/version&gt;
        &lt;/multicast-server&gt;
      &lt;/interface&gt;
    &lt;/interfaces&gt;
  &lt;/ntp&gt;
&lt;/data&gt;
</sourcecode>
        <t keepWithNext="true" indent="0" pn="section-9.5-5">This example describes how to configure a multicast client with an address of "224.0.1.1":</t>
        <sourcecode type="xml" markers="false" pn="section-9.5-6">
&lt;edit-config xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"&gt;
  &lt;target&gt;
    &lt;running/&gt;
  &lt;/target&gt;
  &lt;config&gt;
    &lt;ntp xmlns="urn:ietf:params:xml:ns:yang:ietf-ntp"&gt;
      &lt;interfaces&gt;
        &lt;interface&gt;
          &lt;name&gt;Ethernet3/0/0&lt;/name&gt;
          &lt;multicast-client&gt;
            &lt;address&gt;224.0.1.1&lt;/address&gt;
          &lt;/multicast-client&gt;
        &lt;/interface&gt;
      &lt;/interfaces&gt;
    &lt;/ntp&gt;
  &lt;/config&gt;
&lt;/edit-config&gt;
</sourcecode>
        <t indent="0" pn="section-9.5-7">This example describes how to get multicast-client-related configuration:</t>
        <sourcecode type="xml" markers="false" pn="section-9.5-8">
&lt;get&gt;
  &lt;filter type="subtree"&gt;
    &lt;ntp xmlns="urn:ietf:params:xml:ns:yang:ietf-ntp"&gt;
      &lt;interfaces&gt;
        &lt;interface&gt;
          &lt;multicast-client&gt;
          &lt;/multicast-client&gt;
        &lt;/interface&gt;
      &lt;/interfaces&gt;
    &lt;/ntp&gt;
  &lt;/filter&gt;
&lt;/get&gt;

&lt;data xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"&gt;
  &lt;ntp xmlns="urn:ietf:params:xml:ns:yang:ietf-ntp"&gt;
    &lt;interfaces&gt;
      &lt;interface&gt;
        &lt;name&gt;Ethernet3/0/0&lt;/name&gt;
        &lt;multicast-client&gt;
          &lt;address&gt;224.0.1.1&lt;/address&gt;
        &lt;/multicast-client&gt;
      &lt;/interface&gt;
    &lt;/interfaces&gt;
  &lt;/ntp&gt;
&lt;/data&gt;
</sourcecode>
      </section>
      <section numbered="true" toc="include" removeInRFC="false" pn="section-9.6">
        <name slugifiedName="name-manycast-configuration">Manycast Configuration</name>
        <t indent="0" pn="section-9.6-1">This example describes how to configure a manycast-client with an address of "224.0.1.1", port of 1025, and authentication keyid of 10:</t>
        <sourcecode type="xml" markers="false" pn="section-9.6-2">
&lt;edit-config xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"&gt;
  &lt;target&gt;
    &lt;running/&gt;
  &lt;/target&gt;
  &lt;config&gt;
    &lt;ntp xmlns="urn:ietf:params:xml:ns:yang:ietf-ntp"&gt;
      &lt;interfaces&gt;
        &lt;interface&gt;
          &lt;name&gt;Ethernet3/0/0&lt;/name&gt;
          &lt;manycast-client&gt;
            &lt;address&gt;224.0.1.1&lt;/address&gt;
            &lt;authentication&gt;
              &lt;symmetric-key&gt;
                &lt;keyid&gt;10&lt;/keyid&gt;
              &lt;/symmetric-key&gt;
            &lt;/authentication&gt;
            &lt;port&gt;1025&lt;/port&gt;
          &lt;/manycast-client&gt;
        &lt;/interface&gt;
      &lt;/interfaces&gt;
    &lt;/ntp&gt;
  &lt;/config&gt;
&lt;/edit-config&gt;
</sourcecode>
        <t keepWithNext="true" indent="0" pn="section-9.6-3">This example describes how to get manycast-client-related configuration:</t>
        <sourcecode type="xml" markers="false" pn="section-9.6-4">
&lt;get&gt;
  &lt;filter type="subtree"&gt;
    &lt;ntp xmlns="urn:ietf:params:xml:ns:yang:ietf-ntp"&gt;
      &lt;interfaces&gt;
        &lt;interface&gt;
          &lt;manycast-client&gt;
          &lt;/manycast-client&gt;
        &lt;/interface&gt;
      &lt;/interfaces&gt;
    &lt;/ntp&gt;
  &lt;/filter&gt;
&lt;/get&gt;

&lt;data xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"&gt;
  &lt;ntp xmlns="urn:ietf:params:xml:ns:yang:ietf-ntp"&gt;
    &lt;interfaces&gt;
      &lt;interface&gt;
        &lt;name&gt;Ethernet3/0/0&lt;/name&gt;
        &lt;manycast-client&gt;
          &lt;address&gt;224.0.1.1&lt;/address&gt;
          &lt;authentication&gt;
            &lt;symmetric-key&gt;
              &lt;keyid&gt;10&lt;/keyid&gt;
            &lt;/symmetric-key&gt;
          &lt;/authentication&gt;
          &lt;ttl&gt;8&lt;/ttl&gt;
          &lt;minclock&gt;3&lt;/minclock&gt;
          &lt;maxclock&gt;10&lt;/maxclock&gt;
          &lt;beacon&gt;6&lt;/beacon&gt;
          &lt;minpoll&gt;6&lt;/minpoll&gt;
          &lt;maxpoll&gt;10&lt;/maxpoll&gt;
          &lt;port&gt;1025&lt;/port&gt;
        &lt;/manycast-client&gt;
      &lt;/interface&gt;
    &lt;/interfaces&gt;
  &lt;/ntp&gt;
&lt;/data&gt;
</sourcecode>
        <t keepWithNext="true" indent="0" pn="section-9.6-5">This example describes how to configure a manycast-server with an address of "224.0.1.1":</t>
        <sourcecode type="xml" markers="false" pn="section-9.6-6">
&lt;edit-config xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"&gt;
  &lt;target&gt;
    &lt;running/&gt;
  &lt;/target&gt;
  &lt;config&gt;
    &lt;ntp xmlns="urn:ietf:params:xml:ns:yang:ietf-ntp"&gt;
      &lt;interfaces&gt;
        &lt;interface&gt;
          &lt;name&gt;Ethernet3/0/0&lt;/name&gt;
          &lt;manycast-server&gt;
            &lt;address&gt;224.0.1.1&lt;/address&gt;
          &lt;/manycast-server&gt;
        &lt;/interface&gt;
      &lt;/interfaces&gt;
    &lt;/ntp&gt;
  &lt;/config&gt;
&lt;/edit-config&gt;
</sourcecode>
        <t indent="0" pn="section-9.6-7">This example describes how to get manycast-server-related configuration:</t>
        <sourcecode type="xml" markers="false" pn="section-9.6-8">
&lt;get&gt;
  &lt;filter type="subtree"&gt;
    &lt;ntp xmlns="urn:ietf:params:xml:ns:yang:ietf-ntp"&gt;
      &lt;interfaces&gt;
        &lt;interface&gt;
          &lt;manycast-server&gt;
          &lt;/manycast-server&gt;
        &lt;/interface&gt;
      &lt;/interfaces&gt;
    &lt;/ntp&gt;
  &lt;/filter&gt;
&lt;/get&gt;

&lt;data xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"&gt;
  &lt;ntp xmlns="urn:ietf:params:xml:ns:yang:ietf-ntp"&gt;
    &lt;interfaces&gt;
      &lt;interface&gt;
        &lt;name&gt;Ethernet3/0/0&lt;/name&gt;
        &lt;manycast-server&gt;
          &lt;address&gt;224.0.1.1&lt;/address&gt;
        &lt;/manycast-server&gt;
      &lt;/interface&gt;
    &lt;/interfaces&gt;
  &lt;/ntp&gt;
&lt;/data&gt;
</sourcecode>
      </section>
      <section numbered="true" toc="include" removeInRFC="false" pn="section-9.7">
        <name slugifiedName="name-clock-state">Clock State</name>
        <t indent="0" pn="section-9.7-1">This example describes how to get current clock state:</t>
        <sourcecode type="xml" markers="false" pn="section-9.7-2">
&lt;get&gt;
  &lt;filter type="subtree"&gt;
    &lt;ntp xmlns="urn:ietf:params:xml:ns:yang:ietf-ntp"&gt;
      &lt;clock-state&gt;
      &lt;/clock-state&gt;
    &lt;/ntp&gt;
  &lt;/filter&gt;
&lt;/get&gt;

&lt;data xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"&gt;
  &lt;ntp xmlns="urn:ietf:params:xml:ns:yang:ietf-ntp"&gt;
    &lt;clock-state&gt;
      &lt;system-status&gt;
        &lt;clock-state&gt;synchronized&lt;/clock-state&gt;
        &lt;clock-stratum&gt;7&lt;/clock-stratum&gt;
        &lt;clock-refid&gt;192.0.2.1&lt;/clock-refid&gt;
        &lt;associations-address&gt;192.0.2.1\
        &lt;/associations-address&gt;
        &lt;associations-local-mode&gt;client\
        &lt;/associations-local-mode&gt;
        &lt;associations-isconfigured&gt;yes\
        &lt;/associations-isconfigured&gt;
        &lt;nominal-freq&gt;100.0&lt;/nominal-freq&gt;
        &lt;actual-freq&gt;100.0&lt;/actual-freq&gt;
        &lt;clock-precision&gt;18&lt;/clock-precision&gt;
        &lt;clock-offset&gt;0.025&lt;/clock-offset&gt;
        &lt;root-delay&gt;0.5&lt;/root-delay&gt;
        &lt;root-dispersion&gt;0.8&lt;/root-dispersion&gt;
        &lt;reference-time&gt;10-10-2017 07:33:55.258 Z+05:30\
        &lt;/reference-time&gt;
        &lt;sync-state&gt;clock-synchronized&lt;/sync-state&gt;
      &lt;/system-status&gt;
    &lt;/clock-state&gt;
  &lt;/ntp&gt;
&lt;/data&gt;
</sourcecode>
      </section>
      <section numbered="true" toc="include" removeInRFC="false" pn="section-9.8">
        <name slugifiedName="name-get-all-association">Get All Association</name>
        <t indent="0" pn="section-9.8-1">This example describes how to get all associations present in the system:</t>
        <sourcecode type="xml" markers="false" pn="section-9.8-2">
&lt;get&gt;
  &lt;filter type="subtree"&gt;
    &lt;ntp xmlns="urn:ietf:params:xml:ns:yang:ietf-ntp"&gt;
      &lt;associations&gt;
      &lt;/associations&gt;
    &lt;/ntp&gt;
  &lt;/filter&gt;
&lt;/get&gt;

&lt;data xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"&gt;
  &lt;ntp xmlns="urn:ietf:params:xml:ns:yang:ietf-ntp"&gt;
    &lt;associations&gt;
      &lt;association&gt;
        &lt;address&gt;192.0.2.1&lt;/address&gt;
        &lt;stratum&gt;9&lt;/stratum&gt;
        &lt;refid&gt;203.0.113.1&lt;/refid&gt;
        &lt;local-mode&gt;client&lt;/local-mode&gt;
        &lt;isconfigured&gt;true&lt;/isconfigured&gt;
        &lt;authentication-key&gt;10&lt;/authentication-key&gt;
        &lt;prefer&gt;true&lt;/prefer&gt;
        &lt;peer-interface&gt;Ethernet3/0/0&lt;/peer-interface&gt;
        &lt;minpoll&gt;6&lt;/minpoll&gt;
        &lt;maxpoll&gt;10&lt;/maxpoll&gt;
        &lt;port&gt;1025&lt;/port&gt;
        &lt;version&gt;4&lt;/version&gt;
        &lt;reach&gt;255&lt;/reach&gt;
        &lt;unreach&gt;0&lt;/unreach&gt;
        &lt;poll&gt;128&lt;/poll&gt;
        &lt;now&gt;10&lt;/now&gt;
        &lt;offset&gt;0.025&lt;/offset&gt;
        &lt;delay&gt;0.5&lt;/delay&gt;
        &lt;dispersion&gt;0.6&lt;/dispersion&gt;
        &lt;originate-time&gt;10-10-2017 07:33:55.253 Z+05:30\
        &lt;/originate-time&gt;
        &lt;receive-time&gt;10-10-2017 07:33:55.258 Z+05:30\
        &lt;/receive-time&gt;
        &lt;transmit-time&gt;10-10-2017 07:33:55.300 Z+05:30\
        &lt;/transmit-time&gt;
        &lt;input-time&gt;10-10-2017 07:33:55.305 Z+05:30\
        &lt;/input-time&gt;
        &lt;ntp-statistics&gt;
          &lt;packet-sent&gt;20&lt;/packet-sent&gt;
          &lt;packet-sent-fail&gt;0&lt;/packet-sent-fail&gt;
          &lt;packet-received&gt;20&lt;/packet-received&gt;
          &lt;packet-dropped&gt;0&lt;/packet-dropped&gt;
        &lt;/ntp-statistics&gt;
      &lt;/association&gt;
    &lt;/associations&gt;
  &lt;/ntp&gt;
&lt;/data&gt;
</sourcecode>
      </section>
      <section numbered="true" toc="include" removeInRFC="false" pn="section-9.9">
        <name slugifiedName="name-global-statistic">Global Statistic</name>
        <t indent="0" pn="section-9.9-1">This example describes how to get global statistics:</t>
        <sourcecode type="xml" markers="false" pn="section-9.9-2">
&lt;get&gt;
  &lt;filter type="subtree"&gt;
    &lt;ntp xmlns="urn:ietf:params:xml:ns:yang:ietf-ntp"&gt;
      &lt;ntp-statistics&gt;
      &lt;/ntp-statistics&gt;
    &lt;/ntp&gt;
  &lt;/filter&gt;
&lt;/get&gt;

&lt;data xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"&gt;
  &lt;ntp xmlns="urn:ietf:params:xml:ns:yang:ietf-ntp"&gt;
    &lt;ntp-statistics&gt;
      &lt;packet-sent&gt;30&lt;/packet-sent&gt;
      &lt;packet-sent-fail&gt;5&lt;/packet-sent-fail&gt;
      &lt;packet-received&gt;20&lt;/packet-received&gt;
      &lt;packet-dropped&gt;2&lt;/packet-dropped&gt;
    &lt;/ntp-statistics&gt;
  &lt;/ntp&gt;
&lt;/data&gt;
</sourcecode>
      </section>
    </section>
    <section anchor="IANA" numbered="true" toc="include" removeInRFC="false" pn="section-10">
      <name slugifiedName="name-iana-considerations">IANA Considerations</name>
      <section numbered="true" toc="include" removeInRFC="false" pn="section-10.1">
        <name slugifiedName="name-ietf-xml-registry">IETF XML Registry</name>
        <t indent="0" pn="section-10.1-1">This document registers a URI in the "IETF XML Registry" <xref target="RFC3688" format="default" sectionFormat="of" derivedContent="RFC3688"/>. Following the format in RFC 3688, the following
	registration has been made.</t>
        <dl spacing="normal" indent="3" newline="false" pn="section-10.1-2">
          <dt pn="section-10.1-2.1">URI:</dt>
          <dd pn="section-10.1-2.2">urn:ietf:params:xml:ns:yang:ietf-ntp</dd>
          <dt pn="section-10.1-2.3">Registrant Contact:</dt>
          <dd pn="section-10.1-2.4">The IESG.</dd>
          <dt pn="section-10.1-2.5">XML:</dt>
          <dd pn="section-10.1-2.6">N/A; the requested URI is an XML namespace.</dd>
        </dl>
      </section>
      <section numbered="true" toc="include" removeInRFC="false" pn="section-10.2">
        <name slugifiedName="name-yang-module-names">YANG Module Names</name>
        <t indent="0" pn="section-10.2-1">This document registers a YANG module in the "YANG Module Names"
      registry <xref target="RFC6020" format="default" sectionFormat="of" derivedContent="RFC6020"/>.</t>
        <dl spacing="normal" indent="3" newline="false" pn="section-10.2-2">
          <dt pn="section-10.2-2.1">Name:</dt>
          <dd pn="section-10.2-2.2">ietf-ntp</dd>
          <dt pn="section-10.2-2.3">Namespace:</dt>
          <dd pn="section-10.2-2.4">urn:ietf:params:xml:ns:yang:ietf-ntp</dd>
          <dt pn="section-10.2-2.5">Prefix:</dt>
          <dd pn="section-10.2-2.6">ntp</dd>
          <dt pn="section-10.2-2.7">Reference:</dt>
          <dd pn="section-10.2-2.8">RFC 9249</dd>
        </dl>
      </section>
    </section>
    <section anchor="Security" numbered="true" toc="include" removeInRFC="false" pn="section-11">
      <name slugifiedName="name-security-considerations">Security Considerations</name>
      <t indent="0" pn="section-11-1">The YANG module specified in this document defines a schema for data that is designed to be accessed via network management protocols such as NETCONF <xref target="RFC6241" format="default" sectionFormat="of" derivedContent="RFC6241"/> or RESTCONF <xref target="RFC8040" format="default" sectionFormat="of" derivedContent="RFC8040"/>. The lowest NETCONF layer is the secure transport layer, and the mandatory-to-implement secure transport is Secure Shell (SSH) <xref target="RFC6242" format="default" sectionFormat="of" derivedContent="RFC6242"/>. The lowest RESTCONF layer is HTTPS, and the mandatory-to-implement secure transport is TLS <xref target="RFC8446" format="default" sectionFormat="of" derivedContent="RFC8446"/>.</t>
      <t indent="0" pn="section-11-2">The Network Configuration Access Control Model (NACM) <xref target="RFC8341" format="default" sectionFormat="of" derivedContent="RFC8341"/> provides the means to restrict access for particular NETCONF or RESTCONF users to a preconfigured subset of all available NETCONF or RESTCONF protocol operations and content.
      The 'nacm:default-deny-all' is used to prevent retrieval of the key information. </t>
      <t indent="0" pn="section-11-3">There are a number of data nodes defined in this YANG module that are writable/creatable/deletable (i.e., config true, which is the default). These data nodes may be considered sensitive or vulnerable in some network environments. Write operations (e.g., edit-config) to these data nodes without proper protection can have a negative effect on network operations. These are the subtrees and data nodes and their sensitivity/vulnerability:
      </t>
      <dl spacing="normal" indent="3" newline="false" pn="section-11-4">
        <dt pn="section-11-4.1">/ntp/port:</dt>
        <dd pn="section-11-4.2">This data node specifies the port number to be used to send NTP packets. Unexpected changes could lead to disruption and/or network misbehavior.</dd>
        <dt pn="section-11-4.3">/ntp/authentication and /ntp/access-rules:</dt>
        <dd pn="section-11-4.4">The entries in the list include the authentication and access control configurations. Care should be taken while setting these parameters.</dd>
        <dt pn="section-11-4.5">/ntp/unicast-configuration:</dt>
        <dd pn="section-11-4.6">The entries in the list include all unicast configurations (server or peer mode) and indirectly creates or modifies the NTP
associations. Unexpected changes could lead to disruption and/or network misbehavior.</dd>
        <dt pn="section-11-4.7">/ntp/interfaces/interface:</dt>
        <dd pn="section-11-4.8">The entries in the list include all per-interface configurations related to broadcast, multicast, and manycast mode, and indirectly creates or modifies the NTP
associations. Unexpected changes could lead to disruption and/or network misbehavior. It could also lead to synchronization over an untrusted source over trusted ones.</dd>
      </dl>
      <t indent="0" pn="section-11-5">Some of the readable data nodes in this YANG module may be considered sensitive or vulnerable in some network environments. It is thus important to control read access (e.g., via get, get-config, or notification) to these data nodes. These are the subtrees and data nodes and their sensitivity/vulnerability:
      </t>
      <dl spacing="normal" indent="3" newline="false" pn="section-11-6">
        <dt pn="section-11-6.1">/ntp/authentication/authentication-keys:</dt>
        <dd pn="section-11-6.2">The entries in the list include all the NTP authentication keys. Unauthorized access to the keys can be easily exploited to permit unauthorized access to the NTP service. This information is sensitive; thus, unauthorized access to this needs to be curtailed. </dd>
        <dt pn="section-11-6.3">/ntp/associations/association/:</dt>
        <dd pn="section-11-6.4">The entries in the list include all active NTP associations of all modes. Exposure of these nodes
could reveal network topology or trust relationships. Unauthorized access to this also needs to be curtailed. </dd>
        <dt pn="section-11-6.5">/ntp/authentication and /ntp/access-rules:</dt>
        <dd pn="section-11-6.6">The entries in the list include the authentication and access control configurations. Exposure of these nodes
could reveal network topology or trust relationships.</dd>
      </dl>
      <t indent="0" pn="section-11-7">Some of the RPC operations in this YANG module may be considered sensitive or vulnerable in some network environments. It is thus important to control access to these operations. These are the operations and their sensitivity/vulnerability:
      </t>
      <dl spacing="normal" indent="3" newline="false" pn="section-11-8">
        <dt pn="section-11-8.1">statistics-reset:</dt>
        <dd pn="section-11-8.2">The RPC is used to reset statistics. Unauthorized reset could impact monitoring.</dd>
      </dl>
      <t indent="0" pn="section-11-9">The leaf /ntp/authentication/authentication-keys/algorithm can be set to cryptographic algorithms that are no longer considered to be secure. As per <xref target="RFC8573" format="default" sectionFormat="of" derivedContent="RFC8573"/>, AES-CMAC is the recommended algorithm. </t>
    </section>
  </middle>
  <back>
    <references pn="section-12">
      <name slugifiedName="name-references">References</name>
      <references pn="section-12.1">
        <name slugifiedName="name-normative-references">Normative References</name>
        <reference anchor="RFC2119" target="https://www.rfc-editor.org/info/rfc2119" quoteTitle="true" derivedAnchor="RFC2119">
          <front>
            <title>Key words for use in RFCs to Indicate Requirement Levels</title>
            <author initials="S." surname="Bradner" fullname="S. Bradner">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="1997" month="March"/>
            <abstract>
              <t indent="0">In many standards track documents several words are used to signify the requirements in the specification.  These words are often capitalized. This document defines these words as they should be interpreted in IETF documents.  This document specifies an Internet Best Current Practices for the Internet Community, and requests discussion and suggestions for improvements.</t>
            </abstract>
          </front>
          <seriesInfo name="BCP" value="14"/>
          <seriesInfo name="RFC" value="2119"/>
          <seriesInfo name="DOI" value="10.17487/RFC2119"/>
        </reference>
        <reference anchor="RFC3688" target="https://www.rfc-editor.org/info/rfc3688" quoteTitle="true" derivedAnchor="RFC3688">
          <front>
            <title>The IETF XML Registry</title>
            <author initials="M." surname="Mealling" fullname="M. Mealling">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2004" month="January"/>
            <abstract>
              <t indent="0">This document describes an IANA maintained registry for IETF standards which use Extensible Markup Language (XML) related items such as Namespaces, Document Type Declarations (DTDs), Schemas, and Resource Description Framework (RDF) Schemas.</t>
            </abstract>
          </front>
          <seriesInfo name="BCP" value="81"/>
          <seriesInfo name="RFC" value="3688"/>
          <seriesInfo name="DOI" value="10.17487/RFC3688"/>
        </reference>
        <reference anchor="RFC5905" target="https://www.rfc-editor.org/info/rfc5905" quoteTitle="true" derivedAnchor="RFC5905">
          <front>
            <title>Network Time Protocol Version 4: Protocol and Algorithms Specification</title>
            <author initials="D." surname="Mills" fullname="D. Mills">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="J." surname="Martin" fullname="J. Martin" role="editor">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="J." surname="Burbank" fullname="J. Burbank">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="W." surname="Kasch" fullname="W. Kasch">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2010" month="June"/>
            <abstract>
              <t indent="0">The Network Time Protocol (NTP) is widely used to synchronize computer clocks in the Internet.  This document describes NTP version 4 (NTPv4), which is backwards compatible with NTP version 3 (NTPv3), described in RFC 1305, as well as previous versions of the protocol. NTPv4 includes a modified protocol header to accommodate the Internet Protocol version 6 address family.  NTPv4 includes fundamental improvements in the mitigation and discipline algorithms that extend the potential accuracy to the tens of microseconds with modern workstations and fast LANs.  It includes a dynamic server discovery scheme, so that in many cases, specific server configuration is not required.  It corrects certain errors in the NTPv3 design and implementation and includes an optional extension mechanism.   [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="5905"/>
          <seriesInfo name="DOI" value="10.17487/RFC5905"/>
        </reference>
        <reference anchor="RFC6020" target="https://www.rfc-editor.org/info/rfc6020" quoteTitle="true" derivedAnchor="RFC6020">
          <front>
            <title>YANG - A Data Modeling Language for the Network Configuration Protocol (NETCONF)</title>
            <author initials="M." surname="Bjorklund" fullname="M. Bjorklund" role="editor">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2010" month="October"/>
            <abstract>
              <t indent="0">YANG is a data modeling language used to model configuration and state data manipulated by the Network Configuration Protocol (NETCONF), NETCONF remote procedure calls, and NETCONF notifications. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="6020"/>
          <seriesInfo name="DOI" value="10.17487/RFC6020"/>
        </reference>
        <reference anchor="RFC6241" target="https://www.rfc-editor.org/info/rfc6241" quoteTitle="true" derivedAnchor="RFC6241">
          <front>
            <title>Network Configuration Protocol (NETCONF)</title>
            <author initials="R." surname="Enns" fullname="R. Enns" role="editor">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="M." surname="Bjorklund" fullname="M. Bjorklund" role="editor">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="J." surname="Schoenwaelder" fullname="J. Schoenwaelder" role="editor">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="A." surname="Bierman" fullname="A. Bierman" role="editor">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2011" month="June"/>
            <abstract>
              <t indent="0">The Network Configuration Protocol (NETCONF) defined in this document provides mechanisms to install, manipulate, and delete the configuration of network devices.  It uses an Extensible Markup Language (XML)-based data encoding for the configuration data as well as the protocol messages.  The NETCONF protocol operations are realized as remote procedure calls (RPCs).  This document obsoletes RFC 4741.  [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="6241"/>
          <seriesInfo name="DOI" value="10.17487/RFC6241"/>
        </reference>
        <reference anchor="RFC6242" target="https://www.rfc-editor.org/info/rfc6242" quoteTitle="true" derivedAnchor="RFC6242">
          <front>
            <title>Using the NETCONF Protocol over Secure Shell (SSH)</title>
            <author initials="M." surname="Wasserman" fullname="M. Wasserman">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2011" month="June"/>
            <abstract>
              <t indent="0">This document describes a method for invoking and running the Network Configuration Protocol (NETCONF) within a Secure Shell (SSH) session as an SSH subsystem.  This document obsoletes RFC 4742.  [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="6242"/>
          <seriesInfo name="DOI" value="10.17487/RFC6242"/>
        </reference>
        <reference anchor="RFC6991" target="https://www.rfc-editor.org/info/rfc6991" quoteTitle="true" derivedAnchor="RFC6991">
          <front>
            <title>Common YANG Data Types</title>
            <author initials="J." surname="Schoenwaelder" fullname="J. Schoenwaelder" role="editor">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2013" month="July"/>
            <abstract>
              <t indent="0">This document introduces a collection of common data types to be used with the YANG data modeling language.  This document obsoletes RFC 6021.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="6991"/>
          <seriesInfo name="DOI" value="10.17487/RFC6991"/>
        </reference>
        <reference anchor="RFC7317" target="https://www.rfc-editor.org/info/rfc7317" quoteTitle="true" derivedAnchor="RFC7317">
          <front>
            <title>A YANG Data Model for System Management</title>
            <author initials="A." surname="Bierman" fullname="A. Bierman">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="M." surname="Bjorklund" fullname="M. Bjorklund">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2014" month="August"/>
            <abstract>
              <t indent="0">This document defines a YANG data model for the configuration and identification of some common system properties within a device containing a Network Configuration Protocol (NETCONF) server.  This document also includes data node definitions for system identification, time-of-day management, user management, DNS resolver configuration, and some protocol operations for system management.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="7317"/>
          <seriesInfo name="DOI" value="10.17487/RFC7317"/>
        </reference>
        <reference anchor="RFC7950" target="https://www.rfc-editor.org/info/rfc7950" quoteTitle="true" derivedAnchor="RFC7950">
          <front>
            <title>The YANG 1.1 Data Modeling Language</title>
            <author initials="M." surname="Bjorklund" fullname="M. Bjorklund" role="editor">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2016" month="August"/>
            <abstract>
              <t indent="0">YANG is a data modeling language used to model configuration data, state data, Remote Procedure Calls, and notifications for network management protocols.  This document describes the syntax and semantics of version 1.1 of the YANG language.  YANG version 1.1 is a maintenance release of the YANG language, addressing ambiguities and defects in the original specification.  There are a small number of backward incompatibilities from YANG version 1.  This document also specifies the YANG mappings to the Network Configuration Protocol (NETCONF).</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="7950"/>
          <seriesInfo name="DOI" value="10.17487/RFC7950"/>
        </reference>
        <reference anchor="RFC8040" target="https://www.rfc-editor.org/info/rfc8040" quoteTitle="true" derivedAnchor="RFC8040">
          <front>
            <title>RESTCONF Protocol</title>
            <author initials="A." surname="Bierman" fullname="A. Bierman">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="M." surname="Bjorklund" fullname="M. Bjorklund">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="K." surname="Watsen" fullname="K. Watsen">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2017" month="January"/>
            <abstract>
              <t indent="0">This document describes an HTTP-based protocol that provides a programmatic interface for accessing data defined in YANG, using the datastore concepts defined in the Network Configuration Protocol (NETCONF).</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8040"/>
          <seriesInfo name="DOI" value="10.17487/RFC8040"/>
        </reference>
        <reference anchor="RFC8174" target="https://www.rfc-editor.org/info/rfc8174" quoteTitle="true" derivedAnchor="RFC8174">
          <front>
            <title>Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words</title>
            <author initials="B." surname="Leiba" fullname="B. Leiba">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2017" month="May"/>
            <abstract>
              <t indent="0">RFC 2119 specifies common key words that may be used in protocol  specifications.  This document aims to reduce the ambiguity by clarifying that only UPPERCASE usage of the key words have the  defined special meanings.</t>
            </abstract>
          </front>
          <seriesInfo name="BCP" value="14"/>
          <seriesInfo name="RFC" value="8174"/>
          <seriesInfo name="DOI" value="10.17487/RFC8174"/>
        </reference>
        <reference anchor="RFC8294" target="https://www.rfc-editor.org/info/rfc8294" quoteTitle="true" derivedAnchor="RFC8294">
          <front>
            <title>Common YANG Data Types for the Routing Area</title>
            <author initials="X." surname="Liu" fullname="X. Liu">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="Y." surname="Qu" fullname="Y. Qu">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="A." surname="Lindem" fullname="A. Lindem">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="C." surname="Hopps" fullname="C. Hopps">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="L." surname="Berger" fullname="L. Berger">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2017" month="December"/>
            <abstract>
              <t indent="0">This document defines a collection of common data types using the YANG data modeling language.  These derived common types are designed to be imported by other modules defined in the routing area.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8294"/>
          <seriesInfo name="DOI" value="10.17487/RFC8294"/>
        </reference>
        <reference anchor="RFC8340" target="https://www.rfc-editor.org/info/rfc8340" quoteTitle="true" derivedAnchor="RFC8340">
          <front>
            <title>YANG Tree Diagrams</title>
            <author initials="M." surname="Bjorklund" fullname="M. Bjorklund">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="L." surname="Berger" fullname="L. Berger" role="editor">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2018" month="March"/>
            <abstract>
              <t indent="0">This document captures the current syntax used in YANG module tree diagrams.  The purpose of this document is to provide a single location for this definition.  This syntax may be updated from time to time based on the evolution of the YANG language.</t>
            </abstract>
          </front>
          <seriesInfo name="BCP" value="215"/>
          <seriesInfo name="RFC" value="8340"/>
          <seriesInfo name="DOI" value="10.17487/RFC8340"/>
        </reference>
        <reference anchor="RFC8341" target="https://www.rfc-editor.org/info/rfc8341" quoteTitle="true" derivedAnchor="RFC8341">
          <front>
            <title>Network Configuration Access Control Model</title>
            <author initials="A." surname="Bierman" fullname="A. Bierman">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="M." surname="Bjorklund" fullname="M. Bjorklund">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2018" month="March"/>
            <abstract>
              <t indent="0">The standardization of network configuration interfaces for use with the Network Configuration Protocol (NETCONF) or the RESTCONF protocol requires a structured and secure operating environment that promotes human usability and multi-vendor interoperability.  There is a need for standard mechanisms to restrict NETCONF or RESTCONF protocol access for particular users to a preconfigured subset of all available NETCONF or RESTCONF protocol operations and content.  This document defines such an access control model.</t>
              <t indent="0">This document obsoletes RFC 6536.</t>
            </abstract>
          </front>
          <seriesInfo name="STD" value="91"/>
          <seriesInfo name="RFC" value="8341"/>
          <seriesInfo name="DOI" value="10.17487/RFC8341"/>
        </reference>
        <reference anchor="RFC8343" target="https://www.rfc-editor.org/info/rfc8343" quoteTitle="true" derivedAnchor="RFC8343">
          <front>
            <title>A YANG Data Model for Interface Management</title>
            <author initials="M." surname="Bjorklund" fullname="M. Bjorklund">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2018" month="March"/>
            <abstract>
              <t indent="0">This document defines a YANG data model for the management of network interfaces.  It is expected that interface-type-specific data models augment the generic interfaces data model defined in this document. The data model includes definitions for configuration and system state (status information and counters for the collection of statistics).</t>
              <t indent="0">The YANG data model in this document conforms to the Network Management Datastore Architecture (NMDA) defined in RFC 8342.</t>
              <t indent="0">This document obsoletes RFC 7223.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8343"/>
          <seriesInfo name="DOI" value="10.17487/RFC8343"/>
        </reference>
        <reference anchor="RFC8446" target="https://www.rfc-editor.org/info/rfc8446" quoteTitle="true" derivedAnchor="RFC8446">
          <front>
            <title>The Transport Layer Security (TLS) Protocol Version 1.3</title>
            <author initials="E." surname="Rescorla" fullname="E. Rescorla">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2018" month="August"/>
            <abstract>
              <t indent="0">This document specifies version 1.3 of the Transport Layer Security (TLS) protocol.  TLS allows client/server applications to communicate over the Internet in a way that is designed to prevent eavesdropping, tampering, and message forgery.</t>
              <t indent="0">This document updates RFCs 5705 and 6066, and obsoletes RFCs 5077, 5246, and 6961.  This document also specifies new requirements for TLS 1.2 implementations.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8446"/>
          <seriesInfo name="DOI" value="10.17487/RFC8446"/>
        </reference>
        <reference anchor="RFC8519" target="https://www.rfc-editor.org/info/rfc8519" quoteTitle="true" derivedAnchor="RFC8519">
          <front>
            <title>YANG Data Model for Network Access Control Lists (ACLs)</title>
            <author initials="M." surname="Jethanandani" fullname="M. Jethanandani">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="S." surname="Agarwal" fullname="S. Agarwal">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="L." surname="Huang" fullname="L. Huang">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="D." surname="Blair" fullname="D. Blair">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2019" month="March"/>
            <abstract>
              <t indent="0">This document defines a data model for Access Control Lists (ACLs). An ACL is a user-ordered set of rules used to configure the forwarding behavior in a device.  Each rule is used to find a match on a packet and define actions that will be performed on the packet.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8519"/>
          <seriesInfo name="DOI" value="10.17487/RFC8519"/>
        </reference>
        <reference anchor="RFC8573" target="https://www.rfc-editor.org/info/rfc8573" quoteTitle="true" derivedAnchor="RFC8573">
          <front>
            <title>Message Authentication Code for the Network Time Protocol</title>
            <author initials="A." surname="Malhotra" fullname="A. Malhotra">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="S." surname="Goldberg" fullname="S. Goldberg">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2019" month="June"/>
            <abstract>
              <t indent="0">The Network Time Protocol (NTP), as described in RFC 5905, states that NTP packets should be authenticated by appending NTP data to a 128-bit key and hashing the result with MD5 to obtain a 128-bit tag. This document deprecates MD5-based authentication, which is considered too weak, and recommends the use of AES-CMAC as described in RFC 4493 as a replacement.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8573"/>
          <seriesInfo name="DOI" value="10.17487/RFC8573"/>
        </reference>
      </references>
      <references pn="section-12.2">
        <name slugifiedName="name-informative-references">Informative References</name>
        <reference anchor="RFC1305" target="https://www.rfc-editor.org/info/rfc1305" quoteTitle="true" derivedAnchor="RFC1305">
          <front>
            <title>Network Time Protocol (Version 3) Specification, Implementation and Analysis</title>
            <author initials="D." surname="Mills" fullname="D. Mills">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="1992" month="March"/>
            <abstract>
              <t indent="0">This document describes the Network Time Protocol (NTP), specifies its formal structure and summarizes information useful for its implementation.  [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="1305"/>
          <seriesInfo name="DOI" value="10.17487/RFC1305"/>
        </reference>
        <reference anchor="RFC1321" target="https://www.rfc-editor.org/info/rfc1321" quoteTitle="true" derivedAnchor="RFC1321">
          <front>
            <title>The MD5 Message-Digest Algorithm</title>
            <author initials="R." surname="Rivest" fullname="R. Rivest">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="1992" month="April"/>
            <abstract>
              <t indent="0">This document describes the MD5 message-digest algorithm. The algorithm takes as input a message of arbitrary length and produces as output a 128-bit "fingerprint" or "message digest" of the input.  This memo provides information for the Internet community.  It does not specify an Internet standard.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="1321"/>
          <seriesInfo name="DOI" value="10.17487/RFC1321"/>
        </reference>
        <reference anchor="RFC3174" target="https://www.rfc-editor.org/info/rfc3174" quoteTitle="true" derivedAnchor="RFC3174">
          <front>
            <title>US Secure Hash Algorithm 1 (SHA1)</title>
            <author initials="D." surname="Eastlake 3rd" fullname="D. Eastlake 3rd">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="P." surname="Jones" fullname="P. Jones">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2001" month="September"/>
            <abstract>
              <t indent="0">The purpose of this document is to make the SHA-1 (Secure Hash Algorithm 1) hash algorithm conveniently available to the Internet community. This memo provides information for the Internet community.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="3174"/>
          <seriesInfo name="DOI" value="10.17487/RFC3174"/>
        </reference>
        <reference anchor="RFC4493" target="https://www.rfc-editor.org/info/rfc4493" quoteTitle="true" derivedAnchor="RFC4493">
          <front>
            <title>The AES-CMAC Algorithm</title>
            <author initials="JH." surname="Song" fullname="JH. Song">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="R." surname="Poovendran" fullname="R. Poovendran">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="J." surname="Lee" fullname="J. Lee">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="T." surname="Iwata" fullname="T. Iwata">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2006" month="June"/>
            <abstract>
              <t indent="0">The National Institute of Standards and Technology (NIST) has recently specified the Cipher-based Message Authentication Code (CMAC), which is equivalent to the One-Key CBC MAC1 (OMAC1) submitted by Iwata and Kurosawa.  This memo specifies an authentication algorithm based on CMAC with the 128-bit Advanced Encryption Standard (AES). This new authentication algorithm is named AES-CMAC. The purpose of this document is to make the AES-CMAC algorithm conveniently available to the Internet Community.  This memo provides information for the Internet community.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="4493"/>
          <seriesInfo name="DOI" value="10.17487/RFC4493"/>
        </reference>
        <reference anchor="RFC5907" target="https://www.rfc-editor.org/info/rfc5907" quoteTitle="true" derivedAnchor="RFC5907">
          <front>
            <title>Definitions of Managed Objects for Network Time Protocol Version 4 (NTPv4)</title>
            <author initials="H." surname="Gerstung" fullname="H. Gerstung">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="C." surname="Elliott" fullname="C. Elliott">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="B." surname="Haberman" fullname="B. Haberman" role="editor">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2010" month="June"/>
            <abstract>
              <t indent="0">The Network Time Protocol (NTP) is used in networks of all types and sizes for time synchronization of servers, workstations, and other networked equipment.  As time synchronization is more and more a mission-critical service, standardized means for monitoring and management of this subsystem of a networked host are required to allow operators of such a service to set up a monitoring system that is platform- and vendor-independent.  This document provides a standardized collection of data objects for monitoring the NTP entity of such a network participant and it is part of the NTP version 4 standardization effort.  [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="5907"/>
          <seriesInfo name="DOI" value="10.17487/RFC5907"/>
        </reference>
        <reference anchor="RFC8342" target="https://www.rfc-editor.org/info/rfc8342" quoteTitle="true" derivedAnchor="RFC8342">
          <front>
            <title>Network Management Datastore Architecture (NMDA)</title>
            <author initials="M." surname="Bjorklund" fullname="M. Bjorklund">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="J." surname="Schoenwaelder" fullname="J. Schoenwaelder">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="P." surname="Shafer" fullname="P. Shafer">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="K." surname="Watsen" fullname="K. Watsen">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="R." surname="Wilton" fullname="R. Wilton">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2018" month="March"/>
            <abstract>
              <t indent="0">Datastores are a fundamental concept binding the data models written in the YANG data modeling language to network management protocols such as the Network Configuration Protocol (NETCONF) and RESTCONF. This document defines an architectural framework for datastores based on the experience gained with the initial simpler model, addressing requirements that were not well supported in the initial model.  This document updates RFC 7950.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8342"/>
          <seriesInfo name="DOI" value="10.17487/RFC8342"/>
        </reference>
        <reference anchor="RFC8792" target="https://www.rfc-editor.org/info/rfc8792" quoteTitle="true" derivedAnchor="RFC8792">
          <front>
            <title>Handling Long Lines in Content of Internet-Drafts and RFCs</title>
            <author initials="K." surname="Watsen" fullname="K. Watsen">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="E." surname="Auerswald" fullname="E. Auerswald">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="A." surname="Farrel" fullname="A. Farrel">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="Q." surname="Wu" fullname="Q. Wu">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2020" month="June"/>
            <abstract>
              <t indent="0">This document defines two strategies for handling long lines in width-bounded text content.  One strategy, called the "single backslash" strategy, is based on the historical use of a single backslash ('\') character to indicate where line-folding has occurred, with the continuation occurring with the first character that is not a space character (' ') on the next line.  The second strategy, called the "double backslash" strategy, extends the first strategy by adding a second backslash character to identify where the continuation begins and is thereby able to handle cases not supported by the first strategy.  Both strategies use a self-describing header enabling automated reconstitution of the original content.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8792"/>
          <seriesInfo name="DOI" value="10.17487/RFC8792"/>
        </reference>
        <reference anchor="SHS" target="https://doi.org/10.6028/NIST.FIPS.180-4" quoteTitle="true" derivedAnchor="SHS">
          <front>
            <title>Secure Hash Standard (SHS)</title>
            <author initials="" surname="" fullname="">
              <organization showOnFrontPage="true">National Institute of Standards and Technology (NIST)</organization>
            </author>
            <date month="August" year="2015"/>
          </front>
          <seriesInfo name="DOI" value="10.6028/NIST.FIPS.180-4"/>
          <seriesInfo name="FIPS PUB" value="180-4"/>
        </reference>
      </references>
    </references>
    <section anchor="full" numbered="true" toc="include" removeInRFC="false" pn="section-appendix.a">
      <name slugifiedName="name-full-yang-tree">Full YANG Tree</name>
      <t indent="0" pn="section-appendix.a-1">The full tree for the ietf-ntp YANG data model is as follows. </t>
      <sourcecode type="yangtree" markers="false" pn="section-appendix.a-2">
module: ietf-ntp
  +--rw ntp!
     +--rw port?                    inet:port-number {ntp-port}?
     +--rw refclock-master!
     |  +--rw master-stratum?   ntp-stratum
     +--rw authentication {authentication}?
     |  +--rw auth-enabled?          boolean
     |  +--rw authentication-keys* [keyid]
     |     +--rw keyid       uint32
     |     +--rw algorithm?   identityref
     |     +--rw key
     |     |  +--rw (key-string-style)?
     |     |     +--:(keystring)
     |     |     |  +--rw keystring?            string {deprecated}?
     |     |     +--:(hexadecimal) {hex-key-string}?
     |     |        +--rw hexadecimal-string?   yang:hex-string
     |     +--rw istrusted?   boolean
     +--rw access-rules {access-rules}?
     |  +--rw access-rule* [access-mode]
     |     +--rw access-mode    identityref
     |     +--rw acl?           -&gt; /acl:acls/acl/name
     +--ro clock-state
     |  +--ro system-status
     |     +--ro clock-state                  identityref
     |     +--ro clock-stratum                ntp-stratum
     |     +--ro clock-refid                  refid
     |     +--ro associations-address?
     |     |       -&gt; /ntp/associations/association/address
     |     +--ro associations-local-mode?
     |     |       -&gt; /ntp/associations/association/local-mode
     |     +--ro associations-isconfigured?
     |     |       -&gt; /ntp/associations/association/isconfigured
     |     +--ro nominal-freq                 decimal64
     |     +--ro actual-freq                  decimal64
     |     +--ro clock-precision              log2seconds
     |     +--ro clock-offset?                decimal64
     |     +--ro root-delay?                  decimal64
     |     +--ro root-dispersion?             decimal64
     |     +--ro reference-time?              ntp-date-and-time
     |     +--ro sync-state                   identityref
     +--rw unicast-configuration* [address type]
     |       {unicast-configuration}?
     |  +--rw address           inet:ip-address
     |  +--rw type              identityref
     |  +--rw authentication {authentication}?
     |  |  +--rw (authentication-type)?
     |  |     +--:(symmetric-key)
     |  |        +--rw keyid?   leafref
     |  +--rw prefer?           boolean
     |  +--rw burst?            boolean
     |  +--rw iburst?           boolean
     |  +--rw source?           if:interface-ref
     |  +--rw minpoll?          log2seconds
     |  +--rw maxpoll?          log2seconds
     |  +--rw port?             inet:port-number {ntp-port}?
     |  +--rw version?          ntp-version
     +--rw associations
     |  +--ro association* [address local-mode isconfigured]
     |     +--ro address           inet:ip-address
     |     +--ro local-mode        identityref
     |     +--ro isconfigured      boolean
     |     +--ro stratum?          ntp-stratum
     |     +--ro refid?            refid
     |     +--ro authentication?
     |     |       -&gt; /ntp/authentication/authentication-keys/keyid
     |     |       {authentication}?
     |     +--ro prefer?           boolean
     |     +--ro peer-interface?   if:interface-ref
     |     +--ro minpoll?          log2seconds
     |     +--ro maxpoll?          log2seconds
     |     +--ro port?             inet:port-number {ntp-port}?
     |     +--ro version?          ntp-version
     |     +--ro reach?            uint8
     |     +--ro unreach?          uint8
     |     +--ro poll?             log2seconds
     |     +--ro now?              uint32
     |     +--ro offset?           decimal64
     |     +--ro delay?            decimal64
     |     +--ro dispersion?       decimal64
     |     +--ro originate-time?   ntp-date-and-time
     |     +--ro receive-time?     ntp-date-and-time
     |     +--ro transmit-time?    ntp-date-and-time
     |     +--ro input-time?       ntp-date-and-time
     |     +--ro ntp-statistics
     |        +--ro discontinuity-time?   ntp-date-and-time
     |        +--ro packet-sent?          yang:counter32
     |        +--ro packet-sent-fail?     yang:counter32
     |        +--ro packet-received?      yang:counter32
     |        +--ro packet-dropped?       yang:counter32
     +--rw interfaces
     |  +--rw interface* [name]
     |     +--rw name                if:interface-ref
     |     +--rw broadcast-server! {broadcast-server}?
     |     |  +--rw ttl?              uint8
     |     |  +--rw authentication {authentication}?
     |     |  |  +--rw (authentication-type)?
     |     |  |     +--:(symmetric-key)
     |     |  |        +--rw keyid?   leafref
     |     |  +--rw minpoll?          log2seconds
     |     |  +--rw maxpoll?          log2seconds
     |     |  +--rw port?             inet:port-number {ntp-port}?
     |     |  +--rw version?          ntp-version
     |     +--rw broadcast-client! {broadcast-client}?
     |     +--rw multicast-server* [address] {multicast-server}?
     |     |  +--rw address
     |     |  |       rt-types:ip-multicast-group-address
     |     |  +--rw ttl?              uint8
     |     |  +--rw authentication {authentication}?
     |     |  |  +--rw (authentication-type)?
     |     |  |     +--:(symmetric-key)
     |     |  |        +--rw keyid?   leafref
     |     |  +--rw minpoll?          log2seconds
     |     |  +--rw maxpoll?          log2seconds
     |     |  +--rw port?             inet:port-number {ntp-port}?
     |     |  +--rw version?          ntp-version
     |     +--rw multicast-client* [address] {multicast-client}?
     |     |  +--rw address    rt-types:ip-multicast-group-address
     |     +--rw manycast-server* [address] {manycast-server}?
     |     |  +--rw address    rt-types:ip-multicast-group-address
     |     +--rw manycast-client* [address] {manycast-client}?
     |        +--rw address
     |        |       rt-types:ip-multicast-group-address
     |        +--rw authentication {authentication}?
     |        |  +--rw (authentication-type)?
     |        |     +--:(symmetric-key)
     |        |        +--rw keyid?   leafref
     |        +--rw ttl?              uint8
     |        +--rw minclock?         uint8
     |        +--rw maxclock?         uint8
     |        +--rw beacon?           log2seconds
     |        +--rw minpoll?          log2seconds
     |        +--rw maxpoll?          log2seconds
     |        +--rw port?             inet:port-number {ntp-port}?
     |        +--rw version?          ntp-version
     +--ro ntp-statistics
        +--ro discontinuity-time?   ntp-date-and-time
        +--ro packet-sent?          yang:counter32
        +--ro packet-sent-fail?     yang:counter32
        +--ro packet-received?      yang:counter32
        +--ro packet-dropped?       yang:counter32

  rpcs:
    +---x statistics-reset
       +---w input
          +---w (association-or-all)?
             +--:(association)
             |  +---w associations-address?
             |  |       -&gt; /ntp/associations/association/address
             |  +---w associations-local-mode?
             |  |       -&gt; /ntp/associations/association/local-mode
             |  +---w associations-isconfigured?
             |          -&gt; /ntp/associations/association/isconfigured
             +--:(all)
</sourcecode>
    </section>
    <section numbered="false" toc="include" removeInRFC="false" pn="section-appendix.b">
      <name slugifiedName="name-acknowledgments">Acknowledgments</name>
      <t indent="0" pn="section-appendix.b-1">The authors would like to express their thanks to <contact fullname="Sladjana Zoric"/>,
      <contact fullname="Danny Mayer"/>,  <contact fullname="Harlan Stenn"/>,  <contact fullname="Ulrich Windl"/>,  <contact fullname="Miroslav Lichvar"/>,  <contact fullname="Maurice Angermann"/>,  <contact fullname="Watson Ladd"/>, and  <contact fullname="Rich Salz"/> for their
      review and suggestions.</t>
      <t indent="0" pn="section-appendix.b-2">Thanks to  <contact fullname="Andy Bierman"/> for the YANG doctor review.</t>
      <t indent="0" pn="section-appendix.b-3">Thanks to  <contact fullname="Dieter Sibold"/> for being the Document Shepherd and  <contact fullname="Erik Kline"/> for being the Responsible AD.</t>
      <t indent="0" pn="section-appendix.b-4">Thanks to  <contact fullname="Takeshi Takahashi"/> for SECDIR review. Thanks to  <contact fullname="Tim Evens"/> for GENART review.</t>
      <t indent="0" pn="section-appendix.b-5">A special thanks to  <contact fullname="Tom Petch"/> for a very detailed YANG review and providing great suggestions for improvements.</t>
      <t indent="0" pn="section-appendix.b-6">Thanks for the IESG review from  <contact fullname="Benjamin Kaduk"/>,  <contact fullname="Francesca Palombini"/>,  <contact fullname="Eric Vyncke"/>,  <contact fullname="Murray Kucherawy"/>,  <contact fullname="Robert Wilton"/>,  <contact fullname="Roman Danyliw"/>, and  <contact fullname="Zaheduzzaman Sarker"/>.</t>
    </section>
    <section anchor="authors-addresses" numbered="false" removeInRFC="false" toc="include" pn="section-appendix.c">
      <name slugifiedName="name-authors-addresses">Authors' Addresses</name>
      <author fullname="Nan Wu" initials="N." surname="Wu">
        <organization showOnFrontPage="true">Huawei</organization>
        <address>
          <postal>
            <street>Huawei Bld., No.156 Beiqing Rd.</street>
            <city>Beijing</city>
            <code>100095</code>
            <country>China</country>
          </postal>
          <email>eric.wu@huawei.com</email>
        </address>
      </author>
      <author fullname="Dhruv Dhody" initials="D." surname="Dhody" role="editor">
        <organization showOnFrontPage="true">Huawei</organization>
        <address>
          <postal>
            <street>Divyashree Techno Park, Whitefield</street>
            <city>Bangalore</city>
            <region>Kanataka</region>
            <code>560066</code>
            <country>India</country>
          </postal>
          <email>dhruv.ietf@gmail.com</email>
        </address>
      </author>
      <author fullname="Ankit Kumar Sinha" initials="A." surname="Sinha" role="editor">
        <organization showOnFrontPage="true">RtBrick Inc.</organization>
        <address>
          <postal>
            <street/>
            <city>Bangalore</city>
            <region>Kanataka</region>
            <code/>
            <country>India</country>
          </postal>
          <email>ankit.ietf@gmail.com</email>
        </address>
      </author>
      <author fullname="Anil Kumar S N" initials="A." surname="Kumar S N">
        <organization showOnFrontPage="true">RtBrick Inc.</organization>
        <address>
          <postal>
            <street/>
            <city>Bangalore</city>
            <region>Kanataka</region>
            <code/>
            <country>India</country>
          </postal>
          <email>anil.ietf@gmail.com</email>
        </address>
      </author>
      <author fullname="Yi Zhao" initials="Y." surname="Zhao">
        <organization showOnFrontPage="true">Ericsson</organization>
        <address>
          <postal>
            <street>China Digital Kingdom Bld., No.1 WangJing North Rd.</street>
            <city>Beijing</city>
            <code>100102</code>
            <country>China</country>
          </postal>
          <email>yi.z.zhao@ericsson.com</email>
        </address>
      </author>
    </section>
  </back>
</rfc>
