The ptp clock-source local local-priority command sets the local priority for a local PTP clock source or an external clock source.
The undo ptp clock-source local local-priority command restores the default local priority of a local or external clock source.
By default, the local priority of a local PTP clock source or an external clock source is 128.
ptp clock-source local local-priority local-priority-value slot slot-id
undo ptp clock-source local local-priority slot slot-id
Parameter | Description | Value |
---|---|---|
local-priority local-priority-value | Specifies a local priority. | The value is an integer that ranges from 1 to 255. |
slot slot-id | Specifies the slot ID. | The value range depends on the device configuration. |
According to the BMC algorithm in G.8275.1, when the local or external clock source competes with a line clock source and other attributes are the same, the two clock sources are compared against the local priority. The clock source with a lower local priority is preferentially selected.