Files
test/config/ptp/files/default.json5
Guntaka Umashankar Reddy ade9a3df1c Removed hardcoded hosts and pci-slot
Implementation of ptp_parameters_parser.py

Change-Id: I12d6606870f0e85705f3264d054a79bf66e59523
Signed-off-by: Guntaka Umashankar Reddy <umashankarguntaka.reddy@windriver.com>
2025-05-08 15:59:10 +00:00

111 lines
2.7 KiB
Plaintext

{
external_ptp_device_type: "",
// GNSS server information if you want to turn on/off GNSS ports.
gnss_server_host: "gnss_server_hostname_or_ip",
gnss_server_username: "gnss_server_username",
gnss_server_password: "gnss_server_password",
// Information about the NIC cards and SMA connections.
hosts: {
controller_0 : {
sma_connectors: {
nic_1_2: {
input: { nic: "nic1", sma: "sma1" },
output:{ nic: "nic2", sma: "sma2" },
},
nic_2_3: {
input: { nic: "nic2", sma: "sma1" },
output:{ nic: "nic3", sma: "sma1" },
},
},
ufl_connectors: {
nic_1_3: {
input: { nic: "nic1", ufl: "ufl1" },
output:{ nic: "nic2", ufl: "ufl1" },
},
},
nics: {
nic1 : {
// This port for TS2PHC and PHC2SYS.
// Can be assigned to any interface of the NIC connected to GNSS and with any NIC on the same host.
// By default, we use the first port.
base_port: "enp81s0f0",
gpio_switch_port: "30",
nic_connection: {
to_host: "controller_1",
to_nic: "nic1",
interface: "enp81s0f1"
},
// Optional Spirent config.
conn_to_spirent: "conn_spirent_placeholder",
spirent_port: "1234",
},
nic2 : {
base_port: "",
gpio_switch_port: "",
conn_to_spirent: "",
spirent_port: "",
},
nic3 : {
base_port: "",
gpio_switch_port: "",
conn_to_spirent: "",
spirent_port: "",
}
},
},
controller_1 : {
sma_connectors: {
nic_1_2: {
input: { nic: "nic1", sma: "sma1" },
output:{ nic: "nic2", sma: "sma2" },
},
},
nics: {
nic1: {
base_port: "",
gpio_switch_port: "",
conn_to_spirent: "",
spirent_port: "",
},
nic2: {
base_port: "enp82s0f0",
gpio_switch_port: "",
conn_to_spirent: "",
spirent_port: "",
},
},
},
},
}