Commit 764d2c89 authored by Jean-Claude BAU's avatar Jean-Claude BAU

Update KConfig files and tool to remove references to HA

- Remove all references to HA (+ L1SYNC) in KConfig files
- Update some help description
parent 32169dbc
......@@ -3,7 +3,7 @@ mainmenu "White Rabbit Switch configuration"
config DOTCONF_FW_VERSION
string "Firmware version"
default "5.0"
default "6.0.0"
help
Free-text information about switch's firmware version. This field is
for information purpose only. Additionally this field describes
......@@ -11,6 +11,7 @@ config DOTCONF_FW_VERSION
config DOTCONF_HW_VERSION
string "Hardware version"
default "3.4"
help
Free-text information about switch's Hardware version. This field is
for information purpose only.
......@@ -104,7 +105,7 @@ config LEAPSEC_URL
help
tftp://, ftp:// or http:// URLs are allowed. Names are allowed if
you configured a DNS server. The special strings HOSTNAME, BOOTSERVER, IPADDR and
MACADDRare substituted before retrieving the file.
MACADDR are substituted before retrieving the file.
Example: "tftp://BOOTSERVER/leap-seconds.IPADDR"
......@@ -223,6 +224,7 @@ config ROOT_ACCESS_DISABLE
config LDAP_ENABLE
bool "Enable LDAP authorization"
default false
help
Enable LDAP authorization. Used by ssh.
......@@ -630,8 +632,6 @@ config PTP_OPT_PRIORITY2
A user configurable designation that provides finer grained ordering
among otherwise equivalent PTP devices.
For more details please refer to the IEEE 1588-2008 standard
If set, this configuration item overwrites the default value from
ppsi-pre.conf during generation of ppsi.conf.
config PTP_OPT_CLOCK_CLASS
int "clock-class"
......@@ -650,8 +650,6 @@ config PTP_OPT_CLOCK_CLASS
expected performance of the time or frequency distributed by a
Boundary Clock or Ordinary Clock.
For more details please refer to the IEEE 1588-2008 standard.
If set, this configuration item overwrites the default value from
ppsi-pre.conf during generation of ppsi.conf.
config PTP_OPT_OVERWRITE_ATTRIBUTES
boolean "Overwrite default PTP device attributes"
......@@ -673,8 +671,6 @@ config PTP_OPT_CLOCK_ACCURACY
An attribute defining the accuracy of the Local Clock (e.g. local
oscillator) of a Boundary Clock or Ordinary Clock.
For more details please refer to the IEEE 1588-2008 standard.
If set, this configuration item overwrites the default value from
ppsi-pre.conf during generation of ppsi.conf.
config PTP_OPT_CLOCK_ALLAN_VARIANCE
int "clock-allan-variance/offsetScaledLogVariance"
......@@ -686,8 +682,6 @@ config PTP_OPT_CLOCK_ALLAN_VARIANCE
An attribute defining the stability of the Local Clock of a
Boundary Clock or Ordinary Clock.
For more details please refer to the IEEE 1588-2008 standard.
If set, this configuration item overwrites the default value from
ppsi-pre.conf during generation of ppsi.conf.
config PTP_OPT_TIME_SOURCE
int "time-source"
......@@ -723,7 +717,7 @@ config PPSGEN_PTP_THRESHOLD_MS
master used to start the generation of the PPS. It is either used by a PTP slave
instance or a instance using a protocol extension but going into the fallback PTP mode
and with the PTP fallback option active.
A 0 value means that the PPS will be not generated for the considerated cases.
A 0 value means that the PPS will be not generated for the considered cases.
When the PPS is generated, it can be also disabled when the offset from master becomes greater
than the threshold value + 20%
......@@ -1153,7 +1147,7 @@ config FAN_HYSTERESIS
be used during development to reduce noise generated by a switch.
Don't use in production as this may affect the synchronization
performance.
config FAN_HYSTERESIS_T_DISABLE
int "Disable fans temperature"
default 60
......@@ -1203,7 +1197,7 @@ choice
config OPTIMIZATION_DEBUGGING
boolean "Debugging (-Og)"
help
Should be the optimization level of choice for the standard edit-compile-debug cycle
Should be the optimization level choice for the standard edit-compile-debug cycle
config OPTIMIZATION_NONE_DEBUGGING
boolean "Debugging without optimization(-ggdb)"
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -19,6 +19,12 @@ do
esac
done
function is_profile_enabled() {
for profile in $profileList; do
if [ $profile == "$1" ]; then return 1 ; fi
done
return 0;
}
function print_header() {
......@@ -49,26 +55,25 @@ function print_footer() {
}
function print_port_header() {
#remove leading zero from i_port (params has numbers with leading zero,
#interface names are without leading zero)
local portIdx=$(expr $1 + 0)
local portIdx=$1
local portStr=`printf "%02d" $portIdx`
echo -e "\nmenu \"PORT ${portIdx}\"" >>$OUTPUT_FILE
echo -e "\nconfig PORT${1}_IFACE" >>$OUTPUT_FILE
echo -e "\nconfig PORT${portStr}_IFACE" >>$OUTPUT_FILE
echo -e "\tstring \"Network interface\"" >>$OUTPUT_FILE
echo -e "\tdefault \"wri${portIdx}\"" >>$OUTPUT_FILE
echo -e "\thelp" >>$OUTPUT_FILE
echo -e "\t Used to set the physical port interface name: \"wri[1-18]\"" >>$OUTPUT_FILE
echo -e "\nconfig PORT${1}_FIBER" >>$OUTPUT_FILE
echo -e "\nconfig PORT${portStr}_FIBER" >>$OUTPUT_FILE
echo -e "\tint \"Fiber type\"" >>$OUTPUT_FILE
echo -e "\tdefault 0" >>$OUTPUT_FILE
echo -e "\thelp" >>$OUTPUT_FILE
echo -e "\t Used to set the type of fiber (number referring to the corresponding " >>$OUTPUT_FILE
echo -e "\t FIBERXX_PARAMS)" >>$OUTPUT_FILE
echo -e "\nconfig PORT${1}_CONSTANT_ASYMMETRY" >>$OUTPUT_FILE
echo -e "\nconfig PORT${portStr}_CONSTANT_ASYMMETRY" >>$OUTPUT_FILE
echo -e "\tint \"asymmetryCorrectionPortDS.constantAsymmetry\"" >>$OUTPUT_FILE
echo -e "\tdefault 0" >>$OUTPUT_FILE
echo -e "\thelp" >>$OUTPUT_FILE
......@@ -76,13 +81,11 @@ function print_port_header() {
echo -e "\nchoice" >>$OUTPUT_FILE
echo -e "\tprompt \"Number of port instances\"" >>$OUTPUT_FILE
echo -e "\tdefault PORT${1}_INSTANCE_COUNT_1" >>$OUTPUT_FILE
echo -e "\tconfig PORT${1}_INSTANCE_COUNT_0" >>$OUTPUT_FILE
echo -e "\t bool \"0\"" >>$OUTPUT_FILE
echo -e "\tconfig PORT${1}_INSTANCE_COUNT_1" >>$OUTPUT_FILE
echo -e "\t bool \"1\"" >>$OUTPUT_FILE
echo -e "\tconfig PORT${1}_INSTANCE_COUNT_2" >>$OUTPUT_FILE
echo -e "\t bool \"2\"" >>$OUTPUT_FILE
echo -e "\tdefault PORT${portStr}_INSTANCE_COUNT_1" >>$OUTPUT_FILE
for inst in `seq 0 $instCount` ; do
echo -e "\tconfig PORT${portStr}_INSTANCE_COUNT_$inst" >>$OUTPUT_FILE
echo -e "\t bool \"$inst\"" >>$OUTPUT_FILE
done
echo -e "endchoice" >>$OUTPUT_FILE
}
......@@ -94,40 +97,42 @@ function print_port_footer() {
}
function print_instance_header() {
#remove leading zero from i_port (params has numbers with leading zero,
#interface names are without leading zero)
local portIdx=$(expr $1 + 0)
local instIdx=$(expr $2 + 0)
local portIdx=$1
local portStr=`printf "%02d" $portIdx`
local instIdx=$2
local instStr=`printf "%02d" $instIdx`
if [ $instIdx -eq 1 ] ; then prof=WR ; else prof=HA ; fi
local tx=${port_tx[$1]}
local rx=${port_rx[$1]}
echo -e "\nmenu \"Instance ${instIdx}\"" >>$OUTPUT_FILE
if [ $instIdx -eq 1 ] ; then
echo -e " depends on PORT${1}_INSTANCE_COUNT_1 || PORT${1}_INSTANCE_COUNT_2 " >>$OUTPUT_FILE
else
echo -e " depends on PORT${1}_INSTANCE_COUNT_2 " >>$OUTPUT_FILE
fi
echo -n " depends on " >>$OUTPUT_FILE
for inst in `seq $instIdx $instCount` ; do
if [ $inst != $instIdx ] ; then echo -n " || " >>$OUTPUT_FILE; fi
echo -n "PORT${portStr}_INSTANCE_COUNT_$inst" >>$OUTPUT_FILE
done
echo -e >>$OUTPUT_FILE
echo -e "\nchoice" >>$OUTPUT_FILE
echo -e " prompt \"Network protocol\"" >>$OUTPUT_FILE
echo -e " default PORT${1}_INST${2}_PROTOCOL_RAW" >>$OUTPUT_FILE
echo -e " config PORT${1}_INST${2}_PROTOCOL_RAW" >>$OUTPUT_FILE
echo -e " default PORT${portStr}_INST${instStr}_PROTOCOL_RAW" >>$OUTPUT_FILE
echo -e " config PORT${portStr}_INST${instStr}_PROTOCOL_RAW" >>$OUTPUT_FILE
echo -e " bool \"IEEE 802.3\"" >>$OUTPUT_FILE
echo -e " config PORT${1}_INST${2}_PROTOCOL_UDP_IPV4" >>$OUTPUT_FILE
echo -e " config PORT${portStr}_INST${instStr}_PROTOCOL_UDP_IPV4" >>$OUTPUT_FILE
echo -e " bool \"UDP/Ipv4\"" >>$OUTPUT_FILE
echo -e "endchoice" >>$OUTPUT_FILE
echo -e "\nchoice" >>$OUTPUT_FILE
echo -e " prompt \"Delay mechanism\"" >>$OUTPUT_FILE
echo -e " default PORT${1}_INST${2}_MECHANISM_E2E" >>$OUTPUT_FILE
echo -e " config PORT${1}_INST${2}_MECHANISM_E2E" >>$OUTPUT_FILE
echo -e " default PORT${portStr}_INST${instStr}_MECHANISM_E2E" >>$OUTPUT_FILE
echo -e " config PORT${portStr}_INST${instStr}_MECHANISM_E2E" >>$OUTPUT_FILE
echo -e " bool \"End-to-end\"" >>$OUTPUT_FILE
echo -e " config PORT${1}_INST${2}_MECHANISM_P2P" >>$OUTPUT_FILE
echo -e " config PORT${portStr}_INST${instStr}_MECHANISM_P2P" >>$OUTPUT_FILE
echo -e " bool \"Peer-to-peer\"" >>$OUTPUT_FILE
echo -e "endchoice" >>$OUTPUT_FILE
echo -e "\nconfig PORT${1}_INST${2}_MONITOR" >>$OUTPUT_FILE
echo -e "\nconfig PORT${portStr}_INST${instStr}_MONITOR" >>$OUTPUT_FILE
echo -e " bool \"SNMP monitoring\"" >>$OUTPUT_FILE
echo -e " default y" >>$OUTPUT_FILE
echo -e " help" >>$OUTPUT_FILE
......@@ -135,9 +140,9 @@ function print_instance_header() {
echo -e "\nchoice" >>$OUTPUT_FILE
echo -e " prompt \"Profile\"" >>$OUTPUT_FILE
echo -e " default PORT${1}_INST${2}_PROFILE_$defaultProfile" >>$OUTPUT_FILE
echo -e " default PORT${portStr}_INST${instStr}_PROFILE_$defaultProfile" >>$OUTPUT_FILE
for profile in $profileList; do
echo -e " config PORT${1}_INST${2}_PROFILE_$profile" >>$OUTPUT_FILE
echo -e " config PORT${portStr}_INST${instStr}_PROFILE_$profile" >>$OUTPUT_FILE
echo -e " bool \"${profileNames[$profile]}\"" >>$OUTPUT_FILE
done
echo -e "endchoice" >>$OUTPUT_FILE
......@@ -145,18 +150,18 @@ function print_instance_header() {
echo -e "\nchoice" >>$OUTPUT_FILE
echo -e " prompt \"Desired state\"" >>$OUTPUT_FILE
echo -e " depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED" >>$OUTPUT_FILE
[[ $portIdx -eq 1 ]] && echo -e " default PORT${1}_INST${2}_DESIRADE_STATE_SLAVE if TIME_BC" >>$OUTPUT_FILE
echo -e " default PORT${1}_INST${2}_DESIRADE_STATE_MASTER" >>$OUTPUT_FILE
echo -e " config PORT${1}_INST${2}_DESIRADE_STATE_MASTER" >>$OUTPUT_FILE
[[ $portIdx -eq 1 ]] && echo -e " default PORT${portStr}_INST${instStr}_DESIRADE_STATE_SLAVE if TIME_BC" >>$OUTPUT_FILE
echo -e " default PORT${portStr}_INST${instStr}_DESIRADE_STATE_MASTER" >>$OUTPUT_FILE
echo -e " config PORT${portStr}_INST${instStr}_DESIRADE_STATE_MASTER" >>$OUTPUT_FILE
echo -e " bool \"Master\"" >>$OUTPUT_FILE
echo -e " config PORT${1}_INST${2}_DESIRADE_STATE_SLAVE" >>$OUTPUT_FILE
echo -e " config PORT${portStr}_INST${instStr}_DESIRADE_STATE_SLAVE" >>$OUTPUT_FILE
echo -e " bool \"Slave\"" >>$OUTPUT_FILE
echo -e " config PORT${1}_INST${2}_DESIRADE_STATE_PASSIVE" >>$OUTPUT_FILE
echo -e " config PORT${portStr}_INST${instStr}_DESIRADE_STATE_PASSIVE" >>$OUTPUT_FILE
echo -e " bool \"Passive\"" >>$OUTPUT_FILE
echo -e "endchoice" >>$OUTPUT_FILE
echo -e "\nconfig PORT${1}_INST${2}_ASYMMETRY_CORRECTION_ENABLE" >>$OUTPUT_FILE
echo -e " depends on !PORT${1}_INST${2}_PROFILE_HA && !PORT${1}_INST${2}_PROFILE_WR" >>$OUTPUT_FILE
echo -e "\nconfig PORT${portStr}_INST${instStr}_ASYMMETRY_CORRECTION_ENABLE" >>$OUTPUT_FILE
echo -e " depends on !PORT${portStr}_INST${instStr}_PROFILE_HA && !PORT${portStr}_INST${instStr}_PROFILE_WR" >>$OUTPUT_FILE
echo -e " bool \"asymmetryCorrectionPortDS.enable\"" >>$OUTPUT_FILE
echo -e " default y" >>$OUTPUT_FILE
echo -e " help" >>$OUTPUT_FILE
......@@ -166,27 +171,27 @@ function print_instance_header() {
echo -e "\nchoice" >>$OUTPUT_FILE
echo -e " prompt \"BMCA mode\"" >>$OUTPUT_FILE
echo -e " depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED!=y" >>$OUTPUT_FILE
echo -e " default PORT${1}_INST${2}_BMODE_MASTER_ONLY if TIME_GM || TIME_FM" >>$OUTPUT_FILE
echo -e " default PORT${1}_INST${2}_BMODE_AUTO if TIME_BC" >>$OUTPUT_FILE
echo -e " config PORT${1}_INST${2}_BMODE_MASTER_ONLY" >>$OUTPUT_FILE
echo -e " default PORT${portStr}_INST${instStr}_BMODE_MASTER_ONLY if TIME_GM || TIME_FM" >>$OUTPUT_FILE
echo -e " default PORT${portStr}_INST${instStr}_BMODE_AUTO if TIME_BC" >>$OUTPUT_FILE
echo -e " config PORT${portStr}_INST${instStr}_BMODE_MASTER_ONLY" >>$OUTPUT_FILE
echo -e " bool \"MasterOnly\"" >>$OUTPUT_FILE
echo -e " config PORT${1}_INST${2}_BMODE_AUTO" >>$OUTPUT_FILE
echo -e " config PORT${portStr}_INST${instStr}_BMODE_AUTO" >>$OUTPUT_FILE
echo -e " bool \"Auto\"" >>$OUTPUT_FILE
echo -e "endchoice" >>$OUTPUT_FILE
echo -e "\nconfig PORT${1}_INST${2}_EGRESS_LATENCY" >>$OUTPUT_FILE
echo -e "\nconfig PORT${portStr}_INST${instStr}_EGRESS_LATENCY" >>$OUTPUT_FILE
echo -e " int \"timestampCorrectionPortDS.egressLatency (ps)\"" >>$OUTPUT_FILE
echo -e " default ${tx}" >>$OUTPUT_FILE
echo -e " help" >>$OUTPUT_FILE
echo -e " Defines the transmission constant delay (ps)" >>$OUTPUT_FILE
echo -e "\nconfig PORT${1}_INST${2}_INGRESS_LATENCY" >>$OUTPUT_FILE
echo -e "\nconfig PORT${portStr}_INST${instStr}_INGRESS_LATENCY" >>$OUTPUT_FILE
echo -e " int \"timestampCorrectionPortDS.ingressLatency (ps)\"" >>$OUTPUT_FILE
echo -e " default ${rx}" >>$OUTPUT_FILE
echo -e " help" >>$OUTPUT_FILE
echo -e " Defines the reception constant delay (ps)" >>$OUTPUT_FILE
echo -e "\nconfig PORT${1}_INST${2}_ANNOUNCE_INTERVAL" >>$OUTPUT_FILE
echo -e "\nconfig PORT${portStr}_INST${instStr}_ANNOUNCE_INTERVAL" >>$OUTPUT_FILE
echo -e " int \"logAnnounceInterval\" " >>$OUTPUT_FILE
echo -e " default 1" >>$OUTPUT_FILE
echo -e " range 0 4" >>$OUTPUT_FILE
......@@ -195,7 +200,7 @@ function print_instance_header() {
echo -e " Announce messages. The value is the logarithm to the base 2." >>$OUTPUT_FILE
echo -e " The configurable range shall be 0 to 4." >>$OUTPUT_FILE
echo -e "\nconfig PORT${1}_INST${2}_ANNOUNCE_RECEIPT_TIMEOUT" >>$OUTPUT_FILE
echo -e "\nconfig PORT${portStr}_INST${instStr}_ANNOUNCE_RECEIPT_TIMEOUT" >>$OUTPUT_FILE
echo -e " int \"announceReceiptTimeout\"" >>$OUTPUT_FILE
echo -e " default 3" >>$OUTPUT_FILE
echo -e " range 2 255" >>$OUTPUT_FILE
......@@ -206,7 +211,7 @@ function print_instance_header() {
echo -e " The value is the logarithm to the base 2." >>$OUTPUT_FILE
echo -e " The configurable range shall be 2 to 255" >>$OUTPUT_FILE
echo -e "\nconfig PORT${1}_INST${2}_SYNC_INTERVAL" >>$OUTPUT_FILE
echo -e "\nconfig PORT${portStr}_INST${instStr}_SYNC_INTERVAL" >>$OUTPUT_FILE
echo -e " int \"logSyncInterval\"" >>$OUTPUT_FILE
echo -e " default 0" >>$OUTPUT_FILE
echo -e " range -1 1" >>$OUTPUT_FILE
......@@ -216,8 +221,8 @@ function print_instance_header() {
echo -e " as multicast messages. The value is the logarithm to the base 2." >>$OUTPUT_FILE
echo -e " The configurable range shall be -1 to +1" >>$OUTPUT_FILE
echo -e "\nconfig PORT${1}_INST${2}_MIN_DELAY_REQ_INTERVAL" >>$OUTPUT_FILE
echo -e " depends on PORT${1}_INST${2}_MECHANISM_E2E " >>$OUTPUT_FILE
echo -e "\nconfig PORT${portStr}_INST${instStr}_MIN_DELAY_REQ_INTERVAL" >>$OUTPUT_FILE
echo -e " depends on PORT${portStr}_INST${instStr}_MECHANISM_E2E " >>$OUTPUT_FILE
echo -e " int \"minDelayRequestInterval\"" >>$OUTPUT_FILE
echo -e " default 0" >>$OUTPUT_FILE
echo -e " range 0 5" >>$OUTPUT_FILE
......@@ -227,8 +232,8 @@ function print_instance_header() {
echo -e " The value is the logarithm to the base 2." >>$OUTPUT_FILE
echo -e " The configurable range shall be 0 to 5" >>$OUTPUT_FILE
echo -e "\nconfig PORT${1}_INST${2}_MIN_PDELAY_REQ_INTERVAL" >>$OUTPUT_FILE
echo -e " depends on PORT${1}_INST${2}_MECHANISM_P2P " >>$OUTPUT_FILE
echo -e "\nconfig PORT${portStr}_INST${instStr}_MIN_PDELAY_REQ_INTERVAL" >>$OUTPUT_FILE
echo -e " depends on PORT${portStr}_INST${instStr}_MECHANISM_P2P " >>$OUTPUT_FILE
echo -e " int \"minPDelayRequestInterval\"" >>$OUTPUT_FILE
echo -e " default 0" >>$OUTPUT_FILE
echo -e " range 0 5" >>$OUTPUT_FILE
......@@ -237,81 +242,84 @@ function print_instance_header() {
echo -e " mean time interval between successive Pdelay_Req messages." >>$OUTPUT_FILE
echo -e " The value is the logarithm to the base 2." >>$OUTPUT_FILE
echo -e " The configurable range shall be 0 to 5" >>$OUTPUT_FILE
is_profile_enabled HA
if [[ $? == 1 ]] ; then
echo -e "\nconfig PORT${portStr}_INST${instStr}_L1SYNC_ENABLED" >>$OUTPUT_FILE
echo -e " depends on PORT${portStr}_INST${instStr}_PROFILE_CUSTOM " >>$OUTPUT_FILE
echo -e " bool \"L1SyncBasicPortDS.L1SyncEnabled\"" >>$OUTPUT_FILE
echo -e " default y" >>$OUTPUT_FILE
echo -e " help" >>$OUTPUT_FILE
echo -e " This parameter specifies whether the L1Sync option is enabled on the PTP Port. If" >>$OUTPUT_FILE
echo -e " L1SyncEnabled is TRUE, then the L1Sync message exchange is supported and enabled" >>$OUTPUT_FILE
echo -e "\nconfig PORT${portStr}_INST${instStr}_L1SYNC_INTERVAL" >>$OUTPUT_FILE
echo -e " depends on PORT${portStr}_INST${instStr}_PROFILE_HA || (PORT${portStr}_INST${instStr}_PROFILE_CUSTOM && PORT${portStr}_INST${instStr}_L1SYNC_ENABLED=\"y\") " >>$OUTPUT_FILE
echo -e " int \"L1SyncBasicPortDS.logL1SyncInterval\"" >>$OUTPUT_FILE
echo -e " default 0" >>$OUTPUT_FILE
echo -e " range -4 4" >>$OUTPUT_FILE
echo -e " help" >>$OUTPUT_FILE
echo -e " The L1Sync interval specifies the time interval" >>$OUTPUT_FILE
echo -e " between successive periodic L1_SYNC TLV." >>$OUTPUT_FILE
echo -e " The value is the logarithm to the base 2." >>$OUTPUT_FILE
echo -e " The configurable range shall be -4 to 4" >>$OUTPUT_FILE
echo -e "\nconfig PORT${portStr}_INST${instStr}_L1SYNC_RECEIPT_TIMEOUT" >>$OUTPUT_FILE
echo -e " depends on PORT${portStr}_INST${instStr}_PROFILE_HA || (PORT${portStr}_INST${instStr}_PROFILE_CUSTOM && PORT${portStr}_INST${instStr}_L1SYNC_ENABLED=\"y\") " >>$OUTPUT_FILE
echo -e " int \"L1SyncBasicPortDS.L1SyncReceiptTimeout\"" >>$OUTPUT_FILE
echo -e " default 3" >>$OUTPUT_FILE
echo -e " range 2 10" >>$OUTPUT_FILE
echo -e " help" >>$OUTPUT_FILE
echo -e " The value of L1SyncReceiptTimeout specifies the number of elapsed " >>$OUTPUT_FILE
echo -e " L1SyncIntervals that must pass without reception of the L1_SYNC TLV " >>$OUTPUT_FILE
echo -e " before the L1_SYNC TLV reception timeout occurs." >>$OUTPUT_FILE
echo -e " The value is the logarithm to the base 2." >>$OUTPUT_FILE
echo -e " The configurable range shall be 2 to 10" >>$OUTPUT_FILE
echo -e "\nconfig PORT${1}_INST${2}_L1SYNC_ENABLED" >>$OUTPUT_FILE
echo -e " depends on PORT${1}_INST${2}_PROFILE_CUSTOM " >>$OUTPUT_FILE
echo -e " bool \"L1SyncBasicPortDS.L1SyncEnabled\"" >>$OUTPUT_FILE
echo -e " default y" >>$OUTPUT_FILE
echo -e " help" >>$OUTPUT_FILE
echo -e " This parameter specifies whether the L1Sync option is enabled on the PTP Port. If" >>$OUTPUT_FILE
echo -e " L1SyncEnabled is TRUE, then the L1Sync message exchange is supported and enabled" >>$OUTPUT_FILE
echo -e "\nconfig PORT${1}_INST${2}_L1SYNC_INTERVAL" >>$OUTPUT_FILE
echo -e " depends on PORT${1}_INST${2}_PROFILE_HA || (PORT${1}_INST${2}_PROFILE_CUSTOM && PORT${1}_INST${2}_L1SYNC_ENABLED=\"y\") " >>$OUTPUT_FILE
echo -e " int \"L1SyncBasicPortDS.logL1SyncInterval\"" >>$OUTPUT_FILE
echo -e " default 0" >>$OUTPUT_FILE
echo -e " range -4 4" >>$OUTPUT_FILE
echo -e " help" >>$OUTPUT_FILE
echo -e " The L1Sync interval specifies the time interval" >>$OUTPUT_FILE
echo -e " between successive periodic L1_SYNC TLV." >>$OUTPUT_FILE
echo -e " The value is the logarithm to the base 2." >>$OUTPUT_FILE
echo -e " The configurable range shall be -4 to 4" >>$OUTPUT_FILE
echo -e "\nconfig PORT${1}_INST${2}_L1SYNC_RECEIPT_TIMEOUT" >>$OUTPUT_FILE
echo -e " depends on PORT${1}_INST${2}_PROFILE_HA || (PORT${1}_INST${2}_PROFILE_CUSTOM && PORT${1}_INST${2}_L1SYNC_ENABLED=\"y\") " >>$OUTPUT_FILE
echo -e " int \"L1SyncBasicPortDS.L1SyncReceiptTimeout\"" >>$OUTPUT_FILE
echo -e " default 3" >>$OUTPUT_FILE
echo -e " range 2 10" >>$OUTPUT_FILE
echo -e " help" >>$OUTPUT_FILE
echo -e " The value of L1SyncReceiptTimeout specifies the number of elapsed " >>$OUTPUT_FILE
echo -e " L1SyncIntervals that must pass without reception of the L1_SYNC TLV " >>$OUTPUT_FILE
echo -e " before the L1_SYNC TLV reception timeout occurs." >>$OUTPUT_FILE
echo -e " The value is the logarithm to the base 2." >>$OUTPUT_FILE
echo -e " The configurable range shall be 2 to 10" >>$OUTPUT_FILE
echo -e "\nconfig PORT${portStr}_INST${instStr}_L1SYNC_TX_COHERENCY_IS_REQUIRED" >>$OUTPUT_FILE
echo -e " depends on PORT${portStr}_INST${instStr}_PROFILE_CUSTOM && PORT${portStr}_INST${instStr}_L1SYNC_ENABLED=\"y\" " >>$OUTPUT_FILE
echo -e " bool \"L1SyncBasicPortDS.txCoherencyIsRequired\"" >>$OUTPUT_FILE
echo -e " default y" >>$OUTPUT_FILE
echo -e " help" >>$OUTPUT_FILE
echo -e " The Boolean attribute txCoherentIsRequired specifies the configuration of the L1Sync port and the" >>$OUTPUT_FILE
echo -e " expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is" >>$OUTPUT_FILE
echo -e " required to be a transmit coherent port." >>$OUTPUT_FILE
echo -e "\nconfig PORT${1}_INST${2}_L1SYNC_TX_COHERENCY_IS_REQUIRED" >>$OUTPUT_FILE
echo -e " depends on PORT${1}_INST${2}_PROFILE_CUSTOM && PORT${1}_INST${2}_L1SYNC_ENABLED=\"y\" " >>$OUTPUT_FILE
echo -e " bool \"L1SyncBasicPortDS.txCoherencyIsRequired\"" >>$OUTPUT_FILE
echo -e " default y" >>$OUTPUT_FILE
echo -e " help" >>$OUTPUT_FILE
echo -e " The Boolean attribute txCoherentIsRequired specifies the configuration of the L1Sync port and the" >>$OUTPUT_FILE
echo -e " expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is" >>$OUTPUT_FILE
echo -e " required to be a transmit coherent port." >>$OUTPUT_FILE
echo -e "\nconfig PORT${1}_INST${2}_L1SYNC_RX_COHERENCY_IS_REQUIRED" >>$OUTPUT_FILE
echo -e " depends on PORT${1}_INST${2}_PROFILE_CUSTOM && PORT${1}_INST${2}_L1SYNC_ENABLED=\"y\" " >>$OUTPUT_FILE
echo -e " bool \"L1SyncBasicPortDS.rxCoherencyIsRequired\"" >>$OUTPUT_FILE
echo -e " default y" >>$OUTPUT_FILE
echo -e " help" >>$OUTPUT_FILE
echo -e " The Boolean attribute rxCoherentIsRequired specifies the configuration of the L1Sync port and the" >>$OUTPUT_FILE
echo -e " expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is" >>$OUTPUT_FILE
echo -e " required to be a receive coherent port." >>$OUTPUT_FILE
echo -e "\nconfig PORT${1}_INST${2}_L1SYNC_CONGRUENCY_IS_REQUIRED" >>$OUTPUT_FILE
echo -e " depends on PORT${1}_INST${2}_PROFILE_CUSTOM && PORT${1}_INST${2}_L1SYNC_ENABLED=\"y\" " >>$OUTPUT_FILE
echo -e " bool \"L1SyncBasicPortDS.congruencyIsRequired\"" >>$OUTPUT_FILE
echo -e " default y" >>$OUTPUT_FILE
echo -e " help" >>$OUTPUT_FILE
echo -e " The Boolean attribute congruentIsRequired specifies configuration of the L1Sync port and the expected" >>$OUTPUT_FILE
echo -e " configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is required to" >>$OUTPUT_FILE
echo -e " be a congruent port" >>$OUTPUT_FILE
echo -e "\nconfig PORT${1}_INST${2}_L1SYNC_OPT_PARAMS_ENABLED" >>$OUTPUT_FILE
echo -e " depends on PORT${1}_INST${2}_PROFILE_CUSTOM && PORT${1}_INST${2}_L1SYNC_ENABLED=\"y\" " >>$OUTPUT_FILE
echo -e " bool \"L1SyncBasicPortDS.optParamsEnabled\"" >>$OUTPUT_FILE
echo -e " default n" >>$OUTPUT_FILE
echo -e " help" >>$OUTPUT_FILE
echo -e " The Boolean attribute optParamsEnabled specifies whether the L1Sync port transmitting the L1_SYNC" >>$OUTPUT_FILE
echo -e " TLV extends this TLV with the information about the optional parameters." >>$OUTPUT_FILE
echo -e "\nconfig PORT${1}_INST${2}_L1SYNC_OPT_PARAMS_TS_CORRECTED_TX_ENABLED" >>$OUTPUT_FILE
echo -e " depends on PORT${1}_INST${2}_L1SYNC_OPT_PARAMS_ENABLED=\"y\" " >>$OUTPUT_FILE
echo -e " bool \"L1SyncBasicPortDS.timestampsCorrectedTx\"" >>$OUTPUT_FILE
echo -e " default n" >>$OUTPUT_FILE
echo -e " help" >>$OUTPUT_FILE
echo -e " When L1SyncOptParamsPortDS.timestampsCorrectedTx is TRUE, " >>$OUTPUT_FILE
echo -e " the L1Sync port shall correct the transmitted egress timestamps with " >>$OUTPUT_FILE
echo -e " the known value of the phase offset." >>$OUTPUT_FILE
echo -e "\nconfig PORT${portStr}_INST${instStr}_L1SYNC_RX_COHERENCY_IS_REQUIRED" >>$OUTPUT_FILE
echo -e " depends on PORT${portStr}_INST${instStr}_PROFILE_CUSTOM && PORT${portStr}_INST${instStr}_L1SYNC_ENABLED=\"y\" " >>$OUTPUT_FILE
echo -e " bool \"L1SyncBasicPortDS.rxCoherencyIsRequired\"" >>$OUTPUT_FILE
echo -e " default y" >>$OUTPUT_FILE
echo -e " help" >>$OUTPUT_FILE
echo -e " The Boolean attribute rxCoherentIsRequired specifies the configuration of the L1Sync port and the" >>$OUTPUT_FILE
echo -e " expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is" >>$OUTPUT_FILE
echo -e " required to be a receive coherent port." >>$OUTPUT_FILE
echo -e "\nconfig PORT${portStr}_INST${instStr}_L1SYNC_CONGRUENCY_IS_REQUIRED" >>$OUTPUT_FILE
echo -e " depends on PORT${portStr}_INST${instStr}_PROFILE_CUSTOM && PORT${portStr}_INST${instStr}_L1SYNC_ENABLED=\"y\" " >>$OUTPUT_FILE
echo -e " bool \"L1SyncBasicPortDS.congruencyIsRequired\"" >>$OUTPUT_FILE
echo -e " default y" >>$OUTPUT_FILE
echo -e " help" >>$OUTPUT_FILE
echo -e " The Boolean attribute congruentIsRequired specifies configuration of the L1Sync port and the expected" >>$OUTPUT_FILE
echo -e " configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is required to" >>$OUTPUT_FILE
echo -e " be a congruent port" >>$OUTPUT_FILE
echo -e "\nconfig PORT${portStr}_INST${instStr}_L1SYNC_OPT_PARAMS_ENABLED" >>$OUTPUT_FILE
echo -e " depends on PORT${portStr}_INST${instStr}_PROFILE_CUSTOM && PORT${portStr}_INST${instStr}_L1SYNC_ENABLED=\"y\" " >>$OUTPUT_FILE
echo -e " bool \"L1SyncBasicPortDS.optParamsEnabled\"" >>$OUTPUT_FILE
echo -e " default n" >>$OUTPUT_FILE
echo -e " help" >>$OUTPUT_FILE
echo -e " The Boolean attribute optParamsEnabled specifies whether the L1Sync port transmitting the L1_SYNC" >>$OUTPUT_FILE
echo -e " TLV extends this TLV with the information about the optional parameters." >>$OUTPUT_FILE
echo -e "\nconfig PORT${portStr}_INST${instStr}_L1SYNC_OPT_PARAMS_TS_CORRECTED_TX_ENABLED" >>$OUTPUT_FILE
echo -e " depends on PORT${portStr}_INST${instStr}_L1SYNC_OPT_PARAMS_ENABLED=\"y\" " >>$OUTPUT_FILE
echo -e " bool \"L1SyncBasicPortDS.timestampsCorrectedTx\"" >>$OUTPUT_FILE
echo -e " default n" >>$OUTPUT_FILE
echo -e " help" >>$OUTPUT_FILE
echo -e " When L1SyncOptParamsPortDS.timestampsCorrectedTx is TRUE, " >>$OUTPUT_FILE
echo -e " the L1Sync port shall correct the transmitted egress timestamps with " >>$OUTPUT_FILE
echo -e " the known value of the phase offset." >>$OUTPUT_FILE
fi
}
function print_instance_footer() {
......@@ -320,35 +328,39 @@ function print_instance_footer() {
}
declare -A port_tx=(
[01]=223897 [02]=224037 [03]=224142 [04]=224313 [05]=224455 [06]=224603
[07]=224761 [08]=224898 [09]=225069 [10]=225245 [11]=225463 [12]=225645
[1]=223897 [2]=224037 [3]=224142 [4]=224313 [5]=224455 [6]=224603
[7]=224761 [8]=224898 [9]=225069 [10]=225245 [11]=225463 [12]=225645
[13]=225801 [14]=225983 [15]=226208 [16]=226393 [17]=226594 [18]=226737
)
declare -A port_rx=(
[01]=226273 [02]=226377 [03]=226638 [04]=226471 [05]=227679 [06]=227891
[07]=228055 [08]=228178 [09]=228277 [10]=228435 [11]=228963 [12]=229107
[1]=226273 [2]=226377 [3]=226638 [4]=226471 [5]=227679 [6]=227891
[7]=228055 [8]=228178 [9]=228277 [10]=228435 [11]=228963 [12]=229107
[13]=229225 [14]=229463 [15]=229850 [16]=229907 [17]=230106 [18]=230273
)
# Profile configuration
defaultProfile="WR"
profileList="PTP WR CUSTOM"
profileList="PTP WR"
declare -A profileNames=(
[PTP]="PTP" [HA]="High Accuracy" [WR]="White Rabbit" [CUSTOM]="Custom"
)
# Generation parameters
portCount=18
instCount=1
print_header
for i_port in {01..18}; do
print_port_header ${i_port}
for p in `seq 1 $portCount`; do
print_port_header ${p}
for i_inst in {01..02}; do
print_instance_header ${i_port} ${i_inst}
print_instance_footer ${i_port} ${i_inst}
for i in `seq 1 $instCount`; do
print_instance_header $p $i
print_instance_footer $p $i
done
print_port_footer ${i_port}
print_port_footer $i
done
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment