Skip to content

Commit

Permalink
ztp: ptp WPC dual card set 2nd card ts2phc.master to 0
Browse files Browse the repository at this point in the history
Under ts2phcConf the second card should have `ts2phc.master 0`
to indicate it gets its source from PPS instead of GPS.

Rename the 2nd card and added more ports to be consistent with
the namings of single card config.

Signed-off-by: Jack Ding <jackding@gmail.com>
  • Loading branch information
jzding committed Jan 30, 2024
1 parent da0c7b2 commit d6bfd5b
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions ztp/source-crs/PtpConfigDualCardGmWpc.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# The grandmaster profile is provided for testing only
# It is not installed on production clusters
# In this example 2 cards $iface_master and $iface_master_1 are connected via SMA1 ports by a cable
# and $iface_master_1 receives 1PPS signals from $iface_master
# In this example two cards $iface_master and $iface_master_nic2 are connected via
# SMA1 ports by a cable and $iface_master_nic2 receives 1PPS signals from $iface_master
apiVersion: ptp.openshift.io/v1
kind: PtpConfig
metadata:
Expand Down Expand Up @@ -31,7 +31,7 @@ spec:
# "U.FL1": "0 1"
# "SMA2": "0 2"
# "SMA1": "2 1"
# "$iface_master_1":
# "$iface_master_nic2":
# "U.FL2": "0 2"
# "U.FL1": "0 1"
# "SMA2": "0 2"
Expand Down Expand Up @@ -106,7 +106,8 @@ spec:
[$iface_master]
ts2phc.extts_polarity rising
ts2phc.extts_correction 0
[$iface_master_1]
[$iface_master_nic2]
ts2phc.master 0
ts2phc.extts_polarity rising
#this is a measured value in nanoseconds to compensate for SMA cable delay
ts2phc.extts_correction -10
Expand All @@ -115,9 +116,17 @@ spec:
masterOnly 1
[$iface_master_1]
masterOnly 1
[$iface_master_1_1]
[$iface_master_2]
masterOnly 1
[$iface_master_3]
masterOnly 1
[$iface_master_nic2]
masterOnly 1
[$iface_master_nic2_1]
masterOnly 1
[$iface_master_nic2_2]
masterOnly 1
[$iface_master_1_2]
[$iface_master_nic2_3]
masterOnly 1
[global]
#
Expand Down

0 comments on commit d6bfd5b

Please sign in to comment.