跳转到内容
Ask AI

ptp

此内容尚不支持你的语言。

AsterNOS Model for ptp groups

module: asternos-ptp
+--rw ptp
+--rw global
| +--rw enabled? boolean
| +--rw log-level? af-ptp-types:log-level-enumeration
+--rw instances
+--rw instance* [instance-number]
+--rw instance-number uint32
+--rw default-ds
| +--rw clock-quality
| | +--rw clock-class? uint8
| | +--rw clock-accuracy? yang:hex-string
| +--rw two-step-flag? boolean
| +--rw clock-identity? af-ptp-types:clock-identity-type
| +--rw dscp? uint8
| +--rw priority? uint8
| +--rw priority1? uint8
| +--rw priority2? uint8
| +--ro domain-number? uint8
| +--rw instance-type? af-ptp-types:instance-type
| +--rw network-transport? af-ptp-types:network-transport-enumeration
| +--rw communication-mode? af-ptp-types:communication-mode-enumeration
| +--rw source-ip-address? inet:ip-address-no-zone
| +--rw profile? af-ptp-types:ptp-profile-enumeration
| +--rw delay-mechanism? af-ptp-types:delay-mechanism-enumeration
| +--rw minor-version? uint8
| +--ro local-time? uint64
| +--rw smpte
| +--rw sm-tlv-enable? boolean
| +--rw frame-rate-numerator? uint32
| +--rw frame-rate-denominator? uint32
| +--rw sm-tlv-drop-frame? boolean
| +--rw sm-tlv-color-frame? boolean
| +--ro grandmaster-lock-status? string
| +--ro time-address-flags? string
| +--ro current-local-offset? string
| +--ro jump-seconds? string
| +--ro time-of-next-jump? string
| +--ro time-of-next-jam? string
| +--ro time-of-previous-jam? string
| +--ro previous-jam-local-time-offset? string
| +--ro daylight-saving? string
| +--ro leap-seconds-jump? string
+--rw ports
| +--rw port* [port]
| +--rw port if:interface-ref
| +--rw port-ds
| +--rw log-announce-interval? int8
| +--rw announce-receipt-timeout? uint8
| +--rw log-sync-interval? int8
| +--rw log-min-delay-req-interval? int8
| +--rw log-min-pdelay-req-interval? int8
| +--rw asymmetry-correction? int32
| +--rw dscp? uint8
| +--rw port-state? af-ptp-types:port-state-enumeration
| +--rw port-enable? boolean
| +--ro port-number? uint16
| +--rw unicast-master-table* [address]
| | +--rw address inet:ip-address-no-zone
| +--rw source-ip-address? inet:ip-address-no-zone
| +--rw priority? uint8
+--ro current-ds
| +--ro steps-removed? uint16
| +--ro offset-from-master? af-ptp-types:time-interval-type
| +--ro mean-path-delay? af-ptp-types:time-interval-type
| +--ro servo-state? af-ptp-types:servo-state-enumeration
+--ro parent-ds
+--ro parent-port-identity? string
+--ro grandmaster-identity? af-ptp-types:clock-identity-type
+--ro grandmaster-clock-quality
| +--ro clock-class? uint8
| +--ro clock-accuracy? yang:hex-string
+--ro grandmaster-priority1? uint8
+--ro grandmaster-priority2? uint8
rpcs:
+---x ptp-reset
| +--ro output
| +--ro status? string
+---x show-ptp-clock
| +---w input
| | +---w instance-number? uint32
| +--ro output
| +--ro data? <anydata>
+---x show-ptp-clock-sm-tlv
| +---w input
| | +---w instance-number? uint32
| +--ro output
| +--ro data? <anydata>
+---x show-ptp-interface
| +---w input
| | +---w port? if:interface-ref
| +--ro output
| +--ro data? <anydata>
+---x show-ptp-counters
| +--ro output
| +--ro data? <anydata>
+---x show-ptp-counters-interface
| +---w input
| | +---w port? if:interface-ref
| +--ro output
| +--ro data? <anydata>
+---x show-ptp-counters-instance
+---w input
| +---w instance-number? uint32
+--ro output
+--ro data? <anydata>
PathAccess
/ptpRead-Write
/ptp/globalRead-Write
/ptp/global/enabledRead-Write
/ptp/global/log-levelRead-Write
/ptp/instancesRead-Write
/ptp/instances/instanceRead-Write
/ptp/instances/instance/instance-numberRead-Write
/ptp/instances/instance/default-dsRead-Write
/ptp/instances/instance/default-ds/clock-qualityRead-Write
/ptp/instances/instance/default-ds/clock-quality/clock-classRead-Write
/ptp/instances/instance/default-ds/clock-quality/clock-accuracyRead-Write
/ptp/instances/instance/default-ds/two-step-flagRead-Write
/ptp/instances/instance/default-ds/clock-identityRead-Write
/ptp/instances/instance/default-ds/dscpRead-Write
/ptp/instances/instance/default-ds/priorityRead-Write
/ptp/instances/instance/default-ds/priority1Read-Write
/ptp/instances/instance/default-ds/priority2Read-Write
/ptp/instances/instance/default-ds/domain-numberRead-Only
/ptp/instances/instance/default-ds/instance-typeRead-Write
/ptp/instances/instance/default-ds/network-transportRead-Write
/ptp/instances/instance/default-ds/communication-modeRead-Write
/ptp/instances/instance/default-ds/source-ip-addressRead-Write
/ptp/instances/instance/default-ds/profileRead-Write
/ptp/instances/instance/default-ds/delay-mechanismRead-Write
/ptp/instances/instance/default-ds/minor-versionRead-Write
/ptp/instances/instance/default-ds/local-timeRead-Only
/ptp/instances/instance/default-ds/smpteRead-Write
/ptp/instances/instance/default-ds/smpte/sm-tlv-enableRead-Write
/ptp/instances/instance/default-ds/smpte/frame-rate-numeratorRead-Write
/ptp/instances/instance/default-ds/smpte/frame-rate-denominatorRead-Write
/ptp/instances/instance/default-ds/smpte/sm-tlv-drop-frameRead-Write
/ptp/instances/instance/default-ds/smpte/sm-tlv-color-frameRead-Write
/ptp/instances/instance/default-ds/smpte/grandmaster-lock-statusRead-Only
/ptp/instances/instance/default-ds/smpte/time-address-flagsRead-Only
/ptp/instances/instance/default-ds/smpte/current-local-offsetRead-Only
/ptp/instances/instance/default-ds/smpte/jump-secondsRead-Only
/ptp/instances/instance/default-ds/smpte/time-of-next-jumpRead-Only
/ptp/instances/instance/default-ds/smpte/time-of-next-jamRead-Only
/ptp/instances/instance/default-ds/smpte/time-of-previous-jamRead-Only
/ptp/instances/instance/default-ds/smpte/previous-jam-local-time-offsetRead-Only
/ptp/instances/instance/default-ds/smpte/daylight-savingRead-Only
/ptp/instances/instance/default-ds/smpte/leap-seconds-jumpRead-Only
/ptp/instances/instance/portsRead-Write
/ptp/instances/instance/ports/portRead-Write
/ptp/instances/instance/ports/port/portRead-Write
/ptp/instances/instance/ports/port/port-dsRead-Write
/ptp/instances/instance/ports/port/port-ds/log-announce-intervalRead-Write
/ptp/instances/instance/ports/port/port-ds/announce-receipt-timeoutRead-Write
/ptp/instances/instance/ports/port/port-ds/log-sync-intervalRead-Write
/ptp/instances/instance/ports/port/port-ds/log-min-delay-req-intervalRead-Write
/ptp/instances/instance/ports/port/port-ds/log-min-pdelay-req-intervalRead-Write
/ptp/instances/instance/ports/port/port-ds/asymmetry-correctionRead-Write
/ptp/instances/instance/ports/port/port-ds/dscpRead-Write
/ptp/instances/instance/ports/port/port-ds/port-stateRead-Write
/ptp/instances/instance/ports/port/port-ds/port-enableRead-Write
/ptp/instances/instance/ports/port/port-ds/port-numberRead-Only
/ptp/instances/instance/ports/port/port-ds/unicast-master-tableRead-Write
/ptp/instances/instance/ports/port/port-ds/unicast-master-table/addressRead-Write
/ptp/instances/instance/ports/port/port-ds/source-ip-addressRead-Write
/ptp/instances/instance/ports/port/port-ds/priorityRead-Write
/ptp/instances/instance/current-dsRead-Only
/ptp/instances/instance/current-ds/steps-removedRead-Only
/ptp/instances/instance/current-ds/offset-from-masterRead-Only
/ptp/instances/instance/current-ds/mean-path-delayRead-Only
/ptp/instances/instance/current-ds/servo-stateRead-Only
/ptp/instances/instance/parent-dsRead-Only
/ptp/instances/instance/parent-ds/parent-port-identityRead-Only
/ptp/instances/instance/parent-ds/grandmaster-identityRead-Only
/ptp/instances/instance/parent-ds/grandmaster-clock-qualityRead-Only
/ptp/instances/instance/parent-ds/grandmaster-clock-quality/clock-classRead-Only
/ptp/instances/instance/parent-ds/grandmaster-clock-quality/clock-accuracyRead-Only
/ptp/instances/instance/parent-ds/grandmaster-priority1Read-Only
/ptp/instances/instance/parent-ds/grandmaster-priority2Read-Only

Path

/ptp

Node Type

container

Description

The PTP struct containing all attributes of PTP data set, other optional PTP attributes can be augmented as well.

Access

Read-Write

Path

/ptp/global

Node Type

container

Access

Read-Write

Path

/ptp/global/enabled

Node Type

leaf

Description

PTP status, true means PTP is enabled, false means PTP is disabled

Access

Read-Write

Data Type

<YANG type boolean>

Constraints

Valid in [true, false]

Path

/ptp/global/log-level

Node Type

leaf

Description

The log level of the ptp4l level, default is info.

Access

Read-Write

Data Type

<YANG type log-level-enumeration>

Constraints

Enumeration with options:

debug

info

notice

warning

error

Path

/ptp/instances

Node Type

container

Description

YANG container that is used to get all PTP Instances. YANG does not allow get of all elements in a YANG list, so a YANG container wrapping the YANG list is provided for that purpose. The naming convention uses plural for the wrapping YANG container, and singular for the YANG list.

Access

Read-Write

Path

/ptp/instances/instance

Node Type

list

Description

List of one or more PTP data sets in the device Each PTP data set represents a distinct instance of PTP implementation in the device (i.e., distinct Ordinary Clock or Boundary Clock).

Access

Read-Write

Path

/ptp/instances/instance/instance-number

Node Type

leaf

Description

The instance number of the current PTP instance. This instance number is used for management purposes only. This instance number does not represent the PTP domain number and is not used in PTP messages.

Access

Read-Write

Data Type

<YANG type uint32>

Mandatory

Yes

Path

/ptp/instances/instance/default-ds

Node Type

container

Description

The default data set of the PTP Instance.

Access

Read-Write

/ptp/instances/instance/default-ds/clock-quality

Section titled “/ptp/instances/instance/default-ds/clock-quality”

Path

/ptp/instances/instance/default-ds/clock-quality

Node Type

container

Description

The IEEE Std 1588 clockQuality of the PTP Instance. PTP Instances with better quality are more likely to become the Grandmaster PTP Instance.

Access

Read-Write

/ptp/instances/instance/default-ds/clock-quality/clock-class

Section titled “/ptp/instances/instance/default-ds/clock-quality/clock-class”

Path

/ptp/instances/instance/default-ds/clock-quality/clock-class

Node Type

leaf

Description

The clockClass denotes the traceability of the time or frequency distributed by the clock.

Access

Read-Write

Data Type

<YANG type uint8>

/ptp/instances/instance/default-ds/clock-quality/clock-accuracy

Section titled “/ptp/instances/instance/default-ds/clock-quality/clock-accuracy”

Path

/ptp/instances/instance/default-ds/clock-quality/clock-accuracy

Node Type

leaf

Description

The clockAccuracy indicates the expected accuracy of the clock, range 0 to 0xFE.

Access

Read-Write

Data Type

<YANG type hex-string>

Constraints

A hexadecimal string with octets represented as hex digits separated by colons. The canonical representation uses lowercase characters.

/ptp/instances/instance/default-ds/two-step-flag

Section titled “/ptp/instances/instance/default-ds/two-step-flag”

Path

/ptp/instances/instance/default-ds/two-step-flag

Node Type

leaf

Description

When set to true, the PTP Instance is two-step, otherwise the PTP Instance is one-step.

Access

Read-Write

Data Type

<YANG type boolean>

Constraints

Valid in [true, false]

/ptp/instances/instance/default-ds/clock-identity

Section titled “/ptp/instances/instance/default-ds/clock-identity”

Path

/ptp/instances/instance/default-ds/clock-identity

Node Type

leaf

Description

The clockIdentity of the local clock.

Access

Read-Write

Data Type

<YANG type clock-identity-type>

Constraints

Derived data type to identify a clock, format: [0-9a-fA-F]{6}.[0-9a-fA-F]{4}.[0-9a-fA-F]{6} should be like: xxxxxx.xxxx.xxxxxx

Path

/ptp/instances/instance/default-ds/dscp

Node Type

leaf

Description

DSCP of ptp packets in this instance.

Access

Read-Write

Data Type

<YANG type uint8>

Constraints

Valid range: 0 to 63

/ptp/instances/instance/default-ds/priority

Section titled “/ptp/instances/instance/default-ds/priority”

Path

/ptp/instances/instance/default-ds/priority

Node Type

leaf

Description

The priority of the PTP Instance. Since priority is one of the comparisons performed by the Alternative Best Master Clock Algorithm (ABMCA), this leaf’s configuration can be used to explicitly select a Grandmaster PTP Instance. Lower values take precedence. The value of priority shall be configurable to any value in the range 1 to 255, unless restricted by limits established by the applicable PTP Profile.

Access

Read-Write

Data Type

<YANG type uint8>

Constraints

Valid range: 1 to 255

/ptp/instances/instance/default-ds/priority1

Section titled “/ptp/instances/instance/default-ds/priority1”

Path

/ptp/instances/instance/default-ds/priority1

Node Type

leaf

Description

The IEEE Std 1588 priority1 of the PTP Instance. Since priority1 is one of the first comparisons performed by the Best Master Clock Algorithm (BMCA), this leaf’s configuration can be used to explicitly select a Grandmaster PTP Instance. Lower values take precedence. The value of priority1 shall be configurable to any value in the range 0 to 255, unless restricted by limits established by the applicable PTP Profile.

Access

Read-Write

Data Type

<YANG type uint8>

/ptp/instances/instance/default-ds/priority2

Section titled “/ptp/instances/instance/default-ds/priority2”

Path

/ptp/instances/instance/default-ds/priority2

Node Type

leaf

Description

The IEEE Std 1588 priority2 of the PTP Instance. The priority2 member is compared by the Best Master Clock Algorithm (BMCA) after priority1 and clockQuality. Lower values take precedence. The value of priority2 shall be configurable to any value in the range 0 to 255, unless restricted by limits established by the applicable PTP Profile.

Access

Read-Write

Data Type

<YANG type uint8>

/ptp/instances/instance/default-ds/domain-number

Section titled “/ptp/instances/instance/default-ds/domain-number”

Path

/ptp/instances/instance/default-ds/domain-number

Node Type

leaf

Description

The IEEE Std 1588 domainNumber of the PTP Instance. A domain consists of one or more PTP Instances communicating with each other as defined by the protocol. A domain shall define the scope of PTP message communication, state, operations, data sets, and timescale.

Access

Read-Only

Data Type

<YANG type uint8>

Constraints

Valid range: 0 to 127

/ptp/instances/instance/default-ds/instance-type

Section titled “/ptp/instances/instance/default-ds/instance-type”

Path

/ptp/instances/instance/default-ds/instance-type

Node Type

leaf

Description

The clock type of PTP instance.

Access

Read-Write

Data Type

<YANG type instance-type>

Constraints

Enumeration with options:

bc
oc
tc
t-gm
t-tsc
t-bc
t-tc
t-tsc-p
t-bc-p

/ptp/instances/instance/default-ds/network-transport

Section titled “/ptp/instances/instance/default-ds/network-transport”

Path

/ptp/instances/instance/default-ds/network-transport

Node Type

leaf

Description

The network transport used for communication

Access

Read-Write

Data Type

<YANG type network-transport-enumeration>

Constraints

Enumeration with options:

ethernet
udpv4
udpv6

/ptp/instances/instance/default-ds/communication-mode

Section titled “/ptp/instances/instance/default-ds/communication-mode”

Path

/ptp/instances/instance/default-ds/communication-mode

Node Type

leaf

Description

The communication mode used by the ptp instance.

Access

Read-Write

Data Type

<YANG type communication-mode-enumeration>

Constraints

Enumeration with options:

multicast
unicast
mixed

/ptp/instances/instance/default-ds/source-ip-address

Section titled “/ptp/instances/instance/default-ds/source-ip-address”

Path

/ptp/instances/instance/default-ds/source-ip-address

Node Type

leaf

Description

The source ip address of ptp packet.

Access

Read-Write

Data Type

<YANG type ip-address-no-zone>

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.

/ptp/instances/instance/default-ds/profile

Section titled “/ptp/instances/instance/default-ds/profile”

Path

/ptp/instances/instance/default-ds/profile

Node Type

leaf

Description

The protocol standard used by ptp instance.

Access

Read-Write

Data Type

<YANG type ptp-profile-enumeration>

Constraints

Enumeration with options:

1588v2
smpte-2059-2
g8275.1
g8275.2
aes67

/ptp/instances/instance/default-ds/delay-mechanism

Section titled “/ptp/instances/instance/default-ds/delay-mechanism”

Path

/ptp/instances/instance/default-ds/delay-mechanism

Node Type

leaf

Description

The propagation delay measuring option used by the transparent clock.

Access

Read-Write

Data Type

<YANG type delay-mechanism-enumeration>

Constraints

Enumeration with options:

e2e
p2p

/ptp/instances/instance/default-ds/minor-version

Section titled “/ptp/instances/instance/default-ds/minor-version”

Path

/ptp/instances/instance/default-ds/minor-version

Node Type

leaf

Description

The minor version of the PTP Instance.

Access

Read-Write

Data Type

<YANG type uint8>

Constraints

Valid range: 0 to 1

/ptp/instances/instance/default-ds/local-time

Section titled “/ptp/instances/instance/default-ds/local-time”

Path

/ptp/instances/instance/default-ds/local-time

Node Type

leaf

Description

The local time of the this instance’s clock in nanoseconds.

Access

Read-Only

Data Type

<YANG type uint64>

Path

/ptp/instances/instance/default-ds/smpte

Node Type

container

Description

The smpte-2059-2 profile data.

Access

Read-Write

/ptp/instances/instance/default-ds/smpte/sm-tlv-enable

Section titled “/ptp/instances/instance/default-ds/smpte/sm-tlv-enable”

Path

/ptp/instances/instance/default-ds/smpte/sm-tlv-enable

Node Type

leaf

Description

Enable smpte smpte sm-tlv. default is false.

Access

Read-Write

Data Type

<YANG type boolean>

Constraints

Valid in [true, false]

/ptp/instances/instance/default-ds/smpte/frame-rate-numerator

Section titled “/ptp/instances/instance/default-ds/smpte/frame-rate-numerator”

Path

/ptp/instances/instance/default-ds/smpte/frame-rate-numerator

Node Type

leaf

Description

The numerator of the frame rate.

Access

Read-Write

Data Type

<YANG type uint32>

/ptp/instances/instance/default-ds/smpte/frame-rate-denominator

Section titled “/ptp/instances/instance/default-ds/smpte/frame-rate-denominator”

Path

/ptp/instances/instance/default-ds/smpte/frame-rate-denominator

Node Type

leaf

Description

The denominator of the frame rate.

Access

Read-Write

Data Type

<YANG type uint32>

/ptp/instances/instance/default-ds/smpte/sm-tlv-drop-frame

Section titled “/ptp/instances/instance/default-ds/smpte/sm-tlv-drop-frame”

Path

/ptp/instances/instance/default-ds/smpte/sm-tlv-drop-frame

Node Type

leaf

Description

Enable smpte smpte sm-tlv drop frame. default is false.

Access

Read-Write

Data Type

<YANG type boolean>

Constraints

Valid in [true, false]

/ptp/instances/instance/default-ds/smpte/sm-tlv-color-frame

Section titled “/ptp/instances/instance/default-ds/smpte/sm-tlv-color-frame”

Path

/ptp/instances/instance/default-ds/smpte/sm-tlv-color-frame

Node Type

leaf

Description

Enable smpte smpte sm-tlv color frame. default is false.

Access

Read-Write

Data Type

<YANG type boolean>

Constraints

Valid in [true, false]

/ptp/instances/instance/default-ds/smpte/grandmaster-lock-status

Section titled “/ptp/instances/instance/default-ds/smpte/grandmaster-lock-status”

Path

/ptp/instances/instance/default-ds/smpte/grandmaster-lock-status

Node Type

leaf

Description

smpte sm-tlv grandmaster lock status.

Access

Read-Only

Data Type

<YANG type string>

/ptp/instances/instance/default-ds/smpte/time-address-flags

Section titled “/ptp/instances/instance/default-ds/smpte/time-address-flags”

Path

/ptp/instances/instance/default-ds/smpte/time-address-flags

Node Type

leaf

Description

smpte sm-tlv time address flags.

Access

Read-Only

Data Type

<YANG type string>

/ptp/instances/instance/default-ds/smpte/current-local-offset

Section titled “/ptp/instances/instance/default-ds/smpte/current-local-offset”

Path

/ptp/instances/instance/default-ds/smpte/current-local-offset

Node Type

leaf

Description

smpte sm-tlv current local offset.

Access

Read-Only

Data Type

<YANG type string>

/ptp/instances/instance/default-ds/smpte/jump-seconds

Section titled “/ptp/instances/instance/default-ds/smpte/jump-seconds”

Path

/ptp/instances/instance/default-ds/smpte/jump-seconds

Node Type

leaf

Description

smpte sm-tlv jump seconds.

Access

Read-Only

Data Type

<YANG type string>

/ptp/instances/instance/default-ds/smpte/time-of-next-jump

Section titled “/ptp/instances/instance/default-ds/smpte/time-of-next-jump”

Path

/ptp/instances/instance/default-ds/smpte/time-of-next-jump

Node Type

leaf

Description

smpte sm-tlv time of next jump.

Access

Read-Only

Data Type

<YANG type string>

/ptp/instances/instance/default-ds/smpte/time-of-next-jam

Section titled “/ptp/instances/instance/default-ds/smpte/time-of-next-jam”

Path

/ptp/instances/instance/default-ds/smpte/time-of-next-jam

Node Type

leaf

Description

smpte sm-tlv time of next jam.

Access

Read-Only

Data Type

<YANG type string>

/ptp/instances/instance/default-ds/smpte/time-of-previous-jam

Section titled “/ptp/instances/instance/default-ds/smpte/time-of-previous-jam”

Path

/ptp/instances/instance/default-ds/smpte/time-of-previous-jam

Node Type

leaf

Description

smpte sm-tlv time of previous jam.

Access

Read-Only

Data Type

<YANG type string>

/ptp/instances/instance/default-ds/smpte/previous-jam-local-time-offset

Section titled “/ptp/instances/instance/default-ds/smpte/previous-jam-local-time-offset”

Path

/ptp/instances/instance/default-ds/smpte/previous-jam-local-time-offset

Node Type

leaf

Description

smpte sm-tlv previous jam local time offset.

Access

Read-Only

Data Type

<YANG type string>

/ptp/instances/instance/default-ds/smpte/daylight-saving

Section titled “/ptp/instances/instance/default-ds/smpte/daylight-saving”

Path

/ptp/instances/instance/default-ds/smpte/daylight-saving

Node Type

leaf

Description

smpte sm-tlv daylight saving.

Access

Read-Only

Data Type

<YANG type string>

/ptp/instances/instance/default-ds/smpte/leap-seconds-jump

Section titled “/ptp/instances/instance/default-ds/smpte/leap-seconds-jump”

Path

/ptp/instances/instance/default-ds/smpte/leap-seconds-jump

Node Type

leaf

Description

smpte sm-tlv leap seconds jump.

Access

Read-Only

Data Type

<YANG type string>

Path

/ptp/instances/instance/ports

Node Type

container

Description

YANG container is used to get all ptp ports in this ptp instance. YANG does not allow get all elements in a YANG list, so a YANG container wrapping the YANG list is provided for that purpose. The naming convention uses plural for the wrapping YANG container, and singular for the YANG list.

Access

Read-Write

Path

/ptp/instances/instance/ports/port

Node Type

list

Description

List of data for each PTP port in PTP instance.

Access

Read-Write

Path

/ptp/instances/instance/ports/port/port

Node Type

leaf

Description

Reference to the configured underlying interface that is used by this PTP port (see RFC 8343).

Access

Read-Write

Data Type

<YANG type interface-ref>

Constraints

LeafRef pointing to: asternos-interfaces:interface-ref

/ptp/instances/instance/ports/port/port-ds

Section titled “/ptp/instances/instance/ports/port/port-ds”

Path

/ptp/instances/instance/ports/port/port-ds

Node Type

container

Description

Primary data set of the port

Access

Read-Write

/ptp/instances/instance/ports/port/port-ds/log-announce-interval

Section titled “/ptp/instances/instance/ports/port/port-ds/log-announce-interval”

Path

/ptp/instances/instance/ports/port/port-ds/log-announce-interval

Node Type

leaf

Description

The base-2 logarithm of the mean announceInterval (mean time interval between successive Announce messages). for smpte-2059-2, default is 0 (-3..1) for profile g8275.2, default is -3 (-3..0) for profile 1588v2, default is 1 (0..4) for profile aes67, default is 1 (0..4)

Access

Read-Write

Data Type

<YANG type int8>

Constraints

Valid range: -3 to 4

/ptp/instances/instance/ports/port/port-ds/announce-receipt-timeout

Section titled “/ptp/instances/instance/ports/port/port-ds/announce-receipt-timeout”

Path

/ptp/instances/instance/ports/port/port-ds/announce-receipt-timeout

Node Type

leaf

Description

The number of announceIntervals that have to pass without receipt of an Announce message before the occurrence of the event ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES.

Access

Read-Write

Data Type

<YANG type int8>

/ptp/instances/instance/ports/port/port-ds/log-sync-interval

Section titled “/ptp/instances/instance/ports/port/port-ds/log-sync-interval”

Path

/ptp/instances/instance/ports/port/port-ds/log-sync-interval

Node Type

leaf

Description

The base-2 logarithm of the mean SyncInterval for multicast messages. The rates for unicast transmissions are negotiated separately on a per-port basis and are not constrained by this attribute.

Access

Read-Write

Data Type

<YANG type int8>

/ptp/instances/instance/ports/port/port-ds/log-min-delay-req-interval

Section titled “/ptp/instances/instance/ports/port/port-ds/log-min-delay-req-interval”

Path

/ptp/instances/instance/ports/port/port-ds/log-min-delay-req-interval

Node Type

leaf

Description

The base-2 logarithm of the minDelayReqInterval (the minimum permitted mean time interval between successive Delay_Req messages).

Access

Read-Write

Data Type

<YANG type int8>

/ptp/instances/instance/ports/port/port-ds/log-min-pdelay-req-interval

Section titled “/ptp/instances/instance/ports/port/port-ds/log-min-pdelay-req-interval”

Path

/ptp/instances/instance/ports/port/port-ds/log-min-pdelay-req-interval

Node Type

leaf

Description

The base-2 logarithm of the minPdelayReqInterval (minimum permitted mean time interval between successive Pdelay_Req messages).

Access

Read-Write

Data Type

<YANG type int8>

/ptp/instances/instance/ports/port/port-ds/asymmetry-correction

Section titled “/ptp/instances/instance/ports/port/port-ds/asymmetry-correction”

Path

/ptp/instances/instance/ports/port/port-ds/asymmetry-correction

Node Type

leaf

Description

Asymmetrical delay correction value on the interface.

Access

Read-Write

Data Type

<YANG type int32>

Constraints

Valid range: -100000000 to 100000000

/ptp/instances/instance/ports/port/port-ds/dscp

Section titled “/ptp/instances/instance/ports/port/port-ds/dscp”

Path

/ptp/instances/instance/ports/port/port-ds/dscp

Node Type

leaf

Description

DSCP of ptp packets sent from the interface.

Access

Read-Write

Data Type

<YANG type uint8>

Constraints

Valid range: 0 to 63

/ptp/instances/instance/ports/port/port-ds/port-state

Section titled “/ptp/instances/instance/ports/port/port-ds/port-state”

Path

/ptp/instances/instance/ports/port/port-ds/port-state

Node Type

leaf

Description

Current state associated with the port.

Access

Read-Write

Data Type

<YANG type port-state-enumeration>

Constraints

Enumeration with options:

master
passive
slave
none

/ptp/instances/instance/ports/port/port-ds/port-enable

Section titled “/ptp/instances/instance/ports/port/port-ds/port-enable”

Path

/ptp/instances/instance/ports/port/port-ds/port-enable

Node Type

leaf

Description

Indicates if the PTP Port is enabled for PTP operation. If the PTP Port is disabled, the PTP Port will not send or receive PTP messages.

Access

Read-Write

Data Type

<YANG type boolean>

Constraints

Valid in [true, false]

/ptp/instances/instance/ports/port/port-ds/port-number

Section titled “/ptp/instances/instance/ports/port/port-ds/port-number”

Path

/ptp/instances/instance/ports/port/port-ds/port-number

Node Type

leaf

Description

The port-number is allocated by internal process and is used in ptp messages.

Access

Read-Only

Data Type

<YANG type uint16>

/ptp/instances/instance/ports/port/port-ds/unicast-master-table

Section titled “/ptp/instances/instance/ports/port/port-ds/unicast-master-table”

Path

/ptp/instances/instance/ports/port/port-ds/unicast-master-table

Node Type

list

Description

The list of master ip address for this instance.

Access

Read-Write

/ptp/instances/instance/ports/port/port-ds/unicast-master-table/address

Section titled “/ptp/instances/instance/ports/port/port-ds/unicast-master-table/address”

Path

/ptp/instances/instance/ports/port/port-ds/unicast-master-table/address

Node Type

leaf

Description

The master ip address.

Access

Read-Write

Data Type

<YANG type ip-address-no-zone>

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.

/ptp/instances/instance/ports/port/port-ds/source-ip-address

Section titled “/ptp/instances/instance/ports/port/port-ds/source-ip-address”

Path

/ptp/instances/instance/ports/port/port-ds/source-ip-address

Node Type

leaf

Description

The source ip address of ptp packet.

Access

Read-Write

Data Type

<YANG type ip-address-no-zone>

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.

/ptp/instances/instance/ports/port/port-ds/priority

Section titled “/ptp/instances/instance/ports/port/port-ds/priority”

Path

/ptp/instances/instance/ports/port/port-ds/priority

Node Type

leaf

Description

The priority of the PTP Port. Since priority is one of the comparisons performed by the Alternative Best Master Clock Algorithm (ABMCA), this leaf’s configuration can be used to explicitly select a Grandmaster PTP Instance. Lower values take precedence. The value of priority shall be configurable to any value in the range 1 to 255, unless restricted by limits established by the applicable PTP Profile.

Access

Read-Write

Data Type

<YANG type uint8>

Constraints

Valid range: 1 to 255

Path

/ptp/instances/instance/current-ds

Node Type

container

Description

The current data set of the PTP instance.

Access

Read-Only

/ptp/instances/instance/current-ds/steps-removed

Section titled “/ptp/instances/instance/current-ds/steps-removed”

Path

/ptp/instances/instance/current-ds/steps-removed

Node Type

leaf

Description

The number of communication paths traversed between this ptp instance and the grandmaster ptp instance

Access

Read-Only

Data Type

<YANG type uint16>

/ptp/instances/instance/current-ds/offset-from-master

Section titled “/ptp/instances/instance/current-ds/offset-from-master”

Path

/ptp/instances/instance/current-ds/offset-from-master

Node Type

leaf

Description

The current value of the time difference between a master and a slave clock as computed by the slave.

Access

Read-Only

Data Type

<YANG type time-interval-type>

/ptp/instances/instance/current-ds/mean-path-delay

Section titled “/ptp/instances/instance/current-ds/mean-path-delay”

Path

/ptp/instances/instance/current-ds/mean-path-delay

Node Type

leaf

Description

The current value of the mean propagation time between a master and a slave clock as computed by the slave.

Access

Read-Only

Data Type

<YANG type time-interval-type>

/ptp/instances/instance/current-ds/servo-state

Section titled “/ptp/instances/instance/current-ds/servo-state”

Path

/ptp/instances/instance/current-ds/servo-state

Node Type

leaf

Description

The current state of the ptp clock.

Access

Read-Only

Data Type

<YANG type servo-state-enumeration>

Constraints

Enumeration with options:

locked
unlocked

Path

/ptp/instances/instance/parent-ds

Node Type

container

Description

Provides data learned from the parent of this PTP instance.

Access

Read-Only

/ptp/instances/instance/parent-ds/parent-port-identity

Section titled “/ptp/instances/instance/parent-ds/parent-port-identity”

Path

/ptp/instances/instance/parent-ds/parent-port-identity

Node Type

leaf

Description

The portIdentity of the parent port.

Access

Read-Only

Data Type

<YANG type string>

Constraints

String with length: 10

/ptp/instances/instance/parent-ds/grandmaster-identity

Section titled “/ptp/instances/instance/parent-ds/grandmaster-identity”

Path

/ptp/instances/instance/parent-ds/grandmaster-identity

Node Type

leaf

Description

The clockIdentity attribute of the grandmaster clock.

Access

Read-Only

Data Type

<YANG type clock-identity-type>

Constraints

Derived data type to identify a clock, format: [0-9a-fA-F]{6}.[0-9a-fA-F]{4}.[0-9a-fA-F]{6} should be like: xxxxxx.xxxx.xxxxxx

/ptp/instances/instance/parent-ds/grandmaster-clock-quality

Section titled “/ptp/instances/instance/parent-ds/grandmaster-clock-quality”

Path

/ptp/instances/instance/parent-ds/grandmaster-clock-quality

Node Type

container

Description

The clockQuality of the grandmaster clock.

Access

Read-Only

/ptp/instances/instance/parent-ds/grandmaster-clock-quality/clock-class

Section titled “/ptp/instances/instance/parent-ds/grandmaster-clock-quality/clock-class”

Path

/ptp/instances/instance/parent-ds/grandmaster-clock-quality/clock-class

Node Type

leaf

Description

The clockClass denotes the traceability of the time or frequency distributed by the clock.

Access

Read-Only

Data Type

<YANG type uint8>

/ptp/instances/instance/parent-ds/grandmaster-clock-quality/clock-accuracy

Section titled “/ptp/instances/instance/parent-ds/grandmaster-clock-quality/clock-accuracy”

Path

/ptp/instances/instance/parent-ds/grandmaster-clock-quality/clock-accuracy

Node Type

leaf

Description

The clockAccuracy indicates the expected accuracy of the clock, range 0 to 0xFE.

Access

Read-Only

Data Type

<YANG type hex-string>

Constraints

A hexadecimal string with octets represented as hex digits separated by colons.The canonical representation uses lowercase characters.

/ptp/instances/instance/parent-ds/grandmaster-priority1

Section titled “/ptp/instances/instance/parent-ds/grandmaster-priority1”

Path

/ptp/instances/instance/parent-ds/grandmaster-priority1

Node Type

leaf

Description

The priority1 attribute of the grandmaster clock.

Access

Read-Only

Data Type

<YANG type uint8>

/ptp/instances/instance/parent-ds/grandmaster-priority2

Section titled “/ptp/instances/instance/parent-ds/grandmaster-priority2”

Path

/ptp/instances/instance/parent-ds/grandmaster-priority2

Node Type

leaf

Description

The priority2 attribute of the grandmaster clock.

Access

Read-Only

Data Type

<YANG type uint8>