---
title: ntp
slug: enterprise-v6p1/fIEr-ntp
createdAt: 2025-12-17T08:18:07.078Z
---

AsterNOS Model for NTP(Network Time Protocol)

# <font color="#1d50a2">YANG Tree Diagram</font>

```none
module: asternos-ntp
  +--rw ntp-global
  |  +--rw vrf?                string
  |  +--rw source-interface?   string
  +--rw ntp-servers
     +--rw ntp-server* [address]
        +--rw address    union

  rpcs:
    +---x show-ntp
       +--ro output
          +--ro data?   <anydata>
```

# <font color="#1d50a2">Resources</font>

## <font color="#1d50a2">Resource List</font>

| **Path**                        | **Access** |
| ------------------------------- | ---------- |
| /ntp-global                     | Read-Write |
| /ntp-global/vrf                 | Read-Write |
| /ntp-global/source-interface    | Read-Write |
| /ntp-servers                    | Read-Write |
| /ntp-servers/ntp-server         | Read-Write |
| /ntp-servers/ntp-server/address | Read-Write |

## <font color="#1d50a2">Detailed Nodes</font>

### <font color="#1d50a2">/ntp-global</font>

**Path**

/ntp-global

**Node Type**

container

**Description**

Global configuration of ntp

**Access**

Read-Write

### <font color="#1d50a2">/ntp-global/vrf</font>

**Path**

/ntp-global/vrf

**Node Type**

leaf

**Description**

NTP can be enabled only in one VRF at a time. In this revision, it is either default VRF or Management VRF.

**Access**

Read-Write

**Data Type**

\<YANG type string>

### <font color="#1d50a2">/ntp-global/source-interface</font>

**Path**

/ntp-global/source-interface

**Node Type**

leaf

**Description**

This is the interface whose IP address is used as the source IP address for generating NTP traffic. User is required to make sure that the NTP server is reachable via this IP address and the same IP address is reachable from the NTP server. The source interface should be in the same VRF as the

VRF NTP is enabled in.

**Access**

Read-Write

**Data Type**

\<YANG type string>

### <font color="#1d50a2">/ntp-servers</font>

**Path**

/ntp-servers

**Node Type**

container

**Access**

Read-Write

### <font color="#1d50a2">/ntp-servers/ntp-server</font>

**Path**

/ntp-servers/ntp-server

**Node Type**

list

**Description**

List of address sets of the ntp server

**Access**

Read-Write

### <font color="#1d50a2">/ntp-servers/ntp-server/address</font>

**Path**

/ntp-servers/ntp-server/address

**Node Type**

leaf

**Description**

NTP server (IPv4, IPv6, or hostname)

**Access**

Read-Write

**Data Type**

\<YANG type union>

**Constraints**

Multiple constraints:

- An IPv6 address without a zone index. This type, derived from the type ipv6-address, may be used in situations where the zone is known from the context and no zone index is needed.
- An IPv4 address without a zone index. This type, derived from the type ipv4-address, may be used in situations where the zone is known from the context and no zone index is needed.

