menu "Port Timing Configuration"
config PTP_OPT_EXT_PORT_CONFIG_ENABLED
	bool "externalPortConfigurationEnabled" 
	default true
	help
	  This option is used by the high accuracy profile to force the port state.
	  For more details please refer to the IEEE 1588-20019 (clause 17.6.2)

menu "PORT 1"

config PORT01_IFACE
	string "Network interface"
	default "wri1"
	help
	  Used to set the physivcal port interface name: "wri[1-18]"

config PORT01_FIBER
	int  "Fiber type"
	default 0
	help
	  Used to set the type of fiber (number referring to the corresponding 
	  FIBERXX_PARAMS)

config PORT01_CONSTANT_ASYMMETRY
	int "asymmetryCorrectionPortDS.constantAsymmetry"
	default 0
	help
	   Used to set the constant delay asymmetry.

choice
	prompt "Number of port instances"
	default PORT01_INSTANCE_COUNT_1
	config PORT01_INSTANCE_COUNT_0
	  bool "0"
	config PORT01_INSTANCE_COUNT_1
	  bool "1"
	config PORT01_INSTANCE_COUNT_2
	  bool "2"
endchoice

menu "Instance 1"
	depends on PORT01_INSTANCE_COUNT_1 ||  PORT01_INSTANCE_COUNT_2  

choice
    prompt "Network protocol"
    default PORT01_INST01_PROTOCOL_RAW
    config PORT01_INST01_PROTOCOL_RAW
        bool "IEEE 802.3"
    config PORT01_INST01_PROTOCOL_UDP_IPV4
        bool "UDP/Ipv4"
endchoice

choice
    prompt "Delay mechanism"
    default PORT01_INST01_MECHANISM_E2E
    config PORT01_INST01_MECHANISM_E2E
        bool "End-to-end"
    config PORT01_INST01_MECHANISM_P2P
        bool "Peer-to-peer"
endchoice

config PORT01_INST01_MONITOR
	bool "SNMP monitoring"
	default y
	help
	  Option to disable or enable triggering errors in SNMP on a port

choice
    prompt "Profile"
    default PORT01_INST01_PROFILE_HA
    config PORT01_INST01_PROFILE_PTP
        bool "PTP"
    config PORT01_INST01_PROFILE_WR
        bool "WhiteRabbit"
    config PORT01_INST01_PROFILE_HA
        bool "HighAccuracy"
    config PORT01_INST01_PROFILE_CUSTOM
        bool "Custom"
endchoice

choice
    prompt "Desired state"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED
    default PORT01_INST01_DESIRADE_STATE_SLAVE if TIME_BC
    default PORT01_INST01_DESIRADE_STATE_MASTER
    config PORT01_INST01_DESIRADE_STATE_MASTER
        bool "Master"
    config PORT01_INST01_DESIRADE_STATE_SLAVE
        bool "Slave"
    config PORT01_INST01_DESIRADE_STATE_PASSIVE
        bool "Passive"
endchoice

config PORT01_INST01_ASYMMETRY_CORRECTION_ENABLE
	depends on PORT01_INST01_PROFILE_HA="n" 
    bool "asymmetryCorrectionPortDS.enable"
    default true
	help
	  When supported, the value TRUE shall indicate that the mechanism of for the calculation
	  of the <delayAsymmetry> for certain media is enabled on the PTP port.

choice
    prompt "BMCA mode"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED!=y
    default PORT01_INST01_BMODE_MASTER_ONLY if TIME_BC
    default PORT01_INST01_BMODE_AUTO
    config PORT01_INST01_BMODE_MASTER_ONLY
        bool "MasterOnly"
    config PORT01_INST01_BMODE_AUTO
        bool "Auto"
endchoice

config PORT01_INST01_EGRESS_LATENCY
    depends on PORT01_INST01_PROFILE_WR!=y
    int "timestampCorrectionPortDS.egressLatency (ps)"
    default 223897
 help
	 Defines the transmission constant delay (ps)

config PORT01_INST01_INGRESS_LATENCY
    depends on PORT01_INST01_PROFILE_WR!=y
    int "timestampCorrectionPortDS.ingressLatency (ps)"
    default 226273
 help
	 Defines the reception constant delay (ps)

config PORT01_INST01_ANNOUNCE_INTERVAL
	int "logAnnounceInterval" 
	default 1
	range 0 4
	help
	  The mean time interval between transmissions of successive
	  Announce messages. The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 4.

config PORT01_INST01_ANNOUNCE_RECEIPT_TIMEOUT
	int "announceReceiptTimeout"
	default 3
	range 2 255
	help
	  The announceReceiptTimeout specifies the number of announceIntervals 
	  that must pass without receipt of an Announce message before the 
	  occurrence of the event ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 255

config PORT01_INST01_SYNC_INTERVAL
	int "logSyncInterval"
	default 0
	range -1 1
	help
	  The mean time interval between transmission of successive
	  Sync messages, i.e., the sync-interval, when transmitted
	  as multicast messages. The value is the logarithm to the base 2.
	  The configurable range shall be -1 to +1

config PORT01_INST01_MIN_DELAY_REQ_INTERVAL
	depends on PORT01_INST01_MECHANISM_E2E  
	int "minDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Delay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT01_INST01_MIN_PDELAY_REQ_INTERVAL
	depends on PORT01_INST01_MECHANISM_P2P  
	int "minPDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minPDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Pdelay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT01_INST01_L1SYNC_ENABLED
	depends on PORT01_INST01_PROFILE_CUSTOM  
	bool "L1SyncBasicPortDS.L1SyncEnabled"
	default y
	help
	  This parameter specifies whether the L1Sync option is enabled on the PTP Port. If
	  L1SyncEnabled is TRUE, then the L1Sync message exchange is supported and enabled

config PORT01_INST01_L1SYNC_INTERVAL
	depends on PORT01_INST01_PROFILE_HA || (PORT01_INST01_PROFILE_CUSTOM &&  PORT01_INST01_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.logL1SyncInterval"
	default 0
	range -4 4
	help
	  The L1Sync interval specifies the time interval
	  between successive periodic L1_SYNC TLV.
	  The value is the logarithm to the base 2.
	  The configurable range shall be -4 to 4

config PORT01_INST01_L1SYNC_RECEIPT_TIMEOUT
	depends on PORT01_INST01_PROFILE_HA || (PORT01_INST01_PROFILE_CUSTOM &&  PORT01_INST01_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.L1SyncReceiptTimeout"
	default 3
	range 2 10
	help
	  The value of L1SyncReceiptTimeout specifies the number of elapsed 
	  L1SyncIntervals that must pass without reception of the L1_SYNC TLV 
	  before the L1_SYNC TLV reception timeout occurs.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 10

config PORT01_INST01_L1SYNC_TX_COHERENCY_IS_REQUIRED
	depends on PORT01_INST01_PROFILE_CUSTOM &&  PORT01_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.txCoherencyIsRequired"
	default y
	help
	   The Boolean attribute txCoherentIsRequired specifies the configuration of the L1Sync port and the
	   expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	   required to be a transmit coherent port.

config PORT01_INST01_L1SYNC_RX_COHERENCY_IS_REQUIRED
	depends on PORT01_INST01_PROFILE_CUSTOM &&  PORT01_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.rxCoherencyIsRequired"
	default y
	help
	  The Boolean attribute rxCoherentIsRequired specifies the configuration of the L1Sync port and the
	  expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	  required to be a receive coherent port.

config PORT01_INST01_L1SYNC_CONGRUENCY_IS_REQUIRED
	depends on PORT01_INST01_PROFILE_CUSTOM &&  PORT01_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.congruencyIsRequired"
	default y
	help
	  The Boolean attribute congruentIsRequired specifies configuration of the L1Sync port and the expected
	  configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is required to
	  be a congruent port

config PORT01_INST01_L1SYNC_OPT_PARAMS_ENABLED
	depends on PORT01_INST01_PROFILE_CUSTOM &&  PORT01_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.optParamsEnabled"
	default n
	help
	  The Boolean attribute optParamsEnabled specifies whether the L1Sync port transmitting the L1_SYNC
	  TLV extends this TLV with the information about the optional parameters.

endmenu

menu "Instance 2"
	depends on PORT01_INSTANCE_COUNT_2  

choice
    prompt "Network protocol"
    default PORT01_INST02_PROTOCOL_RAW
    config PORT01_INST02_PROTOCOL_RAW
        bool "IEEE 802.3"
    config PORT01_INST02_PROTOCOL_UDP_IPV4
        bool "UDP/Ipv4"
endchoice

choice
    prompt "Delay mechanism"
    default PORT01_INST02_MECHANISM_E2E
    config PORT01_INST02_MECHANISM_E2E
        bool "End-to-end"
    config PORT01_INST02_MECHANISM_P2P
        bool "Peer-to-peer"
endchoice

config PORT01_INST02_MONITOR
	bool "SNMP monitoring"
	default y
	help
	  Option to disable or enable triggering errors in SNMP on a port

choice
    prompt "Profile"
    default PORT01_INST02_PROFILE_HA
    config PORT01_INST02_PROFILE_PTP
        bool "PTP"
    config PORT01_INST02_PROFILE_WR
        bool "WhiteRabbit"
    config PORT01_INST02_PROFILE_HA
        bool "HighAccuracy"
    config PORT01_INST02_PROFILE_CUSTOM
        bool "Custom"
endchoice

choice
    prompt "Desired state"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED
    default PORT01_INST02_DESIRADE_STATE_SLAVE if TIME_BC
    default PORT01_INST02_DESIRADE_STATE_MASTER
    config PORT01_INST02_DESIRADE_STATE_MASTER
        bool "Master"
    config PORT01_INST02_DESIRADE_STATE_SLAVE
        bool "Slave"
    config PORT01_INST02_DESIRADE_STATE_PASSIVE
        bool "Passive"
endchoice

config PORT01_INST02_ASYMMETRY_CORRECTION_ENABLE
	depends on PORT01_INST02_PROFILE_HA="n" 
    bool "asymmetryCorrectionPortDS.enable"
    default true
	help
	  When supported, the value TRUE shall indicate that the mechanism of for the calculation
	  of the <delayAsymmetry> for certain media is enabled on the PTP port.

choice
    prompt "BMCA mode"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED!=y
    default PORT01_INST02_BMODE_MASTER_ONLY if TIME_BC
    default PORT01_INST02_BMODE_AUTO
    config PORT01_INST02_BMODE_MASTER_ONLY
        bool "MasterOnly"
    config PORT01_INST02_BMODE_AUTO
        bool "Auto"
endchoice

config PORT01_INST02_EGRESS_LATENCY
    depends on PORT01_INST02_PROFILE_WR!=y
    int "timestampCorrectionPortDS.egressLatency (ps)"
    default 223897
 help
	 Defines the transmission constant delay (ps)

config PORT01_INST02_INGRESS_LATENCY
    depends on PORT01_INST02_PROFILE_WR!=y
    int "timestampCorrectionPortDS.ingressLatency (ps)"
    default 226273
 help
	 Defines the reception constant delay (ps)

config PORT01_INST02_ANNOUNCE_INTERVAL
	int "logAnnounceInterval" 
	default 1
	range 0 4
	help
	  The mean time interval between transmissions of successive
	  Announce messages. The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 4.

config PORT01_INST02_ANNOUNCE_RECEIPT_TIMEOUT
	int "announceReceiptTimeout"
	default 3
	range 2 255
	help
	  The announceReceiptTimeout specifies the number of announceIntervals 
	  that must pass without receipt of an Announce message before the 
	  occurrence of the event ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 255

config PORT01_INST02_SYNC_INTERVAL
	int "logSyncInterval"
	default 0
	range -1 1
	help
	  The mean time interval between transmission of successive
	  Sync messages, i.e., the sync-interval, when transmitted
	  as multicast messages. The value is the logarithm to the base 2.
	  The configurable range shall be -1 to +1

config PORT01_INST02_MIN_DELAY_REQ_INTERVAL
	depends on PORT01_INST02_MECHANISM_E2E  
	int "minDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Delay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT01_INST02_MIN_PDELAY_REQ_INTERVAL
	depends on PORT01_INST02_MECHANISM_P2P  
	int "minPDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minPDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Pdelay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT01_INST02_L1SYNC_ENABLED
	depends on PORT01_INST02_PROFILE_CUSTOM  
	bool "L1SyncBasicPortDS.L1SyncEnabled"
	default y
	help
	  This parameter specifies whether the L1Sync option is enabled on the PTP Port. If
	  L1SyncEnabled is TRUE, then the L1Sync message exchange is supported and enabled

config PORT01_INST02_L1SYNC_INTERVAL
	depends on PORT01_INST02_PROFILE_HA || (PORT01_INST02_PROFILE_CUSTOM &&  PORT01_INST02_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.logL1SyncInterval"
	default 0
	range -4 4
	help
	  The L1Sync interval specifies the time interval
	  between successive periodic L1_SYNC TLV.
	  The value is the logarithm to the base 2.
	  The configurable range shall be -4 to 4

config PORT01_INST02_L1SYNC_RECEIPT_TIMEOUT
	depends on PORT01_INST02_PROFILE_HA || (PORT01_INST02_PROFILE_CUSTOM &&  PORT01_INST02_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.L1SyncReceiptTimeout"
	default 3
	range 2 10
	help
	  The value of L1SyncReceiptTimeout specifies the number of elapsed 
	  L1SyncIntervals that must pass without reception of the L1_SYNC TLV 
	  before the L1_SYNC TLV reception timeout occurs.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 10

config PORT01_INST02_L1SYNC_TX_COHERENCY_IS_REQUIRED
	depends on PORT01_INST02_PROFILE_CUSTOM &&  PORT01_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.txCoherencyIsRequired"
	default y
	help
	   The Boolean attribute txCoherentIsRequired specifies the configuration of the L1Sync port and the
	   expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	   required to be a transmit coherent port.

config PORT01_INST02_L1SYNC_RX_COHERENCY_IS_REQUIRED
	depends on PORT01_INST02_PROFILE_CUSTOM &&  PORT01_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.rxCoherencyIsRequired"
	default y
	help
	  The Boolean attribute rxCoherentIsRequired specifies the configuration of the L1Sync port and the
	  expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	  required to be a receive coherent port.

config PORT01_INST02_L1SYNC_CONGRUENCY_IS_REQUIRED
	depends on PORT01_INST02_PROFILE_CUSTOM &&  PORT01_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.congruencyIsRequired"
	default y
	help
	  The Boolean attribute congruentIsRequired specifies configuration of the L1Sync port and the expected
	  configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is required to
	  be a congruent port

config PORT01_INST02_L1SYNC_OPT_PARAMS_ENABLED
	depends on PORT01_INST02_PROFILE_CUSTOM &&  PORT01_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.optParamsEnabled"
	default n
	help
	  The Boolean attribute optParamsEnabled specifies whether the L1Sync port transmitting the L1_SYNC
	  TLV extends this TLV with the information about the optional parameters.

endmenu

endmenu

menu "PORT 2"

config PORT02_IFACE
	string "Network interface"
	default "wri2"
	help
	  Used to set the physivcal port interface name: "wri[1-18]"

config PORT02_FIBER
	int  "Fiber type"
	default 0
	help
	  Used to set the type of fiber (number referring to the corresponding 
	  FIBERXX_PARAMS)

config PORT02_CONSTANT_ASYMMETRY
	int "asymmetryCorrectionPortDS.constantAsymmetry"
	default 0
	help
	   Used to set the constant delay asymmetry.

choice
	prompt "Number of port instances"
	default PORT02_INSTANCE_COUNT_1
	config PORT02_INSTANCE_COUNT_0
	  bool "0"
	config PORT02_INSTANCE_COUNT_1
	  bool "1"
	config PORT02_INSTANCE_COUNT_2
	  bool "2"
endchoice

menu "Instance 1"
	depends on PORT02_INSTANCE_COUNT_1 ||  PORT02_INSTANCE_COUNT_2  

choice
    prompt "Network protocol"
    default PORT02_INST01_PROTOCOL_RAW
    config PORT02_INST01_PROTOCOL_RAW
        bool "IEEE 802.3"
    config PORT02_INST01_PROTOCOL_UDP_IPV4
        bool "UDP/Ipv4"
endchoice

choice
    prompt "Delay mechanism"
    default PORT02_INST01_MECHANISM_E2E
    config PORT02_INST01_MECHANISM_E2E
        bool "End-to-end"
    config PORT02_INST01_MECHANISM_P2P
        bool "Peer-to-peer"
endchoice

config PORT02_INST01_MONITOR
	bool "SNMP monitoring"
	default y
	help
	  Option to disable or enable triggering errors in SNMP on a port

choice
    prompt "Profile"
    default PORT02_INST01_PROFILE_HA
    config PORT02_INST01_PROFILE_PTP
        bool "PTP"
    config PORT02_INST01_PROFILE_WR
        bool "WhiteRabbit"
    config PORT02_INST01_PROFILE_HA
        bool "HighAccuracy"
    config PORT02_INST01_PROFILE_CUSTOM
        bool "Custom"
endchoice

choice
    prompt "Desired state"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED
    default PORT02_INST01_DESIRADE_STATE_MASTER
    config PORT02_INST01_DESIRADE_STATE_MASTER
        bool "Master"
    config PORT02_INST01_DESIRADE_STATE_SLAVE
        bool "Slave"
    config PORT02_INST01_DESIRADE_STATE_PASSIVE
        bool "Passive"
endchoice

config PORT02_INST01_ASYMMETRY_CORRECTION_ENABLE
	depends on PORT02_INST01_PROFILE_HA="n" 
    bool "asymmetryCorrectionPortDS.enable"
    default true
	help
	  When supported, the value TRUE shall indicate that the mechanism of for the calculation
	  of the <delayAsymmetry> for certain media is enabled on the PTP port.

choice
    prompt "BMCA mode"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED!=y
    default PORT02_INST01_BMODE_MASTER_ONLY if TIME_BC
    default PORT02_INST01_BMODE_AUTO
    config PORT02_INST01_BMODE_MASTER_ONLY
        bool "MasterOnly"
    config PORT02_INST01_BMODE_AUTO
        bool "Auto"
endchoice

config PORT02_INST01_EGRESS_LATENCY
    depends on PORT02_INST01_PROFILE_WR!=y
    int "timestampCorrectionPortDS.egressLatency (ps)"
    default 224037
 help
	 Defines the transmission constant delay (ps)

config PORT02_INST01_INGRESS_LATENCY
    depends on PORT02_INST01_PROFILE_WR!=y
    int "timestampCorrectionPortDS.ingressLatency (ps)"
    default 226377
 help
	 Defines the reception constant delay (ps)

config PORT02_INST01_ANNOUNCE_INTERVAL
	int "logAnnounceInterval" 
	default 1
	range 0 4
	help
	  The mean time interval between transmissions of successive
	  Announce messages. The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 4.

config PORT02_INST01_ANNOUNCE_RECEIPT_TIMEOUT
	int "announceReceiptTimeout"
	default 3
	range 2 255
	help
	  The announceReceiptTimeout specifies the number of announceIntervals 
	  that must pass without receipt of an Announce message before the 
	  occurrence of the event ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 255

config PORT02_INST01_SYNC_INTERVAL
	int "logSyncInterval"
	default 0
	range -1 1
	help
	  The mean time interval between transmission of successive
	  Sync messages, i.e., the sync-interval, when transmitted
	  as multicast messages. The value is the logarithm to the base 2.
	  The configurable range shall be -1 to +1

config PORT02_INST01_MIN_DELAY_REQ_INTERVAL
	depends on PORT02_INST01_MECHANISM_E2E  
	int "minDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Delay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT02_INST01_MIN_PDELAY_REQ_INTERVAL
	depends on PORT02_INST01_MECHANISM_P2P  
	int "minPDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minPDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Pdelay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT02_INST01_L1SYNC_ENABLED
	depends on PORT02_INST01_PROFILE_CUSTOM  
	bool "L1SyncBasicPortDS.L1SyncEnabled"
	default y
	help
	  This parameter specifies whether the L1Sync option is enabled on the PTP Port. If
	  L1SyncEnabled is TRUE, then the L1Sync message exchange is supported and enabled

config PORT02_INST01_L1SYNC_INTERVAL
	depends on PORT02_INST01_PROFILE_HA || (PORT02_INST01_PROFILE_CUSTOM &&  PORT02_INST01_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.logL1SyncInterval"
	default 0
	range -4 4
	help
	  The L1Sync interval specifies the time interval
	  between successive periodic L1_SYNC TLV.
	  The value is the logarithm to the base 2.
	  The configurable range shall be -4 to 4

config PORT02_INST01_L1SYNC_RECEIPT_TIMEOUT
	depends on PORT02_INST01_PROFILE_HA || (PORT02_INST01_PROFILE_CUSTOM &&  PORT02_INST01_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.L1SyncReceiptTimeout"
	default 3
	range 2 10
	help
	  The value of L1SyncReceiptTimeout specifies the number of elapsed 
	  L1SyncIntervals that must pass without reception of the L1_SYNC TLV 
	  before the L1_SYNC TLV reception timeout occurs.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 10

config PORT02_INST01_L1SYNC_TX_COHERENCY_IS_REQUIRED
	depends on PORT02_INST01_PROFILE_CUSTOM &&  PORT02_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.txCoherencyIsRequired"
	default y
	help
	   The Boolean attribute txCoherentIsRequired specifies the configuration of the L1Sync port and the
	   expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	   required to be a transmit coherent port.

config PORT02_INST01_L1SYNC_RX_COHERENCY_IS_REQUIRED
	depends on PORT02_INST01_PROFILE_CUSTOM &&  PORT02_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.rxCoherencyIsRequired"
	default y
	help
	  The Boolean attribute rxCoherentIsRequired specifies the configuration of the L1Sync port and the
	  expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	  required to be a receive coherent port.

config PORT02_INST01_L1SYNC_CONGRUENCY_IS_REQUIRED
	depends on PORT02_INST01_PROFILE_CUSTOM &&  PORT02_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.congruencyIsRequired"
	default y
	help
	  The Boolean attribute congruentIsRequired specifies configuration of the L1Sync port and the expected
	  configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is required to
	  be a congruent port

config PORT02_INST01_L1SYNC_OPT_PARAMS_ENABLED
	depends on PORT02_INST01_PROFILE_CUSTOM &&  PORT02_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.optParamsEnabled"
	default n
	help
	  The Boolean attribute optParamsEnabled specifies whether the L1Sync port transmitting the L1_SYNC
	  TLV extends this TLV with the information about the optional parameters.

endmenu

menu "Instance 2"
	depends on PORT02_INSTANCE_COUNT_2  

choice
    prompt "Network protocol"
    default PORT02_INST02_PROTOCOL_RAW
    config PORT02_INST02_PROTOCOL_RAW
        bool "IEEE 802.3"
    config PORT02_INST02_PROTOCOL_UDP_IPV4
        bool "UDP/Ipv4"
endchoice

choice
    prompt "Delay mechanism"
    default PORT02_INST02_MECHANISM_E2E
    config PORT02_INST02_MECHANISM_E2E
        bool "End-to-end"
    config PORT02_INST02_MECHANISM_P2P
        bool "Peer-to-peer"
endchoice

config PORT02_INST02_MONITOR
	bool "SNMP monitoring"
	default y
	help
	  Option to disable or enable triggering errors in SNMP on a port

choice
    prompt "Profile"
    default PORT02_INST02_PROFILE_HA
    config PORT02_INST02_PROFILE_PTP
        bool "PTP"
    config PORT02_INST02_PROFILE_WR
        bool "WhiteRabbit"
    config PORT02_INST02_PROFILE_HA
        bool "HighAccuracy"
    config PORT02_INST02_PROFILE_CUSTOM
        bool "Custom"
endchoice

choice
    prompt "Desired state"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED
    default PORT02_INST02_DESIRADE_STATE_MASTER
    config PORT02_INST02_DESIRADE_STATE_MASTER
        bool "Master"
    config PORT02_INST02_DESIRADE_STATE_SLAVE
        bool "Slave"
    config PORT02_INST02_DESIRADE_STATE_PASSIVE
        bool "Passive"
endchoice

config PORT02_INST02_ASYMMETRY_CORRECTION_ENABLE
	depends on PORT02_INST02_PROFILE_HA="n" 
    bool "asymmetryCorrectionPortDS.enable"
    default true
	help
	  When supported, the value TRUE shall indicate that the mechanism of for the calculation
	  of the <delayAsymmetry> for certain media is enabled on the PTP port.

choice
    prompt "BMCA mode"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED!=y
    default PORT02_INST02_BMODE_MASTER_ONLY if TIME_BC
    default PORT02_INST02_BMODE_AUTO
    config PORT02_INST02_BMODE_MASTER_ONLY
        bool "MasterOnly"
    config PORT02_INST02_BMODE_AUTO
        bool "Auto"
endchoice

config PORT02_INST02_EGRESS_LATENCY
    depends on PORT02_INST02_PROFILE_WR!=y
    int "timestampCorrectionPortDS.egressLatency (ps)"
    default 224037
 help
	 Defines the transmission constant delay (ps)

config PORT02_INST02_INGRESS_LATENCY
    depends on PORT02_INST02_PROFILE_WR!=y
    int "timestampCorrectionPortDS.ingressLatency (ps)"
    default 226377
 help
	 Defines the reception constant delay (ps)

config PORT02_INST02_ANNOUNCE_INTERVAL
	int "logAnnounceInterval" 
	default 1
	range 0 4
	help
	  The mean time interval between transmissions of successive
	  Announce messages. The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 4.

config PORT02_INST02_ANNOUNCE_RECEIPT_TIMEOUT
	int "announceReceiptTimeout"
	default 3
	range 2 255
	help
	  The announceReceiptTimeout specifies the number of announceIntervals 
	  that must pass without receipt of an Announce message before the 
	  occurrence of the event ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 255

config PORT02_INST02_SYNC_INTERVAL
	int "logSyncInterval"
	default 0
	range -1 1
	help
	  The mean time interval between transmission of successive
	  Sync messages, i.e., the sync-interval, when transmitted
	  as multicast messages. The value is the logarithm to the base 2.
	  The configurable range shall be -1 to +1

config PORT02_INST02_MIN_DELAY_REQ_INTERVAL
	depends on PORT02_INST02_MECHANISM_E2E  
	int "minDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Delay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT02_INST02_MIN_PDELAY_REQ_INTERVAL
	depends on PORT02_INST02_MECHANISM_P2P  
	int "minPDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minPDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Pdelay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT02_INST02_L1SYNC_ENABLED
	depends on PORT02_INST02_PROFILE_CUSTOM  
	bool "L1SyncBasicPortDS.L1SyncEnabled"
	default y
	help
	  This parameter specifies whether the L1Sync option is enabled on the PTP Port. If
	  L1SyncEnabled is TRUE, then the L1Sync message exchange is supported and enabled

config PORT02_INST02_L1SYNC_INTERVAL
	depends on PORT02_INST02_PROFILE_HA || (PORT02_INST02_PROFILE_CUSTOM &&  PORT02_INST02_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.logL1SyncInterval"
	default 0
	range -4 4
	help
	  The L1Sync interval specifies the time interval
	  between successive periodic L1_SYNC TLV.
	  The value is the logarithm to the base 2.
	  The configurable range shall be -4 to 4

config PORT02_INST02_L1SYNC_RECEIPT_TIMEOUT
	depends on PORT02_INST02_PROFILE_HA || (PORT02_INST02_PROFILE_CUSTOM &&  PORT02_INST02_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.L1SyncReceiptTimeout"
	default 3
	range 2 10
	help
	  The value of L1SyncReceiptTimeout specifies the number of elapsed 
	  L1SyncIntervals that must pass without reception of the L1_SYNC TLV 
	  before the L1_SYNC TLV reception timeout occurs.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 10

config PORT02_INST02_L1SYNC_TX_COHERENCY_IS_REQUIRED
	depends on PORT02_INST02_PROFILE_CUSTOM &&  PORT02_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.txCoherencyIsRequired"
	default y
	help
	   The Boolean attribute txCoherentIsRequired specifies the configuration of the L1Sync port and the
	   expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	   required to be a transmit coherent port.

config PORT02_INST02_L1SYNC_RX_COHERENCY_IS_REQUIRED
	depends on PORT02_INST02_PROFILE_CUSTOM &&  PORT02_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.rxCoherencyIsRequired"
	default y
	help
	  The Boolean attribute rxCoherentIsRequired specifies the configuration of the L1Sync port and the
	  expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	  required to be a receive coherent port.

config PORT02_INST02_L1SYNC_CONGRUENCY_IS_REQUIRED
	depends on PORT02_INST02_PROFILE_CUSTOM &&  PORT02_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.congruencyIsRequired"
	default y
	help
	  The Boolean attribute congruentIsRequired specifies configuration of the L1Sync port and the expected
	  configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is required to
	  be a congruent port

config PORT02_INST02_L1SYNC_OPT_PARAMS_ENABLED
	depends on PORT02_INST02_PROFILE_CUSTOM &&  PORT02_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.optParamsEnabled"
	default n
	help
	  The Boolean attribute optParamsEnabled specifies whether the L1Sync port transmitting the L1_SYNC
	  TLV extends this TLV with the information about the optional parameters.

endmenu

endmenu

menu "PORT 3"

config PORT03_IFACE
	string "Network interface"
	default "wri3"
	help
	  Used to set the physivcal port interface name: "wri[1-18]"

config PORT03_FIBER
	int  "Fiber type"
	default 0
	help
	  Used to set the type of fiber (number referring to the corresponding 
	  FIBERXX_PARAMS)

config PORT03_CONSTANT_ASYMMETRY
	int "asymmetryCorrectionPortDS.constantAsymmetry"
	default 0
	help
	   Used to set the constant delay asymmetry.

choice
	prompt "Number of port instances"
	default PORT03_INSTANCE_COUNT_1
	config PORT03_INSTANCE_COUNT_0
	  bool "0"
	config PORT03_INSTANCE_COUNT_1
	  bool "1"
	config PORT03_INSTANCE_COUNT_2
	  bool "2"
endchoice

menu "Instance 1"
	depends on PORT03_INSTANCE_COUNT_1 ||  PORT03_INSTANCE_COUNT_2  

choice
    prompt "Network protocol"
    default PORT03_INST01_PROTOCOL_RAW
    config PORT03_INST01_PROTOCOL_RAW
        bool "IEEE 802.3"
    config PORT03_INST01_PROTOCOL_UDP_IPV4
        bool "UDP/Ipv4"
endchoice

choice
    prompt "Delay mechanism"
    default PORT03_INST01_MECHANISM_E2E
    config PORT03_INST01_MECHANISM_E2E
        bool "End-to-end"
    config PORT03_INST01_MECHANISM_P2P
        bool "Peer-to-peer"
endchoice

config PORT03_INST01_MONITOR
	bool "SNMP monitoring"
	default y
	help
	  Option to disable or enable triggering errors in SNMP on a port

choice
    prompt "Profile"
    default PORT03_INST01_PROFILE_HA
    config PORT03_INST01_PROFILE_PTP
        bool "PTP"
    config PORT03_INST01_PROFILE_WR
        bool "WhiteRabbit"
    config PORT03_INST01_PROFILE_HA
        bool "HighAccuracy"
    config PORT03_INST01_PROFILE_CUSTOM
        bool "Custom"
endchoice

choice
    prompt "Desired state"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED
    default PORT03_INST01_DESIRADE_STATE_MASTER
    config PORT03_INST01_DESIRADE_STATE_MASTER
        bool "Master"
    config PORT03_INST01_DESIRADE_STATE_SLAVE
        bool "Slave"
    config PORT03_INST01_DESIRADE_STATE_PASSIVE
        bool "Passive"
endchoice

config PORT03_INST01_ASYMMETRY_CORRECTION_ENABLE
	depends on PORT03_INST01_PROFILE_HA="n" 
    bool "asymmetryCorrectionPortDS.enable"
    default true
	help
	  When supported, the value TRUE shall indicate that the mechanism of for the calculation
	  of the <delayAsymmetry> for certain media is enabled on the PTP port.

choice
    prompt "BMCA mode"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED!=y
    default PORT03_INST01_BMODE_MASTER_ONLY if TIME_BC
    default PORT03_INST01_BMODE_AUTO
    config PORT03_INST01_BMODE_MASTER_ONLY
        bool "MasterOnly"
    config PORT03_INST01_BMODE_AUTO
        bool "Auto"
endchoice

config PORT03_INST01_EGRESS_LATENCY
    depends on PORT03_INST01_PROFILE_WR!=y
    int "timestampCorrectionPortDS.egressLatency (ps)"
    default 224142
 help
	 Defines the transmission constant delay (ps)

config PORT03_INST01_INGRESS_LATENCY
    depends on PORT03_INST01_PROFILE_WR!=y
    int "timestampCorrectionPortDS.ingressLatency (ps)"
    default 226638
 help
	 Defines the reception constant delay (ps)

config PORT03_INST01_ANNOUNCE_INTERVAL
	int "logAnnounceInterval" 
	default 1
	range 0 4
	help
	  The mean time interval between transmissions of successive
	  Announce messages. The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 4.

config PORT03_INST01_ANNOUNCE_RECEIPT_TIMEOUT
	int "announceReceiptTimeout"
	default 3
	range 2 255
	help
	  The announceReceiptTimeout specifies the number of announceIntervals 
	  that must pass without receipt of an Announce message before the 
	  occurrence of the event ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 255

config PORT03_INST01_SYNC_INTERVAL
	int "logSyncInterval"
	default 0
	range -1 1
	help
	  The mean time interval between transmission of successive
	  Sync messages, i.e., the sync-interval, when transmitted
	  as multicast messages. The value is the logarithm to the base 2.
	  The configurable range shall be -1 to +1

config PORT03_INST01_MIN_DELAY_REQ_INTERVAL
	depends on PORT03_INST01_MECHANISM_E2E  
	int "minDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Delay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT03_INST01_MIN_PDELAY_REQ_INTERVAL
	depends on PORT03_INST01_MECHANISM_P2P  
	int "minPDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minPDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Pdelay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT03_INST01_L1SYNC_ENABLED
	depends on PORT03_INST01_PROFILE_CUSTOM  
	bool "L1SyncBasicPortDS.L1SyncEnabled"
	default y
	help
	  This parameter specifies whether the L1Sync option is enabled on the PTP Port. If
	  L1SyncEnabled is TRUE, then the L1Sync message exchange is supported and enabled

config PORT03_INST01_L1SYNC_INTERVAL
	depends on PORT03_INST01_PROFILE_HA || (PORT03_INST01_PROFILE_CUSTOM &&  PORT03_INST01_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.logL1SyncInterval"
	default 0
	range -4 4
	help
	  The L1Sync interval specifies the time interval
	  between successive periodic L1_SYNC TLV.
	  The value is the logarithm to the base 2.
	  The configurable range shall be -4 to 4

config PORT03_INST01_L1SYNC_RECEIPT_TIMEOUT
	depends on PORT03_INST01_PROFILE_HA || (PORT03_INST01_PROFILE_CUSTOM &&  PORT03_INST01_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.L1SyncReceiptTimeout"
	default 3
	range 2 10
	help
	  The value of L1SyncReceiptTimeout specifies the number of elapsed 
	  L1SyncIntervals that must pass without reception of the L1_SYNC TLV 
	  before the L1_SYNC TLV reception timeout occurs.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 10

config PORT03_INST01_L1SYNC_TX_COHERENCY_IS_REQUIRED
	depends on PORT03_INST01_PROFILE_CUSTOM &&  PORT03_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.txCoherencyIsRequired"
	default y
	help
	   The Boolean attribute txCoherentIsRequired specifies the configuration of the L1Sync port and the
	   expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	   required to be a transmit coherent port.

config PORT03_INST01_L1SYNC_RX_COHERENCY_IS_REQUIRED
	depends on PORT03_INST01_PROFILE_CUSTOM &&  PORT03_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.rxCoherencyIsRequired"
	default y
	help
	  The Boolean attribute rxCoherentIsRequired specifies the configuration of the L1Sync port and the
	  expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	  required to be a receive coherent port.

config PORT03_INST01_L1SYNC_CONGRUENCY_IS_REQUIRED
	depends on PORT03_INST01_PROFILE_CUSTOM &&  PORT03_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.congruencyIsRequired"
	default y
	help
	  The Boolean attribute congruentIsRequired specifies configuration of the L1Sync port and the expected
	  configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is required to
	  be a congruent port

config PORT03_INST01_L1SYNC_OPT_PARAMS_ENABLED
	depends on PORT03_INST01_PROFILE_CUSTOM &&  PORT03_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.optParamsEnabled"
	default n
	help
	  The Boolean attribute optParamsEnabled specifies whether the L1Sync port transmitting the L1_SYNC
	  TLV extends this TLV with the information about the optional parameters.

endmenu

menu "Instance 2"
	depends on PORT03_INSTANCE_COUNT_2  

choice
    prompt "Network protocol"
    default PORT03_INST02_PROTOCOL_RAW
    config PORT03_INST02_PROTOCOL_RAW
        bool "IEEE 802.3"
    config PORT03_INST02_PROTOCOL_UDP_IPV4
        bool "UDP/Ipv4"
endchoice

choice
    prompt "Delay mechanism"
    default PORT03_INST02_MECHANISM_E2E
    config PORT03_INST02_MECHANISM_E2E
        bool "End-to-end"
    config PORT03_INST02_MECHANISM_P2P
        bool "Peer-to-peer"
endchoice

config PORT03_INST02_MONITOR
	bool "SNMP monitoring"
	default y
	help
	  Option to disable or enable triggering errors in SNMP on a port

choice
    prompt "Profile"
    default PORT03_INST02_PROFILE_HA
    config PORT03_INST02_PROFILE_PTP
        bool "PTP"
    config PORT03_INST02_PROFILE_WR
        bool "WhiteRabbit"
    config PORT03_INST02_PROFILE_HA
        bool "HighAccuracy"
    config PORT03_INST02_PROFILE_CUSTOM
        bool "Custom"
endchoice

choice
    prompt "Desired state"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED
    default PORT03_INST02_DESIRADE_STATE_MASTER
    config PORT03_INST02_DESIRADE_STATE_MASTER
        bool "Master"
    config PORT03_INST02_DESIRADE_STATE_SLAVE
        bool "Slave"
    config PORT03_INST02_DESIRADE_STATE_PASSIVE
        bool "Passive"
endchoice

config PORT03_INST02_ASYMMETRY_CORRECTION_ENABLE
	depends on PORT03_INST02_PROFILE_HA="n" 
    bool "asymmetryCorrectionPortDS.enable"
    default true
	help
	  When supported, the value TRUE shall indicate that the mechanism of for the calculation
	  of the <delayAsymmetry> for certain media is enabled on the PTP port.

choice
    prompt "BMCA mode"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED!=y
    default PORT03_INST02_BMODE_MASTER_ONLY if TIME_BC
    default PORT03_INST02_BMODE_AUTO
    config PORT03_INST02_BMODE_MASTER_ONLY
        bool "MasterOnly"
    config PORT03_INST02_BMODE_AUTO
        bool "Auto"
endchoice

config PORT03_INST02_EGRESS_LATENCY
    depends on PORT03_INST02_PROFILE_WR!=y
    int "timestampCorrectionPortDS.egressLatency (ps)"
    default 224142
 help
	 Defines the transmission constant delay (ps)

config PORT03_INST02_INGRESS_LATENCY
    depends on PORT03_INST02_PROFILE_WR!=y
    int "timestampCorrectionPortDS.ingressLatency (ps)"
    default 226638
 help
	 Defines the reception constant delay (ps)

config PORT03_INST02_ANNOUNCE_INTERVAL
	int "logAnnounceInterval" 
	default 1
	range 0 4
	help
	  The mean time interval between transmissions of successive
	  Announce messages. The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 4.

config PORT03_INST02_ANNOUNCE_RECEIPT_TIMEOUT
	int "announceReceiptTimeout"
	default 3
	range 2 255
	help
	  The announceReceiptTimeout specifies the number of announceIntervals 
	  that must pass without receipt of an Announce message before the 
	  occurrence of the event ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 255

config PORT03_INST02_SYNC_INTERVAL
	int "logSyncInterval"
	default 0
	range -1 1
	help
	  The mean time interval between transmission of successive
	  Sync messages, i.e., the sync-interval, when transmitted
	  as multicast messages. The value is the logarithm to the base 2.
	  The configurable range shall be -1 to +1

config PORT03_INST02_MIN_DELAY_REQ_INTERVAL
	depends on PORT03_INST02_MECHANISM_E2E  
	int "minDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Delay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT03_INST02_MIN_PDELAY_REQ_INTERVAL
	depends on PORT03_INST02_MECHANISM_P2P  
	int "minPDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minPDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Pdelay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT03_INST02_L1SYNC_ENABLED
	depends on PORT03_INST02_PROFILE_CUSTOM  
	bool "L1SyncBasicPortDS.L1SyncEnabled"
	default y
	help
	  This parameter specifies whether the L1Sync option is enabled on the PTP Port. If
	  L1SyncEnabled is TRUE, then the L1Sync message exchange is supported and enabled

config PORT03_INST02_L1SYNC_INTERVAL
	depends on PORT03_INST02_PROFILE_HA || (PORT03_INST02_PROFILE_CUSTOM &&  PORT03_INST02_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.logL1SyncInterval"
	default 0
	range -4 4
	help
	  The L1Sync interval specifies the time interval
	  between successive periodic L1_SYNC TLV.
	  The value is the logarithm to the base 2.
	  The configurable range shall be -4 to 4

config PORT03_INST02_L1SYNC_RECEIPT_TIMEOUT
	depends on PORT03_INST02_PROFILE_HA || (PORT03_INST02_PROFILE_CUSTOM &&  PORT03_INST02_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.L1SyncReceiptTimeout"
	default 3
	range 2 10
	help
	  The value of L1SyncReceiptTimeout specifies the number of elapsed 
	  L1SyncIntervals that must pass without reception of the L1_SYNC TLV 
	  before the L1_SYNC TLV reception timeout occurs.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 10

config PORT03_INST02_L1SYNC_TX_COHERENCY_IS_REQUIRED
	depends on PORT03_INST02_PROFILE_CUSTOM &&  PORT03_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.txCoherencyIsRequired"
	default y
	help
	   The Boolean attribute txCoherentIsRequired specifies the configuration of the L1Sync port and the
	   expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	   required to be a transmit coherent port.

config PORT03_INST02_L1SYNC_RX_COHERENCY_IS_REQUIRED
	depends on PORT03_INST02_PROFILE_CUSTOM &&  PORT03_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.rxCoherencyIsRequired"
	default y
	help
	  The Boolean attribute rxCoherentIsRequired specifies the configuration of the L1Sync port and the
	  expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	  required to be a receive coherent port.

config PORT03_INST02_L1SYNC_CONGRUENCY_IS_REQUIRED
	depends on PORT03_INST02_PROFILE_CUSTOM &&  PORT03_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.congruencyIsRequired"
	default y
	help
	  The Boolean attribute congruentIsRequired specifies configuration of the L1Sync port and the expected
	  configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is required to
	  be a congruent port

config PORT03_INST02_L1SYNC_OPT_PARAMS_ENABLED
	depends on PORT03_INST02_PROFILE_CUSTOM &&  PORT03_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.optParamsEnabled"
	default n
	help
	  The Boolean attribute optParamsEnabled specifies whether the L1Sync port transmitting the L1_SYNC
	  TLV extends this TLV with the information about the optional parameters.

endmenu

endmenu

menu "PORT 4"

config PORT04_IFACE
	string "Network interface"
	default "wri4"
	help
	  Used to set the physivcal port interface name: "wri[1-18]"

config PORT04_FIBER
	int  "Fiber type"
	default 0
	help
	  Used to set the type of fiber (number referring to the corresponding 
	  FIBERXX_PARAMS)

config PORT04_CONSTANT_ASYMMETRY
	int "asymmetryCorrectionPortDS.constantAsymmetry"
	default 0
	help
	   Used to set the constant delay asymmetry.

choice
	prompt "Number of port instances"
	default PORT04_INSTANCE_COUNT_1
	config PORT04_INSTANCE_COUNT_0
	  bool "0"
	config PORT04_INSTANCE_COUNT_1
	  bool "1"
	config PORT04_INSTANCE_COUNT_2
	  bool "2"
endchoice

menu "Instance 1"
	depends on PORT04_INSTANCE_COUNT_1 ||  PORT04_INSTANCE_COUNT_2  

choice
    prompt "Network protocol"
    default PORT04_INST01_PROTOCOL_RAW
    config PORT04_INST01_PROTOCOL_RAW
        bool "IEEE 802.3"
    config PORT04_INST01_PROTOCOL_UDP_IPV4
        bool "UDP/Ipv4"
endchoice

choice
    prompt "Delay mechanism"
    default PORT04_INST01_MECHANISM_E2E
    config PORT04_INST01_MECHANISM_E2E
        bool "End-to-end"
    config PORT04_INST01_MECHANISM_P2P
        bool "Peer-to-peer"
endchoice

config PORT04_INST01_MONITOR
	bool "SNMP monitoring"
	default y
	help
	  Option to disable or enable triggering errors in SNMP on a port

choice
    prompt "Profile"
    default PORT04_INST01_PROFILE_HA
    config PORT04_INST01_PROFILE_PTP
        bool "PTP"
    config PORT04_INST01_PROFILE_WR
        bool "WhiteRabbit"
    config PORT04_INST01_PROFILE_HA
        bool "HighAccuracy"
    config PORT04_INST01_PROFILE_CUSTOM
        bool "Custom"
endchoice

choice
    prompt "Desired state"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED
    default PORT04_INST01_DESIRADE_STATE_MASTER
    config PORT04_INST01_DESIRADE_STATE_MASTER
        bool "Master"
    config PORT04_INST01_DESIRADE_STATE_SLAVE
        bool "Slave"
    config PORT04_INST01_DESIRADE_STATE_PASSIVE
        bool "Passive"
endchoice

config PORT04_INST01_ASYMMETRY_CORRECTION_ENABLE
	depends on PORT04_INST01_PROFILE_HA="n" 
    bool "asymmetryCorrectionPortDS.enable"
    default true
	help
	  When supported, the value TRUE shall indicate that the mechanism of for the calculation
	  of the <delayAsymmetry> for certain media is enabled on the PTP port.

choice
    prompt "BMCA mode"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED!=y
    default PORT04_INST01_BMODE_MASTER_ONLY if TIME_BC
    default PORT04_INST01_BMODE_AUTO
    config PORT04_INST01_BMODE_MASTER_ONLY
        bool "MasterOnly"
    config PORT04_INST01_BMODE_AUTO
        bool "Auto"
endchoice

config PORT04_INST01_EGRESS_LATENCY
    depends on PORT04_INST01_PROFILE_WR!=y
    int "timestampCorrectionPortDS.egressLatency (ps)"
    default 224313
 help
	 Defines the transmission constant delay (ps)

config PORT04_INST01_INGRESS_LATENCY
    depends on PORT04_INST01_PROFILE_WR!=y
    int "timestampCorrectionPortDS.ingressLatency (ps)"
    default 226471
 help
	 Defines the reception constant delay (ps)

config PORT04_INST01_ANNOUNCE_INTERVAL
	int "logAnnounceInterval" 
	default 1
	range 0 4
	help
	  The mean time interval between transmissions of successive
	  Announce messages. The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 4.

config PORT04_INST01_ANNOUNCE_RECEIPT_TIMEOUT
	int "announceReceiptTimeout"
	default 3
	range 2 255
	help
	  The announceReceiptTimeout specifies the number of announceIntervals 
	  that must pass without receipt of an Announce message before the 
	  occurrence of the event ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 255

config PORT04_INST01_SYNC_INTERVAL
	int "logSyncInterval"
	default 0
	range -1 1
	help
	  The mean time interval between transmission of successive
	  Sync messages, i.e., the sync-interval, when transmitted
	  as multicast messages. The value is the logarithm to the base 2.
	  The configurable range shall be -1 to +1

config PORT04_INST01_MIN_DELAY_REQ_INTERVAL
	depends on PORT04_INST01_MECHANISM_E2E  
	int "minDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Delay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT04_INST01_MIN_PDELAY_REQ_INTERVAL
	depends on PORT04_INST01_MECHANISM_P2P  
	int "minPDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minPDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Pdelay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT04_INST01_L1SYNC_ENABLED
	depends on PORT04_INST01_PROFILE_CUSTOM  
	bool "L1SyncBasicPortDS.L1SyncEnabled"
	default y
	help
	  This parameter specifies whether the L1Sync option is enabled on the PTP Port. If
	  L1SyncEnabled is TRUE, then the L1Sync message exchange is supported and enabled

config PORT04_INST01_L1SYNC_INTERVAL
	depends on PORT04_INST01_PROFILE_HA || (PORT04_INST01_PROFILE_CUSTOM &&  PORT04_INST01_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.logL1SyncInterval"
	default 0
	range -4 4
	help
	  The L1Sync interval specifies the time interval
	  between successive periodic L1_SYNC TLV.
	  The value is the logarithm to the base 2.
	  The configurable range shall be -4 to 4

config PORT04_INST01_L1SYNC_RECEIPT_TIMEOUT
	depends on PORT04_INST01_PROFILE_HA || (PORT04_INST01_PROFILE_CUSTOM &&  PORT04_INST01_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.L1SyncReceiptTimeout"
	default 3
	range 2 10
	help
	  The value of L1SyncReceiptTimeout specifies the number of elapsed 
	  L1SyncIntervals that must pass without reception of the L1_SYNC TLV 
	  before the L1_SYNC TLV reception timeout occurs.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 10

config PORT04_INST01_L1SYNC_TX_COHERENCY_IS_REQUIRED
	depends on PORT04_INST01_PROFILE_CUSTOM &&  PORT04_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.txCoherencyIsRequired"
	default y
	help
	   The Boolean attribute txCoherentIsRequired specifies the configuration of the L1Sync port and the
	   expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	   required to be a transmit coherent port.

config PORT04_INST01_L1SYNC_RX_COHERENCY_IS_REQUIRED
	depends on PORT04_INST01_PROFILE_CUSTOM &&  PORT04_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.rxCoherencyIsRequired"
	default y
	help
	  The Boolean attribute rxCoherentIsRequired specifies the configuration of the L1Sync port and the
	  expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	  required to be a receive coherent port.

config PORT04_INST01_L1SYNC_CONGRUENCY_IS_REQUIRED
	depends on PORT04_INST01_PROFILE_CUSTOM &&  PORT04_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.congruencyIsRequired"
	default y
	help
	  The Boolean attribute congruentIsRequired specifies configuration of the L1Sync port and the expected
	  configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is required to
	  be a congruent port

config PORT04_INST01_L1SYNC_OPT_PARAMS_ENABLED
	depends on PORT04_INST01_PROFILE_CUSTOM &&  PORT04_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.optParamsEnabled"
	default n
	help
	  The Boolean attribute optParamsEnabled specifies whether the L1Sync port transmitting the L1_SYNC
	  TLV extends this TLV with the information about the optional parameters.

endmenu

menu "Instance 2"
	depends on PORT04_INSTANCE_COUNT_2  

choice
    prompt "Network protocol"
    default PORT04_INST02_PROTOCOL_RAW
    config PORT04_INST02_PROTOCOL_RAW
        bool "IEEE 802.3"
    config PORT04_INST02_PROTOCOL_UDP_IPV4
        bool "UDP/Ipv4"
endchoice

choice
    prompt "Delay mechanism"
    default PORT04_INST02_MECHANISM_E2E
    config PORT04_INST02_MECHANISM_E2E
        bool "End-to-end"
    config PORT04_INST02_MECHANISM_P2P
        bool "Peer-to-peer"
endchoice

config PORT04_INST02_MONITOR
	bool "SNMP monitoring"
	default y
	help
	  Option to disable or enable triggering errors in SNMP on a port

choice
    prompt "Profile"
    default PORT04_INST02_PROFILE_HA
    config PORT04_INST02_PROFILE_PTP
        bool "PTP"
    config PORT04_INST02_PROFILE_WR
        bool "WhiteRabbit"
    config PORT04_INST02_PROFILE_HA
        bool "HighAccuracy"
    config PORT04_INST02_PROFILE_CUSTOM
        bool "Custom"
endchoice

choice
    prompt "Desired state"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED
    default PORT04_INST02_DESIRADE_STATE_MASTER
    config PORT04_INST02_DESIRADE_STATE_MASTER
        bool "Master"
    config PORT04_INST02_DESIRADE_STATE_SLAVE
        bool "Slave"
    config PORT04_INST02_DESIRADE_STATE_PASSIVE
        bool "Passive"
endchoice

config PORT04_INST02_ASYMMETRY_CORRECTION_ENABLE
	depends on PORT04_INST02_PROFILE_HA="n" 
    bool "asymmetryCorrectionPortDS.enable"
    default true
	help
	  When supported, the value TRUE shall indicate that the mechanism of for the calculation
	  of the <delayAsymmetry> for certain media is enabled on the PTP port.

choice
    prompt "BMCA mode"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED!=y
    default PORT04_INST02_BMODE_MASTER_ONLY if TIME_BC
    default PORT04_INST02_BMODE_AUTO
    config PORT04_INST02_BMODE_MASTER_ONLY
        bool "MasterOnly"
    config PORT04_INST02_BMODE_AUTO
        bool "Auto"
endchoice

config PORT04_INST02_EGRESS_LATENCY
    depends on PORT04_INST02_PROFILE_WR!=y
    int "timestampCorrectionPortDS.egressLatency (ps)"
    default 224313
 help
	 Defines the transmission constant delay (ps)

config PORT04_INST02_INGRESS_LATENCY
    depends on PORT04_INST02_PROFILE_WR!=y
    int "timestampCorrectionPortDS.ingressLatency (ps)"
    default 226471
 help
	 Defines the reception constant delay (ps)

config PORT04_INST02_ANNOUNCE_INTERVAL
	int "logAnnounceInterval" 
	default 1
	range 0 4
	help
	  The mean time interval between transmissions of successive
	  Announce messages. The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 4.

config PORT04_INST02_ANNOUNCE_RECEIPT_TIMEOUT
	int "announceReceiptTimeout"
	default 3
	range 2 255
	help
	  The announceReceiptTimeout specifies the number of announceIntervals 
	  that must pass without receipt of an Announce message before the 
	  occurrence of the event ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 255

config PORT04_INST02_SYNC_INTERVAL
	int "logSyncInterval"
	default 0
	range -1 1
	help
	  The mean time interval between transmission of successive
	  Sync messages, i.e., the sync-interval, when transmitted
	  as multicast messages. The value is the logarithm to the base 2.
	  The configurable range shall be -1 to +1

config PORT04_INST02_MIN_DELAY_REQ_INTERVAL
	depends on PORT04_INST02_MECHANISM_E2E  
	int "minDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Delay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT04_INST02_MIN_PDELAY_REQ_INTERVAL
	depends on PORT04_INST02_MECHANISM_P2P  
	int "minPDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minPDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Pdelay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT04_INST02_L1SYNC_ENABLED
	depends on PORT04_INST02_PROFILE_CUSTOM  
	bool "L1SyncBasicPortDS.L1SyncEnabled"
	default y
	help
	  This parameter specifies whether the L1Sync option is enabled on the PTP Port. If
	  L1SyncEnabled is TRUE, then the L1Sync message exchange is supported and enabled

config PORT04_INST02_L1SYNC_INTERVAL
	depends on PORT04_INST02_PROFILE_HA || (PORT04_INST02_PROFILE_CUSTOM &&  PORT04_INST02_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.logL1SyncInterval"
	default 0
	range -4 4
	help
	  The L1Sync interval specifies the time interval
	  between successive periodic L1_SYNC TLV.
	  The value is the logarithm to the base 2.
	  The configurable range shall be -4 to 4

config PORT04_INST02_L1SYNC_RECEIPT_TIMEOUT
	depends on PORT04_INST02_PROFILE_HA || (PORT04_INST02_PROFILE_CUSTOM &&  PORT04_INST02_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.L1SyncReceiptTimeout"
	default 3
	range 2 10
	help
	  The value of L1SyncReceiptTimeout specifies the number of elapsed 
	  L1SyncIntervals that must pass without reception of the L1_SYNC TLV 
	  before the L1_SYNC TLV reception timeout occurs.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 10

config PORT04_INST02_L1SYNC_TX_COHERENCY_IS_REQUIRED
	depends on PORT04_INST02_PROFILE_CUSTOM &&  PORT04_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.txCoherencyIsRequired"
	default y
	help
	   The Boolean attribute txCoherentIsRequired specifies the configuration of the L1Sync port and the
	   expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	   required to be a transmit coherent port.

config PORT04_INST02_L1SYNC_RX_COHERENCY_IS_REQUIRED
	depends on PORT04_INST02_PROFILE_CUSTOM &&  PORT04_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.rxCoherencyIsRequired"
	default y
	help
	  The Boolean attribute rxCoherentIsRequired specifies the configuration of the L1Sync port and the
	  expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	  required to be a receive coherent port.

config PORT04_INST02_L1SYNC_CONGRUENCY_IS_REQUIRED
	depends on PORT04_INST02_PROFILE_CUSTOM &&  PORT04_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.congruencyIsRequired"
	default y
	help
	  The Boolean attribute congruentIsRequired specifies configuration of the L1Sync port and the expected
	  configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is required to
	  be a congruent port

config PORT04_INST02_L1SYNC_OPT_PARAMS_ENABLED
	depends on PORT04_INST02_PROFILE_CUSTOM &&  PORT04_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.optParamsEnabled"
	default n
	help
	  The Boolean attribute optParamsEnabled specifies whether the L1Sync port transmitting the L1_SYNC
	  TLV extends this TLV with the information about the optional parameters.

endmenu

endmenu

menu "PORT 5"

config PORT05_IFACE
	string "Network interface"
	default "wri5"
	help
	  Used to set the physivcal port interface name: "wri[1-18]"

config PORT05_FIBER
	int  "Fiber type"
	default 0
	help
	  Used to set the type of fiber (number referring to the corresponding 
	  FIBERXX_PARAMS)

config PORT05_CONSTANT_ASYMMETRY
	int "asymmetryCorrectionPortDS.constantAsymmetry"
	default 0
	help
	   Used to set the constant delay asymmetry.

choice
	prompt "Number of port instances"
	default PORT05_INSTANCE_COUNT_1
	config PORT05_INSTANCE_COUNT_0
	  bool "0"
	config PORT05_INSTANCE_COUNT_1
	  bool "1"
	config PORT05_INSTANCE_COUNT_2
	  bool "2"
endchoice

menu "Instance 1"
	depends on PORT05_INSTANCE_COUNT_1 ||  PORT05_INSTANCE_COUNT_2  

choice
    prompt "Network protocol"
    default PORT05_INST01_PROTOCOL_RAW
    config PORT05_INST01_PROTOCOL_RAW
        bool "IEEE 802.3"
    config PORT05_INST01_PROTOCOL_UDP_IPV4
        bool "UDP/Ipv4"
endchoice

choice
    prompt "Delay mechanism"
    default PORT05_INST01_MECHANISM_E2E
    config PORT05_INST01_MECHANISM_E2E
        bool "End-to-end"
    config PORT05_INST01_MECHANISM_P2P
        bool "Peer-to-peer"
endchoice

config PORT05_INST01_MONITOR
	bool "SNMP monitoring"
	default y
	help
	  Option to disable or enable triggering errors in SNMP on a port

choice
    prompt "Profile"
    default PORT05_INST01_PROFILE_HA
    config PORT05_INST01_PROFILE_PTP
        bool "PTP"
    config PORT05_INST01_PROFILE_WR
        bool "WhiteRabbit"
    config PORT05_INST01_PROFILE_HA
        bool "HighAccuracy"
    config PORT05_INST01_PROFILE_CUSTOM
        bool "Custom"
endchoice

choice
    prompt "Desired state"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED
    default PORT05_INST01_DESIRADE_STATE_MASTER
    config PORT05_INST01_DESIRADE_STATE_MASTER
        bool "Master"
    config PORT05_INST01_DESIRADE_STATE_SLAVE
        bool "Slave"
    config PORT05_INST01_DESIRADE_STATE_PASSIVE
        bool "Passive"
endchoice

config PORT05_INST01_ASYMMETRY_CORRECTION_ENABLE
	depends on PORT05_INST01_PROFILE_HA="n" 
    bool "asymmetryCorrectionPortDS.enable"
    default true
	help
	  When supported, the value TRUE shall indicate that the mechanism of for the calculation
	  of the <delayAsymmetry> for certain media is enabled on the PTP port.

choice
    prompt "BMCA mode"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED!=y
    default PORT05_INST01_BMODE_MASTER_ONLY if TIME_BC
    default PORT05_INST01_BMODE_AUTO
    config PORT05_INST01_BMODE_MASTER_ONLY
        bool "MasterOnly"
    config PORT05_INST01_BMODE_AUTO
        bool "Auto"
endchoice

config PORT05_INST01_EGRESS_LATENCY
    depends on PORT05_INST01_PROFILE_WR!=y
    int "timestampCorrectionPortDS.egressLatency (ps)"
    default 224455
 help
	 Defines the transmission constant delay (ps)

config PORT05_INST01_INGRESS_LATENCY
    depends on PORT05_INST01_PROFILE_WR!=y
    int "timestampCorrectionPortDS.ingressLatency (ps)"
    default 227679
 help
	 Defines the reception constant delay (ps)

config PORT05_INST01_ANNOUNCE_INTERVAL
	int "logAnnounceInterval" 
	default 1
	range 0 4
	help
	  The mean time interval between transmissions of successive
	  Announce messages. The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 4.

config PORT05_INST01_ANNOUNCE_RECEIPT_TIMEOUT
	int "announceReceiptTimeout"
	default 3
	range 2 255
	help
	  The announceReceiptTimeout specifies the number of announceIntervals 
	  that must pass without receipt of an Announce message before the 
	  occurrence of the event ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 255

config PORT05_INST01_SYNC_INTERVAL
	int "logSyncInterval"
	default 0
	range -1 1
	help
	  The mean time interval between transmission of successive
	  Sync messages, i.e., the sync-interval, when transmitted
	  as multicast messages. The value is the logarithm to the base 2.
	  The configurable range shall be -1 to +1

config PORT05_INST01_MIN_DELAY_REQ_INTERVAL
	depends on PORT05_INST01_MECHANISM_E2E  
	int "minDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Delay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT05_INST01_MIN_PDELAY_REQ_INTERVAL
	depends on PORT05_INST01_MECHANISM_P2P  
	int "minPDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minPDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Pdelay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT05_INST01_L1SYNC_ENABLED
	depends on PORT05_INST01_PROFILE_CUSTOM  
	bool "L1SyncBasicPortDS.L1SyncEnabled"
	default y
	help
	  This parameter specifies whether the L1Sync option is enabled on the PTP Port. If
	  L1SyncEnabled is TRUE, then the L1Sync message exchange is supported and enabled

config PORT05_INST01_L1SYNC_INTERVAL
	depends on PORT05_INST01_PROFILE_HA || (PORT05_INST01_PROFILE_CUSTOM &&  PORT05_INST01_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.logL1SyncInterval"
	default 0
	range -4 4
	help
	  The L1Sync interval specifies the time interval
	  between successive periodic L1_SYNC TLV.
	  The value is the logarithm to the base 2.
	  The configurable range shall be -4 to 4

config PORT05_INST01_L1SYNC_RECEIPT_TIMEOUT
	depends on PORT05_INST01_PROFILE_HA || (PORT05_INST01_PROFILE_CUSTOM &&  PORT05_INST01_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.L1SyncReceiptTimeout"
	default 3
	range 2 10
	help
	  The value of L1SyncReceiptTimeout specifies the number of elapsed 
	  L1SyncIntervals that must pass without reception of the L1_SYNC TLV 
	  before the L1_SYNC TLV reception timeout occurs.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 10

config PORT05_INST01_L1SYNC_TX_COHERENCY_IS_REQUIRED
	depends on PORT05_INST01_PROFILE_CUSTOM &&  PORT05_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.txCoherencyIsRequired"
	default y
	help
	   The Boolean attribute txCoherentIsRequired specifies the configuration of the L1Sync port and the
	   expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	   required to be a transmit coherent port.

config PORT05_INST01_L1SYNC_RX_COHERENCY_IS_REQUIRED
	depends on PORT05_INST01_PROFILE_CUSTOM &&  PORT05_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.rxCoherencyIsRequired"
	default y
	help
	  The Boolean attribute rxCoherentIsRequired specifies the configuration of the L1Sync port and the
	  expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	  required to be a receive coherent port.

config PORT05_INST01_L1SYNC_CONGRUENCY_IS_REQUIRED
	depends on PORT05_INST01_PROFILE_CUSTOM &&  PORT05_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.congruencyIsRequired"
	default y
	help
	  The Boolean attribute congruentIsRequired specifies configuration of the L1Sync port and the expected
	  configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is required to
	  be a congruent port

config PORT05_INST01_L1SYNC_OPT_PARAMS_ENABLED
	depends on PORT05_INST01_PROFILE_CUSTOM &&  PORT05_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.optParamsEnabled"
	default n
	help
	  The Boolean attribute optParamsEnabled specifies whether the L1Sync port transmitting the L1_SYNC
	  TLV extends this TLV with the information about the optional parameters.

endmenu

menu "Instance 2"
	depends on PORT05_INSTANCE_COUNT_2  

choice
    prompt "Network protocol"
    default PORT05_INST02_PROTOCOL_RAW
    config PORT05_INST02_PROTOCOL_RAW
        bool "IEEE 802.3"
    config PORT05_INST02_PROTOCOL_UDP_IPV4
        bool "UDP/Ipv4"
endchoice

choice
    prompt "Delay mechanism"
    default PORT05_INST02_MECHANISM_E2E
    config PORT05_INST02_MECHANISM_E2E
        bool "End-to-end"
    config PORT05_INST02_MECHANISM_P2P
        bool "Peer-to-peer"
endchoice

config PORT05_INST02_MONITOR
	bool "SNMP monitoring"
	default y
	help
	  Option to disable or enable triggering errors in SNMP on a port

choice
    prompt "Profile"
    default PORT05_INST02_PROFILE_HA
    config PORT05_INST02_PROFILE_PTP
        bool "PTP"
    config PORT05_INST02_PROFILE_WR
        bool "WhiteRabbit"
    config PORT05_INST02_PROFILE_HA
        bool "HighAccuracy"
    config PORT05_INST02_PROFILE_CUSTOM
        bool "Custom"
endchoice

choice
    prompt "Desired state"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED
    default PORT05_INST02_DESIRADE_STATE_MASTER
    config PORT05_INST02_DESIRADE_STATE_MASTER
        bool "Master"
    config PORT05_INST02_DESIRADE_STATE_SLAVE
        bool "Slave"
    config PORT05_INST02_DESIRADE_STATE_PASSIVE
        bool "Passive"
endchoice

config PORT05_INST02_ASYMMETRY_CORRECTION_ENABLE
	depends on PORT05_INST02_PROFILE_HA="n" 
    bool "asymmetryCorrectionPortDS.enable"
    default true
	help
	  When supported, the value TRUE shall indicate that the mechanism of for the calculation
	  of the <delayAsymmetry> for certain media is enabled on the PTP port.

choice
    prompt "BMCA mode"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED!=y
    default PORT05_INST02_BMODE_MASTER_ONLY if TIME_BC
    default PORT05_INST02_BMODE_AUTO
    config PORT05_INST02_BMODE_MASTER_ONLY
        bool "MasterOnly"
    config PORT05_INST02_BMODE_AUTO
        bool "Auto"
endchoice

config PORT05_INST02_EGRESS_LATENCY
    depends on PORT05_INST02_PROFILE_WR!=y
    int "timestampCorrectionPortDS.egressLatency (ps)"
    default 224455
 help
	 Defines the transmission constant delay (ps)

config PORT05_INST02_INGRESS_LATENCY
    depends on PORT05_INST02_PROFILE_WR!=y
    int "timestampCorrectionPortDS.ingressLatency (ps)"
    default 227679
 help
	 Defines the reception constant delay (ps)

config PORT05_INST02_ANNOUNCE_INTERVAL
	int "logAnnounceInterval" 
	default 1
	range 0 4
	help
	  The mean time interval between transmissions of successive
	  Announce messages. The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 4.

config PORT05_INST02_ANNOUNCE_RECEIPT_TIMEOUT
	int "announceReceiptTimeout"
	default 3
	range 2 255
	help
	  The announceReceiptTimeout specifies the number of announceIntervals 
	  that must pass without receipt of an Announce message before the 
	  occurrence of the event ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 255

config PORT05_INST02_SYNC_INTERVAL
	int "logSyncInterval"
	default 0
	range -1 1
	help
	  The mean time interval between transmission of successive
	  Sync messages, i.e., the sync-interval, when transmitted
	  as multicast messages. The value is the logarithm to the base 2.
	  The configurable range shall be -1 to +1

config PORT05_INST02_MIN_DELAY_REQ_INTERVAL
	depends on PORT05_INST02_MECHANISM_E2E  
	int "minDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Delay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT05_INST02_MIN_PDELAY_REQ_INTERVAL
	depends on PORT05_INST02_MECHANISM_P2P  
	int "minPDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minPDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Pdelay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT05_INST02_L1SYNC_ENABLED
	depends on PORT05_INST02_PROFILE_CUSTOM  
	bool "L1SyncBasicPortDS.L1SyncEnabled"
	default y
	help
	  This parameter specifies whether the L1Sync option is enabled on the PTP Port. If
	  L1SyncEnabled is TRUE, then the L1Sync message exchange is supported and enabled

config PORT05_INST02_L1SYNC_INTERVAL
	depends on PORT05_INST02_PROFILE_HA || (PORT05_INST02_PROFILE_CUSTOM &&  PORT05_INST02_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.logL1SyncInterval"
	default 0
	range -4 4
	help
	  The L1Sync interval specifies the time interval
	  between successive periodic L1_SYNC TLV.
	  The value is the logarithm to the base 2.
	  The configurable range shall be -4 to 4

config PORT05_INST02_L1SYNC_RECEIPT_TIMEOUT
	depends on PORT05_INST02_PROFILE_HA || (PORT05_INST02_PROFILE_CUSTOM &&  PORT05_INST02_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.L1SyncReceiptTimeout"
	default 3
	range 2 10
	help
	  The value of L1SyncReceiptTimeout specifies the number of elapsed 
	  L1SyncIntervals that must pass without reception of the L1_SYNC TLV 
	  before the L1_SYNC TLV reception timeout occurs.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 10

config PORT05_INST02_L1SYNC_TX_COHERENCY_IS_REQUIRED
	depends on PORT05_INST02_PROFILE_CUSTOM &&  PORT05_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.txCoherencyIsRequired"
	default y
	help
	   The Boolean attribute txCoherentIsRequired specifies the configuration of the L1Sync port and the
	   expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	   required to be a transmit coherent port.

config PORT05_INST02_L1SYNC_RX_COHERENCY_IS_REQUIRED
	depends on PORT05_INST02_PROFILE_CUSTOM &&  PORT05_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.rxCoherencyIsRequired"
	default y
	help
	  The Boolean attribute rxCoherentIsRequired specifies the configuration of the L1Sync port and the
	  expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	  required to be a receive coherent port.

config PORT05_INST02_L1SYNC_CONGRUENCY_IS_REQUIRED
	depends on PORT05_INST02_PROFILE_CUSTOM &&  PORT05_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.congruencyIsRequired"
	default y
	help
	  The Boolean attribute congruentIsRequired specifies configuration of the L1Sync port and the expected
	  configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is required to
	  be a congruent port

config PORT05_INST02_L1SYNC_OPT_PARAMS_ENABLED
	depends on PORT05_INST02_PROFILE_CUSTOM &&  PORT05_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.optParamsEnabled"
	default n
	help
	  The Boolean attribute optParamsEnabled specifies whether the L1Sync port transmitting the L1_SYNC
	  TLV extends this TLV with the information about the optional parameters.

endmenu

endmenu

menu "PORT 6"

config PORT06_IFACE
	string "Network interface"
	default "wri6"
	help
	  Used to set the physivcal port interface name: "wri[1-18]"

config PORT06_FIBER
	int  "Fiber type"
	default 0
	help
	  Used to set the type of fiber (number referring to the corresponding 
	  FIBERXX_PARAMS)

config PORT06_CONSTANT_ASYMMETRY
	int "asymmetryCorrectionPortDS.constantAsymmetry"
	default 0
	help
	   Used to set the constant delay asymmetry.

choice
	prompt "Number of port instances"
	default PORT06_INSTANCE_COUNT_1
	config PORT06_INSTANCE_COUNT_0
	  bool "0"
	config PORT06_INSTANCE_COUNT_1
	  bool "1"
	config PORT06_INSTANCE_COUNT_2
	  bool "2"
endchoice

menu "Instance 1"
	depends on PORT06_INSTANCE_COUNT_1 ||  PORT06_INSTANCE_COUNT_2  

choice
    prompt "Network protocol"
    default PORT06_INST01_PROTOCOL_RAW
    config PORT06_INST01_PROTOCOL_RAW
        bool "IEEE 802.3"
    config PORT06_INST01_PROTOCOL_UDP_IPV4
        bool "UDP/Ipv4"
endchoice

choice
    prompt "Delay mechanism"
    default PORT06_INST01_MECHANISM_E2E
    config PORT06_INST01_MECHANISM_E2E
        bool "End-to-end"
    config PORT06_INST01_MECHANISM_P2P
        bool "Peer-to-peer"
endchoice

config PORT06_INST01_MONITOR
	bool "SNMP monitoring"
	default y
	help
	  Option to disable or enable triggering errors in SNMP on a port

choice
    prompt "Profile"
    default PORT06_INST01_PROFILE_HA
    config PORT06_INST01_PROFILE_PTP
        bool "PTP"
    config PORT06_INST01_PROFILE_WR
        bool "WhiteRabbit"
    config PORT06_INST01_PROFILE_HA
        bool "HighAccuracy"
    config PORT06_INST01_PROFILE_CUSTOM
        bool "Custom"
endchoice

choice
    prompt "Desired state"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED
    default PORT06_INST01_DESIRADE_STATE_MASTER
    config PORT06_INST01_DESIRADE_STATE_MASTER
        bool "Master"
    config PORT06_INST01_DESIRADE_STATE_SLAVE
        bool "Slave"
    config PORT06_INST01_DESIRADE_STATE_PASSIVE
        bool "Passive"
endchoice

config PORT06_INST01_ASYMMETRY_CORRECTION_ENABLE
	depends on PORT06_INST01_PROFILE_HA="n" 
    bool "asymmetryCorrectionPortDS.enable"
    default true
	help
	  When supported, the value TRUE shall indicate that the mechanism of for the calculation
	  of the <delayAsymmetry> for certain media is enabled on the PTP port.

choice
    prompt "BMCA mode"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED!=y
    default PORT06_INST01_BMODE_MASTER_ONLY if TIME_BC
    default PORT06_INST01_BMODE_AUTO
    config PORT06_INST01_BMODE_MASTER_ONLY
        bool "MasterOnly"
    config PORT06_INST01_BMODE_AUTO
        bool "Auto"
endchoice

config PORT06_INST01_EGRESS_LATENCY
    depends on PORT06_INST01_PROFILE_WR!=y
    int "timestampCorrectionPortDS.egressLatency (ps)"
    default 224603
 help
	 Defines the transmission constant delay (ps)

config PORT06_INST01_INGRESS_LATENCY
    depends on PORT06_INST01_PROFILE_WR!=y
    int "timestampCorrectionPortDS.ingressLatency (ps)"
    default 227891
 help
	 Defines the reception constant delay (ps)

config PORT06_INST01_ANNOUNCE_INTERVAL
	int "logAnnounceInterval" 
	default 1
	range 0 4
	help
	  The mean time interval between transmissions of successive
	  Announce messages. The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 4.

config PORT06_INST01_ANNOUNCE_RECEIPT_TIMEOUT
	int "announceReceiptTimeout"
	default 3
	range 2 255
	help
	  The announceReceiptTimeout specifies the number of announceIntervals 
	  that must pass without receipt of an Announce message before the 
	  occurrence of the event ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 255

config PORT06_INST01_SYNC_INTERVAL
	int "logSyncInterval"
	default 0
	range -1 1
	help
	  The mean time interval between transmission of successive
	  Sync messages, i.e., the sync-interval, when transmitted
	  as multicast messages. The value is the logarithm to the base 2.
	  The configurable range shall be -1 to +1

config PORT06_INST01_MIN_DELAY_REQ_INTERVAL
	depends on PORT06_INST01_MECHANISM_E2E  
	int "minDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Delay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT06_INST01_MIN_PDELAY_REQ_INTERVAL
	depends on PORT06_INST01_MECHANISM_P2P  
	int "minPDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minPDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Pdelay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT06_INST01_L1SYNC_ENABLED
	depends on PORT06_INST01_PROFILE_CUSTOM  
	bool "L1SyncBasicPortDS.L1SyncEnabled"
	default y
	help
	  This parameter specifies whether the L1Sync option is enabled on the PTP Port. If
	  L1SyncEnabled is TRUE, then the L1Sync message exchange is supported and enabled

config PORT06_INST01_L1SYNC_INTERVAL
	depends on PORT06_INST01_PROFILE_HA || (PORT06_INST01_PROFILE_CUSTOM &&  PORT06_INST01_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.logL1SyncInterval"
	default 0
	range -4 4
	help
	  The L1Sync interval specifies the time interval
	  between successive periodic L1_SYNC TLV.
	  The value is the logarithm to the base 2.
	  The configurable range shall be -4 to 4

config PORT06_INST01_L1SYNC_RECEIPT_TIMEOUT
	depends on PORT06_INST01_PROFILE_HA || (PORT06_INST01_PROFILE_CUSTOM &&  PORT06_INST01_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.L1SyncReceiptTimeout"
	default 3
	range 2 10
	help
	  The value of L1SyncReceiptTimeout specifies the number of elapsed 
	  L1SyncIntervals that must pass without reception of the L1_SYNC TLV 
	  before the L1_SYNC TLV reception timeout occurs.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 10

config PORT06_INST01_L1SYNC_TX_COHERENCY_IS_REQUIRED
	depends on PORT06_INST01_PROFILE_CUSTOM &&  PORT06_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.txCoherencyIsRequired"
	default y
	help
	   The Boolean attribute txCoherentIsRequired specifies the configuration of the L1Sync port and the
	   expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	   required to be a transmit coherent port.

config PORT06_INST01_L1SYNC_RX_COHERENCY_IS_REQUIRED
	depends on PORT06_INST01_PROFILE_CUSTOM &&  PORT06_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.rxCoherencyIsRequired"
	default y
	help
	  The Boolean attribute rxCoherentIsRequired specifies the configuration of the L1Sync port and the
	  expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	  required to be a receive coherent port.

config PORT06_INST01_L1SYNC_CONGRUENCY_IS_REQUIRED
	depends on PORT06_INST01_PROFILE_CUSTOM &&  PORT06_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.congruencyIsRequired"
	default y
	help
	  The Boolean attribute congruentIsRequired specifies configuration of the L1Sync port and the expected
	  configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is required to
	  be a congruent port

config PORT06_INST01_L1SYNC_OPT_PARAMS_ENABLED
	depends on PORT06_INST01_PROFILE_CUSTOM &&  PORT06_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.optParamsEnabled"
	default n
	help
	  The Boolean attribute optParamsEnabled specifies whether the L1Sync port transmitting the L1_SYNC
	  TLV extends this TLV with the information about the optional parameters.

endmenu

menu "Instance 2"
	depends on PORT06_INSTANCE_COUNT_2  

choice
    prompt "Network protocol"
    default PORT06_INST02_PROTOCOL_RAW
    config PORT06_INST02_PROTOCOL_RAW
        bool "IEEE 802.3"
    config PORT06_INST02_PROTOCOL_UDP_IPV4
        bool "UDP/Ipv4"
endchoice

choice
    prompt "Delay mechanism"
    default PORT06_INST02_MECHANISM_E2E
    config PORT06_INST02_MECHANISM_E2E
        bool "End-to-end"
    config PORT06_INST02_MECHANISM_P2P
        bool "Peer-to-peer"
endchoice

config PORT06_INST02_MONITOR
	bool "SNMP monitoring"
	default y
	help
	  Option to disable or enable triggering errors in SNMP on a port

choice
    prompt "Profile"
    default PORT06_INST02_PROFILE_HA
    config PORT06_INST02_PROFILE_PTP
        bool "PTP"
    config PORT06_INST02_PROFILE_WR
        bool "WhiteRabbit"
    config PORT06_INST02_PROFILE_HA
        bool "HighAccuracy"
    config PORT06_INST02_PROFILE_CUSTOM
        bool "Custom"
endchoice

choice
    prompt "Desired state"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED
    default PORT06_INST02_DESIRADE_STATE_MASTER
    config PORT06_INST02_DESIRADE_STATE_MASTER
        bool "Master"
    config PORT06_INST02_DESIRADE_STATE_SLAVE
        bool "Slave"
    config PORT06_INST02_DESIRADE_STATE_PASSIVE
        bool "Passive"
endchoice

config PORT06_INST02_ASYMMETRY_CORRECTION_ENABLE
	depends on PORT06_INST02_PROFILE_HA="n" 
    bool "asymmetryCorrectionPortDS.enable"
    default true
	help
	  When supported, the value TRUE shall indicate that the mechanism of for the calculation
	  of the <delayAsymmetry> for certain media is enabled on the PTP port.

choice
    prompt "BMCA mode"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED!=y
    default PORT06_INST02_BMODE_MASTER_ONLY if TIME_BC
    default PORT06_INST02_BMODE_AUTO
    config PORT06_INST02_BMODE_MASTER_ONLY
        bool "MasterOnly"
    config PORT06_INST02_BMODE_AUTO
        bool "Auto"
endchoice

config PORT06_INST02_EGRESS_LATENCY
    depends on PORT06_INST02_PROFILE_WR!=y
    int "timestampCorrectionPortDS.egressLatency (ps)"
    default 224603
 help
	 Defines the transmission constant delay (ps)

config PORT06_INST02_INGRESS_LATENCY
    depends on PORT06_INST02_PROFILE_WR!=y
    int "timestampCorrectionPortDS.ingressLatency (ps)"
    default 227891
 help
	 Defines the reception constant delay (ps)

config PORT06_INST02_ANNOUNCE_INTERVAL
	int "logAnnounceInterval" 
	default 1
	range 0 4
	help
	  The mean time interval between transmissions of successive
	  Announce messages. The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 4.

config PORT06_INST02_ANNOUNCE_RECEIPT_TIMEOUT
	int "announceReceiptTimeout"
	default 3
	range 2 255
	help
	  The announceReceiptTimeout specifies the number of announceIntervals 
	  that must pass without receipt of an Announce message before the 
	  occurrence of the event ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 255

config PORT06_INST02_SYNC_INTERVAL
	int "logSyncInterval"
	default 0
	range -1 1
	help
	  The mean time interval between transmission of successive
	  Sync messages, i.e., the sync-interval, when transmitted
	  as multicast messages. The value is the logarithm to the base 2.
	  The configurable range shall be -1 to +1

config PORT06_INST02_MIN_DELAY_REQ_INTERVAL
	depends on PORT06_INST02_MECHANISM_E2E  
	int "minDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Delay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT06_INST02_MIN_PDELAY_REQ_INTERVAL
	depends on PORT06_INST02_MECHANISM_P2P  
	int "minPDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minPDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Pdelay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT06_INST02_L1SYNC_ENABLED
	depends on PORT06_INST02_PROFILE_CUSTOM  
	bool "L1SyncBasicPortDS.L1SyncEnabled"
	default y
	help
	  This parameter specifies whether the L1Sync option is enabled on the PTP Port. If
	  L1SyncEnabled is TRUE, then the L1Sync message exchange is supported and enabled

config PORT06_INST02_L1SYNC_INTERVAL
	depends on PORT06_INST02_PROFILE_HA || (PORT06_INST02_PROFILE_CUSTOM &&  PORT06_INST02_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.logL1SyncInterval"
	default 0
	range -4 4
	help
	  The L1Sync interval specifies the time interval
	  between successive periodic L1_SYNC TLV.
	  The value is the logarithm to the base 2.
	  The configurable range shall be -4 to 4

config PORT06_INST02_L1SYNC_RECEIPT_TIMEOUT
	depends on PORT06_INST02_PROFILE_HA || (PORT06_INST02_PROFILE_CUSTOM &&  PORT06_INST02_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.L1SyncReceiptTimeout"
	default 3
	range 2 10
	help
	  The value of L1SyncReceiptTimeout specifies the number of elapsed 
	  L1SyncIntervals that must pass without reception of the L1_SYNC TLV 
	  before the L1_SYNC TLV reception timeout occurs.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 10

config PORT06_INST02_L1SYNC_TX_COHERENCY_IS_REQUIRED
	depends on PORT06_INST02_PROFILE_CUSTOM &&  PORT06_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.txCoherencyIsRequired"
	default y
	help
	   The Boolean attribute txCoherentIsRequired specifies the configuration of the L1Sync port and the
	   expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	   required to be a transmit coherent port.

config PORT06_INST02_L1SYNC_RX_COHERENCY_IS_REQUIRED
	depends on PORT06_INST02_PROFILE_CUSTOM &&  PORT06_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.rxCoherencyIsRequired"
	default y
	help
	  The Boolean attribute rxCoherentIsRequired specifies the configuration of the L1Sync port and the
	  expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	  required to be a receive coherent port.

config PORT06_INST02_L1SYNC_CONGRUENCY_IS_REQUIRED
	depends on PORT06_INST02_PROFILE_CUSTOM &&  PORT06_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.congruencyIsRequired"
	default y
	help
	  The Boolean attribute congruentIsRequired specifies configuration of the L1Sync port and the expected
	  configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is required to
	  be a congruent port

config PORT06_INST02_L1SYNC_OPT_PARAMS_ENABLED
	depends on PORT06_INST02_PROFILE_CUSTOM &&  PORT06_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.optParamsEnabled"
	default n
	help
	  The Boolean attribute optParamsEnabled specifies whether the L1Sync port transmitting the L1_SYNC
	  TLV extends this TLV with the information about the optional parameters.

endmenu

endmenu

menu "PORT 7"

config PORT07_IFACE
	string "Network interface"
	default "wri7"
	help
	  Used to set the physivcal port interface name: "wri[1-18]"

config PORT07_FIBER
	int  "Fiber type"
	default 0
	help
	  Used to set the type of fiber (number referring to the corresponding 
	  FIBERXX_PARAMS)

config PORT07_CONSTANT_ASYMMETRY
	int "asymmetryCorrectionPortDS.constantAsymmetry"
	default 0
	help
	   Used to set the constant delay asymmetry.

choice
	prompt "Number of port instances"
	default PORT07_INSTANCE_COUNT_1
	config PORT07_INSTANCE_COUNT_0
	  bool "0"
	config PORT07_INSTANCE_COUNT_1
	  bool "1"
	config PORT07_INSTANCE_COUNT_2
	  bool "2"
endchoice

menu "Instance 1"
	depends on PORT07_INSTANCE_COUNT_1 ||  PORT07_INSTANCE_COUNT_2  

choice
    prompt "Network protocol"
    default PORT07_INST01_PROTOCOL_RAW
    config PORT07_INST01_PROTOCOL_RAW
        bool "IEEE 802.3"
    config PORT07_INST01_PROTOCOL_UDP_IPV4
        bool "UDP/Ipv4"
endchoice

choice
    prompt "Delay mechanism"
    default PORT07_INST01_MECHANISM_E2E
    config PORT07_INST01_MECHANISM_E2E
        bool "End-to-end"
    config PORT07_INST01_MECHANISM_P2P
        bool "Peer-to-peer"
endchoice

config PORT07_INST01_MONITOR
	bool "SNMP monitoring"
	default y
	help
	  Option to disable or enable triggering errors in SNMP on a port

choice
    prompt "Profile"
    default PORT07_INST01_PROFILE_HA
    config PORT07_INST01_PROFILE_PTP
        bool "PTP"
    config PORT07_INST01_PROFILE_WR
        bool "WhiteRabbit"
    config PORT07_INST01_PROFILE_HA
        bool "HighAccuracy"
    config PORT07_INST01_PROFILE_CUSTOM
        bool "Custom"
endchoice

choice
    prompt "Desired state"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED
    default PORT07_INST01_DESIRADE_STATE_MASTER
    config PORT07_INST01_DESIRADE_STATE_MASTER
        bool "Master"
    config PORT07_INST01_DESIRADE_STATE_SLAVE
        bool "Slave"
    config PORT07_INST01_DESIRADE_STATE_PASSIVE
        bool "Passive"
endchoice

config PORT07_INST01_ASYMMETRY_CORRECTION_ENABLE
	depends on PORT07_INST01_PROFILE_HA="n" 
    bool "asymmetryCorrectionPortDS.enable"
    default true
	help
	  When supported, the value TRUE shall indicate that the mechanism of for the calculation
	  of the <delayAsymmetry> for certain media is enabled on the PTP port.

choice
    prompt "BMCA mode"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED!=y
    default PORT07_INST01_BMODE_MASTER_ONLY if TIME_BC
    default PORT07_INST01_BMODE_AUTO
    config PORT07_INST01_BMODE_MASTER_ONLY
        bool "MasterOnly"
    config PORT07_INST01_BMODE_AUTO
        bool "Auto"
endchoice

config PORT07_INST01_EGRESS_LATENCY
    depends on PORT07_INST01_PROFILE_WR!=y
    int "timestampCorrectionPortDS.egressLatency (ps)"
    default 224761
 help
	 Defines the transmission constant delay (ps)

config PORT07_INST01_INGRESS_LATENCY
    depends on PORT07_INST01_PROFILE_WR!=y
    int "timestampCorrectionPortDS.ingressLatency (ps)"
    default 228055
 help
	 Defines the reception constant delay (ps)

config PORT07_INST01_ANNOUNCE_INTERVAL
	int "logAnnounceInterval" 
	default 1
	range 0 4
	help
	  The mean time interval between transmissions of successive
	  Announce messages. The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 4.

config PORT07_INST01_ANNOUNCE_RECEIPT_TIMEOUT
	int "announceReceiptTimeout"
	default 3
	range 2 255
	help
	  The announceReceiptTimeout specifies the number of announceIntervals 
	  that must pass without receipt of an Announce message before the 
	  occurrence of the event ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 255

config PORT07_INST01_SYNC_INTERVAL
	int "logSyncInterval"
	default 0
	range -1 1
	help
	  The mean time interval between transmission of successive
	  Sync messages, i.e., the sync-interval, when transmitted
	  as multicast messages. The value is the logarithm to the base 2.
	  The configurable range shall be -1 to +1

config PORT07_INST01_MIN_DELAY_REQ_INTERVAL
	depends on PORT07_INST01_MECHANISM_E2E  
	int "minDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Delay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT07_INST01_MIN_PDELAY_REQ_INTERVAL
	depends on PORT07_INST01_MECHANISM_P2P  
	int "minPDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minPDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Pdelay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT07_INST01_L1SYNC_ENABLED
	depends on PORT07_INST01_PROFILE_CUSTOM  
	bool "L1SyncBasicPortDS.L1SyncEnabled"
	default y
	help
	  This parameter specifies whether the L1Sync option is enabled on the PTP Port. If
	  L1SyncEnabled is TRUE, then the L1Sync message exchange is supported and enabled

config PORT07_INST01_L1SYNC_INTERVAL
	depends on PORT07_INST01_PROFILE_HA || (PORT07_INST01_PROFILE_CUSTOM &&  PORT07_INST01_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.logL1SyncInterval"
	default 0
	range -4 4
	help
	  The L1Sync interval specifies the time interval
	  between successive periodic L1_SYNC TLV.
	  The value is the logarithm to the base 2.
	  The configurable range shall be -4 to 4

config PORT07_INST01_L1SYNC_RECEIPT_TIMEOUT
	depends on PORT07_INST01_PROFILE_HA || (PORT07_INST01_PROFILE_CUSTOM &&  PORT07_INST01_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.L1SyncReceiptTimeout"
	default 3
	range 2 10
	help
	  The value of L1SyncReceiptTimeout specifies the number of elapsed 
	  L1SyncIntervals that must pass without reception of the L1_SYNC TLV 
	  before the L1_SYNC TLV reception timeout occurs.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 10

config PORT07_INST01_L1SYNC_TX_COHERENCY_IS_REQUIRED
	depends on PORT07_INST01_PROFILE_CUSTOM &&  PORT07_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.txCoherencyIsRequired"
	default y
	help
	   The Boolean attribute txCoherentIsRequired specifies the configuration of the L1Sync port and the
	   expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	   required to be a transmit coherent port.

config PORT07_INST01_L1SYNC_RX_COHERENCY_IS_REQUIRED
	depends on PORT07_INST01_PROFILE_CUSTOM &&  PORT07_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.rxCoherencyIsRequired"
	default y
	help
	  The Boolean attribute rxCoherentIsRequired specifies the configuration of the L1Sync port and the
	  expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	  required to be a receive coherent port.

config PORT07_INST01_L1SYNC_CONGRUENCY_IS_REQUIRED
	depends on PORT07_INST01_PROFILE_CUSTOM &&  PORT07_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.congruencyIsRequired"
	default y
	help
	  The Boolean attribute congruentIsRequired specifies configuration of the L1Sync port and the expected
	  configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is required to
	  be a congruent port

config PORT07_INST01_L1SYNC_OPT_PARAMS_ENABLED
	depends on PORT07_INST01_PROFILE_CUSTOM &&  PORT07_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.optParamsEnabled"
	default n
	help
	  The Boolean attribute optParamsEnabled specifies whether the L1Sync port transmitting the L1_SYNC
	  TLV extends this TLV with the information about the optional parameters.

endmenu

menu "Instance 2"
	depends on PORT07_INSTANCE_COUNT_2  

choice
    prompt "Network protocol"
    default PORT07_INST02_PROTOCOL_RAW
    config PORT07_INST02_PROTOCOL_RAW
        bool "IEEE 802.3"
    config PORT07_INST02_PROTOCOL_UDP_IPV4
        bool "UDP/Ipv4"
endchoice

choice
    prompt "Delay mechanism"
    default PORT07_INST02_MECHANISM_E2E
    config PORT07_INST02_MECHANISM_E2E
        bool "End-to-end"
    config PORT07_INST02_MECHANISM_P2P
        bool "Peer-to-peer"
endchoice

config PORT07_INST02_MONITOR
	bool "SNMP monitoring"
	default y
	help
	  Option to disable or enable triggering errors in SNMP on a port

choice
    prompt "Profile"
    default PORT07_INST02_PROFILE_HA
    config PORT07_INST02_PROFILE_PTP
        bool "PTP"
    config PORT07_INST02_PROFILE_WR
        bool "WhiteRabbit"
    config PORT07_INST02_PROFILE_HA
        bool "HighAccuracy"
    config PORT07_INST02_PROFILE_CUSTOM
        bool "Custom"
endchoice

choice
    prompt "Desired state"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED
    default PORT07_INST02_DESIRADE_STATE_MASTER
    config PORT07_INST02_DESIRADE_STATE_MASTER
        bool "Master"
    config PORT07_INST02_DESIRADE_STATE_SLAVE
        bool "Slave"
    config PORT07_INST02_DESIRADE_STATE_PASSIVE
        bool "Passive"
endchoice

config PORT07_INST02_ASYMMETRY_CORRECTION_ENABLE
	depends on PORT07_INST02_PROFILE_HA="n" 
    bool "asymmetryCorrectionPortDS.enable"
    default true
	help
	  When supported, the value TRUE shall indicate that the mechanism of for the calculation
	  of the <delayAsymmetry> for certain media is enabled on the PTP port.

choice
    prompt "BMCA mode"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED!=y
    default PORT07_INST02_BMODE_MASTER_ONLY if TIME_BC
    default PORT07_INST02_BMODE_AUTO
    config PORT07_INST02_BMODE_MASTER_ONLY
        bool "MasterOnly"
    config PORT07_INST02_BMODE_AUTO
        bool "Auto"
endchoice

config PORT07_INST02_EGRESS_LATENCY
    depends on PORT07_INST02_PROFILE_WR!=y
    int "timestampCorrectionPortDS.egressLatency (ps)"
    default 224761
 help
	 Defines the transmission constant delay (ps)

config PORT07_INST02_INGRESS_LATENCY
    depends on PORT07_INST02_PROFILE_WR!=y
    int "timestampCorrectionPortDS.ingressLatency (ps)"
    default 228055
 help
	 Defines the reception constant delay (ps)

config PORT07_INST02_ANNOUNCE_INTERVAL
	int "logAnnounceInterval" 
	default 1
	range 0 4
	help
	  The mean time interval between transmissions of successive
	  Announce messages. The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 4.

config PORT07_INST02_ANNOUNCE_RECEIPT_TIMEOUT
	int "announceReceiptTimeout"
	default 3
	range 2 255
	help
	  The announceReceiptTimeout specifies the number of announceIntervals 
	  that must pass without receipt of an Announce message before the 
	  occurrence of the event ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 255

config PORT07_INST02_SYNC_INTERVAL
	int "logSyncInterval"
	default 0
	range -1 1
	help
	  The mean time interval between transmission of successive
	  Sync messages, i.e., the sync-interval, when transmitted
	  as multicast messages. The value is the logarithm to the base 2.
	  The configurable range shall be -1 to +1

config PORT07_INST02_MIN_DELAY_REQ_INTERVAL
	depends on PORT07_INST02_MECHANISM_E2E  
	int "minDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Delay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT07_INST02_MIN_PDELAY_REQ_INTERVAL
	depends on PORT07_INST02_MECHANISM_P2P  
	int "minPDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minPDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Pdelay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT07_INST02_L1SYNC_ENABLED
	depends on PORT07_INST02_PROFILE_CUSTOM  
	bool "L1SyncBasicPortDS.L1SyncEnabled"
	default y
	help
	  This parameter specifies whether the L1Sync option is enabled on the PTP Port. If
	  L1SyncEnabled is TRUE, then the L1Sync message exchange is supported and enabled

config PORT07_INST02_L1SYNC_INTERVAL
	depends on PORT07_INST02_PROFILE_HA || (PORT07_INST02_PROFILE_CUSTOM &&  PORT07_INST02_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.logL1SyncInterval"
	default 0
	range -4 4
	help
	  The L1Sync interval specifies the time interval
	  between successive periodic L1_SYNC TLV.
	  The value is the logarithm to the base 2.
	  The configurable range shall be -4 to 4

config PORT07_INST02_L1SYNC_RECEIPT_TIMEOUT
	depends on PORT07_INST02_PROFILE_HA || (PORT07_INST02_PROFILE_CUSTOM &&  PORT07_INST02_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.L1SyncReceiptTimeout"
	default 3
	range 2 10
	help
	  The value of L1SyncReceiptTimeout specifies the number of elapsed 
	  L1SyncIntervals that must pass without reception of the L1_SYNC TLV 
	  before the L1_SYNC TLV reception timeout occurs.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 10

config PORT07_INST02_L1SYNC_TX_COHERENCY_IS_REQUIRED
	depends on PORT07_INST02_PROFILE_CUSTOM &&  PORT07_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.txCoherencyIsRequired"
	default y
	help
	   The Boolean attribute txCoherentIsRequired specifies the configuration of the L1Sync port and the
	   expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	   required to be a transmit coherent port.

config PORT07_INST02_L1SYNC_RX_COHERENCY_IS_REQUIRED
	depends on PORT07_INST02_PROFILE_CUSTOM &&  PORT07_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.rxCoherencyIsRequired"
	default y
	help
	  The Boolean attribute rxCoherentIsRequired specifies the configuration of the L1Sync port and the
	  expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	  required to be a receive coherent port.

config PORT07_INST02_L1SYNC_CONGRUENCY_IS_REQUIRED
	depends on PORT07_INST02_PROFILE_CUSTOM &&  PORT07_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.congruencyIsRequired"
	default y
	help
	  The Boolean attribute congruentIsRequired specifies configuration of the L1Sync port and the expected
	  configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is required to
	  be a congruent port

config PORT07_INST02_L1SYNC_OPT_PARAMS_ENABLED
	depends on PORT07_INST02_PROFILE_CUSTOM &&  PORT07_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.optParamsEnabled"
	default n
	help
	  The Boolean attribute optParamsEnabled specifies whether the L1Sync port transmitting the L1_SYNC
	  TLV extends this TLV with the information about the optional parameters.

endmenu

endmenu

menu "PORT 8"

config PORT08_IFACE
	string "Network interface"
	default "wri8"
	help
	  Used to set the physivcal port interface name: "wri[1-18]"

config PORT08_FIBER
	int  "Fiber type"
	default 0
	help
	  Used to set the type of fiber (number referring to the corresponding 
	  FIBERXX_PARAMS)

config PORT08_CONSTANT_ASYMMETRY
	int "asymmetryCorrectionPortDS.constantAsymmetry"
	default 0
	help
	   Used to set the constant delay asymmetry.

choice
	prompt "Number of port instances"
	default PORT08_INSTANCE_COUNT_1
	config PORT08_INSTANCE_COUNT_0
	  bool "0"
	config PORT08_INSTANCE_COUNT_1
	  bool "1"
	config PORT08_INSTANCE_COUNT_2
	  bool "2"
endchoice

menu "Instance 1"
	depends on PORT08_INSTANCE_COUNT_1 ||  PORT08_INSTANCE_COUNT_2  

choice
    prompt "Network protocol"
    default PORT08_INST01_PROTOCOL_RAW
    config PORT08_INST01_PROTOCOL_RAW
        bool "IEEE 802.3"
    config PORT08_INST01_PROTOCOL_UDP_IPV4
        bool "UDP/Ipv4"
endchoice

choice
    prompt "Delay mechanism"
    default PORT08_INST01_MECHANISM_E2E
    config PORT08_INST01_MECHANISM_E2E
        bool "End-to-end"
    config PORT08_INST01_MECHANISM_P2P
        bool "Peer-to-peer"
endchoice

config PORT08_INST01_MONITOR
	bool "SNMP monitoring"
	default y
	help
	  Option to disable or enable triggering errors in SNMP on a port

choice
    prompt "Profile"
    default PORT08_INST01_PROFILE_HA
    config PORT08_INST01_PROFILE_PTP
        bool "PTP"
    config PORT08_INST01_PROFILE_WR
        bool "WhiteRabbit"
    config PORT08_INST01_PROFILE_HA
        bool "HighAccuracy"
    config PORT08_INST01_PROFILE_CUSTOM
        bool "Custom"
endchoice

choice
    prompt "Desired state"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED
    default PORT08_INST01_DESIRADE_STATE_MASTER
    config PORT08_INST01_DESIRADE_STATE_MASTER
        bool "Master"
    config PORT08_INST01_DESIRADE_STATE_SLAVE
        bool "Slave"
    config PORT08_INST01_DESIRADE_STATE_PASSIVE
        bool "Passive"
endchoice

config PORT08_INST01_ASYMMETRY_CORRECTION_ENABLE
	depends on PORT08_INST01_PROFILE_HA="n" 
    bool "asymmetryCorrectionPortDS.enable"
    default true
	help
	  When supported, the value TRUE shall indicate that the mechanism of for the calculation
	  of the <delayAsymmetry> for certain media is enabled on the PTP port.

choice
    prompt "BMCA mode"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED!=y
    default PORT08_INST01_BMODE_MASTER_ONLY if TIME_BC
    default PORT08_INST01_BMODE_AUTO
    config PORT08_INST01_BMODE_MASTER_ONLY
        bool "MasterOnly"
    config PORT08_INST01_BMODE_AUTO
        bool "Auto"
endchoice

config PORT08_INST01_EGRESS_LATENCY
    depends on PORT08_INST01_PROFILE_WR!=y
    int "timestampCorrectionPortDS.egressLatency (ps)"
    default 224898
 help
	 Defines the transmission constant delay (ps)

config PORT08_INST01_INGRESS_LATENCY
    depends on PORT08_INST01_PROFILE_WR!=y
    int "timestampCorrectionPortDS.ingressLatency (ps)"
    default 228178
 help
	 Defines the reception constant delay (ps)

config PORT08_INST01_ANNOUNCE_INTERVAL
	int "logAnnounceInterval" 
	default 1
	range 0 4
	help
	  The mean time interval between transmissions of successive
	  Announce messages. The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 4.

config PORT08_INST01_ANNOUNCE_RECEIPT_TIMEOUT
	int "announceReceiptTimeout"
	default 3
	range 2 255
	help
	  The announceReceiptTimeout specifies the number of announceIntervals 
	  that must pass without receipt of an Announce message before the 
	  occurrence of the event ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 255

config PORT08_INST01_SYNC_INTERVAL
	int "logSyncInterval"
	default 0
	range -1 1
	help
	  The mean time interval between transmission of successive
	  Sync messages, i.e., the sync-interval, when transmitted
	  as multicast messages. The value is the logarithm to the base 2.
	  The configurable range shall be -1 to +1

config PORT08_INST01_MIN_DELAY_REQ_INTERVAL
	depends on PORT08_INST01_MECHANISM_E2E  
	int "minDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Delay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT08_INST01_MIN_PDELAY_REQ_INTERVAL
	depends on PORT08_INST01_MECHANISM_P2P  
	int "minPDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minPDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Pdelay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT08_INST01_L1SYNC_ENABLED
	depends on PORT08_INST01_PROFILE_CUSTOM  
	bool "L1SyncBasicPortDS.L1SyncEnabled"
	default y
	help
	  This parameter specifies whether the L1Sync option is enabled on the PTP Port. If
	  L1SyncEnabled is TRUE, then the L1Sync message exchange is supported and enabled

config PORT08_INST01_L1SYNC_INTERVAL
	depends on PORT08_INST01_PROFILE_HA || (PORT08_INST01_PROFILE_CUSTOM &&  PORT08_INST01_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.logL1SyncInterval"
	default 0
	range -4 4
	help
	  The L1Sync interval specifies the time interval
	  between successive periodic L1_SYNC TLV.
	  The value is the logarithm to the base 2.
	  The configurable range shall be -4 to 4

config PORT08_INST01_L1SYNC_RECEIPT_TIMEOUT
	depends on PORT08_INST01_PROFILE_HA || (PORT08_INST01_PROFILE_CUSTOM &&  PORT08_INST01_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.L1SyncReceiptTimeout"
	default 3
	range 2 10
	help
	  The value of L1SyncReceiptTimeout specifies the number of elapsed 
	  L1SyncIntervals that must pass without reception of the L1_SYNC TLV 
	  before the L1_SYNC TLV reception timeout occurs.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 10

config PORT08_INST01_L1SYNC_TX_COHERENCY_IS_REQUIRED
	depends on PORT08_INST01_PROFILE_CUSTOM &&  PORT08_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.txCoherencyIsRequired"
	default y
	help
	   The Boolean attribute txCoherentIsRequired specifies the configuration of the L1Sync port and the
	   expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	   required to be a transmit coherent port.

config PORT08_INST01_L1SYNC_RX_COHERENCY_IS_REQUIRED
	depends on PORT08_INST01_PROFILE_CUSTOM &&  PORT08_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.rxCoherencyIsRequired"
	default y
	help
	  The Boolean attribute rxCoherentIsRequired specifies the configuration of the L1Sync port and the
	  expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	  required to be a receive coherent port.

config PORT08_INST01_L1SYNC_CONGRUENCY_IS_REQUIRED
	depends on PORT08_INST01_PROFILE_CUSTOM &&  PORT08_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.congruencyIsRequired"
	default y
	help
	  The Boolean attribute congruentIsRequired specifies configuration of the L1Sync port and the expected
	  configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is required to
	  be a congruent port

config PORT08_INST01_L1SYNC_OPT_PARAMS_ENABLED
	depends on PORT08_INST01_PROFILE_CUSTOM &&  PORT08_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.optParamsEnabled"
	default n
	help
	  The Boolean attribute optParamsEnabled specifies whether the L1Sync port transmitting the L1_SYNC
	  TLV extends this TLV with the information about the optional parameters.

endmenu

menu "Instance 2"
	depends on PORT08_INSTANCE_COUNT_2  

choice
    prompt "Network protocol"
    default PORT08_INST02_PROTOCOL_RAW
    config PORT08_INST02_PROTOCOL_RAW
        bool "IEEE 802.3"
    config PORT08_INST02_PROTOCOL_UDP_IPV4
        bool "UDP/Ipv4"
endchoice

choice
    prompt "Delay mechanism"
    default PORT08_INST02_MECHANISM_E2E
    config PORT08_INST02_MECHANISM_E2E
        bool "End-to-end"
    config PORT08_INST02_MECHANISM_P2P
        bool "Peer-to-peer"
endchoice

config PORT08_INST02_MONITOR
	bool "SNMP monitoring"
	default y
	help
	  Option to disable or enable triggering errors in SNMP on a port

choice
    prompt "Profile"
    default PORT08_INST02_PROFILE_HA
    config PORT08_INST02_PROFILE_PTP
        bool "PTP"
    config PORT08_INST02_PROFILE_WR
        bool "WhiteRabbit"
    config PORT08_INST02_PROFILE_HA
        bool "HighAccuracy"
    config PORT08_INST02_PROFILE_CUSTOM
        bool "Custom"
endchoice

choice
    prompt "Desired state"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED
    default PORT08_INST02_DESIRADE_STATE_MASTER
    config PORT08_INST02_DESIRADE_STATE_MASTER
        bool "Master"
    config PORT08_INST02_DESIRADE_STATE_SLAVE
        bool "Slave"
    config PORT08_INST02_DESIRADE_STATE_PASSIVE
        bool "Passive"
endchoice

config PORT08_INST02_ASYMMETRY_CORRECTION_ENABLE
	depends on PORT08_INST02_PROFILE_HA="n" 
    bool "asymmetryCorrectionPortDS.enable"
    default true
	help
	  When supported, the value TRUE shall indicate that the mechanism of for the calculation
	  of the <delayAsymmetry> for certain media is enabled on the PTP port.

choice
    prompt "BMCA mode"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED!=y
    default PORT08_INST02_BMODE_MASTER_ONLY if TIME_BC
    default PORT08_INST02_BMODE_AUTO
    config PORT08_INST02_BMODE_MASTER_ONLY
        bool "MasterOnly"
    config PORT08_INST02_BMODE_AUTO
        bool "Auto"
endchoice

config PORT08_INST02_EGRESS_LATENCY
    depends on PORT08_INST02_PROFILE_WR!=y
    int "timestampCorrectionPortDS.egressLatency (ps)"
    default 224898
 help
	 Defines the transmission constant delay (ps)

config PORT08_INST02_INGRESS_LATENCY
    depends on PORT08_INST02_PROFILE_WR!=y
    int "timestampCorrectionPortDS.ingressLatency (ps)"
    default 228178
 help
	 Defines the reception constant delay (ps)

config PORT08_INST02_ANNOUNCE_INTERVAL
	int "logAnnounceInterval" 
	default 1
	range 0 4
	help
	  The mean time interval between transmissions of successive
	  Announce messages. The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 4.

config PORT08_INST02_ANNOUNCE_RECEIPT_TIMEOUT
	int "announceReceiptTimeout"
	default 3
	range 2 255
	help
	  The announceReceiptTimeout specifies the number of announceIntervals 
	  that must pass without receipt of an Announce message before the 
	  occurrence of the event ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 255

config PORT08_INST02_SYNC_INTERVAL
	int "logSyncInterval"
	default 0
	range -1 1
	help
	  The mean time interval between transmission of successive
	  Sync messages, i.e., the sync-interval, when transmitted
	  as multicast messages. The value is the logarithm to the base 2.
	  The configurable range shall be -1 to +1

config PORT08_INST02_MIN_DELAY_REQ_INTERVAL
	depends on PORT08_INST02_MECHANISM_E2E  
	int "minDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Delay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT08_INST02_MIN_PDELAY_REQ_INTERVAL
	depends on PORT08_INST02_MECHANISM_P2P  
	int "minPDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minPDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Pdelay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT08_INST02_L1SYNC_ENABLED
	depends on PORT08_INST02_PROFILE_CUSTOM  
	bool "L1SyncBasicPortDS.L1SyncEnabled"
	default y
	help
	  This parameter specifies whether the L1Sync option is enabled on the PTP Port. If
	  L1SyncEnabled is TRUE, then the L1Sync message exchange is supported and enabled

config PORT08_INST02_L1SYNC_INTERVAL
	depends on PORT08_INST02_PROFILE_HA || (PORT08_INST02_PROFILE_CUSTOM &&  PORT08_INST02_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.logL1SyncInterval"
	default 0
	range -4 4
	help
	  The L1Sync interval specifies the time interval
	  between successive periodic L1_SYNC TLV.
	  The value is the logarithm to the base 2.
	  The configurable range shall be -4 to 4

config PORT08_INST02_L1SYNC_RECEIPT_TIMEOUT
	depends on PORT08_INST02_PROFILE_HA || (PORT08_INST02_PROFILE_CUSTOM &&  PORT08_INST02_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.L1SyncReceiptTimeout"
	default 3
	range 2 10
	help
	  The value of L1SyncReceiptTimeout specifies the number of elapsed 
	  L1SyncIntervals that must pass without reception of the L1_SYNC TLV 
	  before the L1_SYNC TLV reception timeout occurs.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 10

config PORT08_INST02_L1SYNC_TX_COHERENCY_IS_REQUIRED
	depends on PORT08_INST02_PROFILE_CUSTOM &&  PORT08_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.txCoherencyIsRequired"
	default y
	help
	   The Boolean attribute txCoherentIsRequired specifies the configuration of the L1Sync port and the
	   expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	   required to be a transmit coherent port.

config PORT08_INST02_L1SYNC_RX_COHERENCY_IS_REQUIRED
	depends on PORT08_INST02_PROFILE_CUSTOM &&  PORT08_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.rxCoherencyIsRequired"
	default y
	help
	  The Boolean attribute rxCoherentIsRequired specifies the configuration of the L1Sync port and the
	  expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	  required to be a receive coherent port.

config PORT08_INST02_L1SYNC_CONGRUENCY_IS_REQUIRED
	depends on PORT08_INST02_PROFILE_CUSTOM &&  PORT08_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.congruencyIsRequired"
	default y
	help
	  The Boolean attribute congruentIsRequired specifies configuration of the L1Sync port and the expected
	  configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is required to
	  be a congruent port

config PORT08_INST02_L1SYNC_OPT_PARAMS_ENABLED
	depends on PORT08_INST02_PROFILE_CUSTOM &&  PORT08_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.optParamsEnabled"
	default n
	help
	  The Boolean attribute optParamsEnabled specifies whether the L1Sync port transmitting the L1_SYNC
	  TLV extends this TLV with the information about the optional parameters.

endmenu

endmenu

menu "PORT 9"

config PORT09_IFACE
	string "Network interface"
	default "wri9"
	help
	  Used to set the physivcal port interface name: "wri[1-18]"

config PORT09_FIBER
	int  "Fiber type"
	default 0
	help
	  Used to set the type of fiber (number referring to the corresponding 
	  FIBERXX_PARAMS)

config PORT09_CONSTANT_ASYMMETRY
	int "asymmetryCorrectionPortDS.constantAsymmetry"
	default 0
	help
	   Used to set the constant delay asymmetry.

choice
	prompt "Number of port instances"
	default PORT09_INSTANCE_COUNT_1
	config PORT09_INSTANCE_COUNT_0
	  bool "0"
	config PORT09_INSTANCE_COUNT_1
	  bool "1"
	config PORT09_INSTANCE_COUNT_2
	  bool "2"
endchoice

menu "Instance 1"
	depends on PORT09_INSTANCE_COUNT_1 ||  PORT09_INSTANCE_COUNT_2  

choice
    prompt "Network protocol"
    default PORT09_INST01_PROTOCOL_RAW
    config PORT09_INST01_PROTOCOL_RAW
        bool "IEEE 802.3"
    config PORT09_INST01_PROTOCOL_UDP_IPV4
        bool "UDP/Ipv4"
endchoice

choice
    prompt "Delay mechanism"
    default PORT09_INST01_MECHANISM_E2E
    config PORT09_INST01_MECHANISM_E2E
        bool "End-to-end"
    config PORT09_INST01_MECHANISM_P2P
        bool "Peer-to-peer"
endchoice

config PORT09_INST01_MONITOR
	bool "SNMP monitoring"
	default y
	help
	  Option to disable or enable triggering errors in SNMP on a port

choice
    prompt "Profile"
    default PORT09_INST01_PROFILE_HA
    config PORT09_INST01_PROFILE_PTP
        bool "PTP"
    config PORT09_INST01_PROFILE_WR
        bool "WhiteRabbit"
    config PORT09_INST01_PROFILE_HA
        bool "HighAccuracy"
    config PORT09_INST01_PROFILE_CUSTOM
        bool "Custom"
endchoice

choice
    prompt "Desired state"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED
    default PORT09_INST01_DESIRADE_STATE_MASTER
    config PORT09_INST01_DESIRADE_STATE_MASTER
        bool "Master"
    config PORT09_INST01_DESIRADE_STATE_SLAVE
        bool "Slave"
    config PORT09_INST01_DESIRADE_STATE_PASSIVE
        bool "Passive"
endchoice

config PORT09_INST01_ASYMMETRY_CORRECTION_ENABLE
	depends on PORT09_INST01_PROFILE_HA="n" 
    bool "asymmetryCorrectionPortDS.enable"
    default true
	help
	  When supported, the value TRUE shall indicate that the mechanism of for the calculation
	  of the <delayAsymmetry> for certain media is enabled on the PTP port.

choice
    prompt "BMCA mode"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED!=y
    default PORT09_INST01_BMODE_MASTER_ONLY if TIME_BC
    default PORT09_INST01_BMODE_AUTO
    config PORT09_INST01_BMODE_MASTER_ONLY
        bool "MasterOnly"
    config PORT09_INST01_BMODE_AUTO
        bool "Auto"
endchoice

config PORT09_INST01_EGRESS_LATENCY
    depends on PORT09_INST01_PROFILE_WR!=y
    int "timestampCorrectionPortDS.egressLatency (ps)"
    default 225069
 help
	 Defines the transmission constant delay (ps)

config PORT09_INST01_INGRESS_LATENCY
    depends on PORT09_INST01_PROFILE_WR!=y
    int "timestampCorrectionPortDS.ingressLatency (ps)"
    default 228277
 help
	 Defines the reception constant delay (ps)

config PORT09_INST01_ANNOUNCE_INTERVAL
	int "logAnnounceInterval" 
	default 1
	range 0 4
	help
	  The mean time interval between transmissions of successive
	  Announce messages. The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 4.

config PORT09_INST01_ANNOUNCE_RECEIPT_TIMEOUT
	int "announceReceiptTimeout"
	default 3
	range 2 255
	help
	  The announceReceiptTimeout specifies the number of announceIntervals 
	  that must pass without receipt of an Announce message before the 
	  occurrence of the event ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 255

config PORT09_INST01_SYNC_INTERVAL
	int "logSyncInterval"
	default 0
	range -1 1
	help
	  The mean time interval between transmission of successive
	  Sync messages, i.e., the sync-interval, when transmitted
	  as multicast messages. The value is the logarithm to the base 2.
	  The configurable range shall be -1 to +1

config PORT09_INST01_MIN_DELAY_REQ_INTERVAL
	depends on PORT09_INST01_MECHANISM_E2E  
	int "minDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Delay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT09_INST01_MIN_PDELAY_REQ_INTERVAL
	depends on PORT09_INST01_MECHANISM_P2P  
	int "minPDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minPDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Pdelay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT09_INST01_L1SYNC_ENABLED
	depends on PORT09_INST01_PROFILE_CUSTOM  
	bool "L1SyncBasicPortDS.L1SyncEnabled"
	default y
	help
	  This parameter specifies whether the L1Sync option is enabled on the PTP Port. If
	  L1SyncEnabled is TRUE, then the L1Sync message exchange is supported and enabled

config PORT09_INST01_L1SYNC_INTERVAL
	depends on PORT09_INST01_PROFILE_HA || (PORT09_INST01_PROFILE_CUSTOM &&  PORT09_INST01_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.logL1SyncInterval"
	default 0
	range -4 4
	help
	  The L1Sync interval specifies the time interval
	  between successive periodic L1_SYNC TLV.
	  The value is the logarithm to the base 2.
	  The configurable range shall be -4 to 4

config PORT09_INST01_L1SYNC_RECEIPT_TIMEOUT
	depends on PORT09_INST01_PROFILE_HA || (PORT09_INST01_PROFILE_CUSTOM &&  PORT09_INST01_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.L1SyncReceiptTimeout"
	default 3
	range 2 10
	help
	  The value of L1SyncReceiptTimeout specifies the number of elapsed 
	  L1SyncIntervals that must pass without reception of the L1_SYNC TLV 
	  before the L1_SYNC TLV reception timeout occurs.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 10

config PORT09_INST01_L1SYNC_TX_COHERENCY_IS_REQUIRED
	depends on PORT09_INST01_PROFILE_CUSTOM &&  PORT09_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.txCoherencyIsRequired"
	default y
	help
	   The Boolean attribute txCoherentIsRequired specifies the configuration of the L1Sync port and the
	   expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	   required to be a transmit coherent port.

config PORT09_INST01_L1SYNC_RX_COHERENCY_IS_REQUIRED
	depends on PORT09_INST01_PROFILE_CUSTOM &&  PORT09_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.rxCoherencyIsRequired"
	default y
	help
	  The Boolean attribute rxCoherentIsRequired specifies the configuration of the L1Sync port and the
	  expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	  required to be a receive coherent port.

config PORT09_INST01_L1SYNC_CONGRUENCY_IS_REQUIRED
	depends on PORT09_INST01_PROFILE_CUSTOM &&  PORT09_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.congruencyIsRequired"
	default y
	help
	  The Boolean attribute congruentIsRequired specifies configuration of the L1Sync port and the expected
	  configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is required to
	  be a congruent port

config PORT09_INST01_L1SYNC_OPT_PARAMS_ENABLED
	depends on PORT09_INST01_PROFILE_CUSTOM &&  PORT09_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.optParamsEnabled"
	default n
	help
	  The Boolean attribute optParamsEnabled specifies whether the L1Sync port transmitting the L1_SYNC
	  TLV extends this TLV with the information about the optional parameters.

endmenu

menu "Instance 2"
	depends on PORT09_INSTANCE_COUNT_2  

choice
    prompt "Network protocol"
    default PORT09_INST02_PROTOCOL_RAW
    config PORT09_INST02_PROTOCOL_RAW
        bool "IEEE 802.3"
    config PORT09_INST02_PROTOCOL_UDP_IPV4
        bool "UDP/Ipv4"
endchoice

choice
    prompt "Delay mechanism"
    default PORT09_INST02_MECHANISM_E2E
    config PORT09_INST02_MECHANISM_E2E
        bool "End-to-end"
    config PORT09_INST02_MECHANISM_P2P
        bool "Peer-to-peer"
endchoice

config PORT09_INST02_MONITOR
	bool "SNMP monitoring"
	default y
	help
	  Option to disable or enable triggering errors in SNMP on a port

choice
    prompt "Profile"
    default PORT09_INST02_PROFILE_HA
    config PORT09_INST02_PROFILE_PTP
        bool "PTP"
    config PORT09_INST02_PROFILE_WR
        bool "WhiteRabbit"
    config PORT09_INST02_PROFILE_HA
        bool "HighAccuracy"
    config PORT09_INST02_PROFILE_CUSTOM
        bool "Custom"
endchoice

choice
    prompt "Desired state"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED
    default PORT09_INST02_DESIRADE_STATE_MASTER
    config PORT09_INST02_DESIRADE_STATE_MASTER
        bool "Master"
    config PORT09_INST02_DESIRADE_STATE_SLAVE
        bool "Slave"
    config PORT09_INST02_DESIRADE_STATE_PASSIVE
        bool "Passive"
endchoice

config PORT09_INST02_ASYMMETRY_CORRECTION_ENABLE
	depends on PORT09_INST02_PROFILE_HA="n" 
    bool "asymmetryCorrectionPortDS.enable"
    default true
	help
	  When supported, the value TRUE shall indicate that the mechanism of for the calculation
	  of the <delayAsymmetry> for certain media is enabled on the PTP port.

choice
    prompt "BMCA mode"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED!=y
    default PORT09_INST02_BMODE_MASTER_ONLY if TIME_BC
    default PORT09_INST02_BMODE_AUTO
    config PORT09_INST02_BMODE_MASTER_ONLY
        bool "MasterOnly"
    config PORT09_INST02_BMODE_AUTO
        bool "Auto"
endchoice

config PORT09_INST02_EGRESS_LATENCY
    depends on PORT09_INST02_PROFILE_WR!=y
    int "timestampCorrectionPortDS.egressLatency (ps)"
    default 225069
 help
	 Defines the transmission constant delay (ps)

config PORT09_INST02_INGRESS_LATENCY
    depends on PORT09_INST02_PROFILE_WR!=y
    int "timestampCorrectionPortDS.ingressLatency (ps)"
    default 228277
 help
	 Defines the reception constant delay (ps)

config PORT09_INST02_ANNOUNCE_INTERVAL
	int "logAnnounceInterval" 
	default 1
	range 0 4
	help
	  The mean time interval between transmissions of successive
	  Announce messages. The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 4.

config PORT09_INST02_ANNOUNCE_RECEIPT_TIMEOUT
	int "announceReceiptTimeout"
	default 3
	range 2 255
	help
	  The announceReceiptTimeout specifies the number of announceIntervals 
	  that must pass without receipt of an Announce message before the 
	  occurrence of the event ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 255

config PORT09_INST02_SYNC_INTERVAL
	int "logSyncInterval"
	default 0
	range -1 1
	help
	  The mean time interval between transmission of successive
	  Sync messages, i.e., the sync-interval, when transmitted
	  as multicast messages. The value is the logarithm to the base 2.
	  The configurable range shall be -1 to +1

config PORT09_INST02_MIN_DELAY_REQ_INTERVAL
	depends on PORT09_INST02_MECHANISM_E2E  
	int "minDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Delay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT09_INST02_MIN_PDELAY_REQ_INTERVAL
	depends on PORT09_INST02_MECHANISM_P2P  
	int "minPDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minPDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Pdelay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT09_INST02_L1SYNC_ENABLED
	depends on PORT09_INST02_PROFILE_CUSTOM  
	bool "L1SyncBasicPortDS.L1SyncEnabled"
	default y
	help
	  This parameter specifies whether the L1Sync option is enabled on the PTP Port. If
	  L1SyncEnabled is TRUE, then the L1Sync message exchange is supported and enabled

config PORT09_INST02_L1SYNC_INTERVAL
	depends on PORT09_INST02_PROFILE_HA || (PORT09_INST02_PROFILE_CUSTOM &&  PORT09_INST02_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.logL1SyncInterval"
	default 0
	range -4 4
	help
	  The L1Sync interval specifies the time interval
	  between successive periodic L1_SYNC TLV.
	  The value is the logarithm to the base 2.
	  The configurable range shall be -4 to 4

config PORT09_INST02_L1SYNC_RECEIPT_TIMEOUT
	depends on PORT09_INST02_PROFILE_HA || (PORT09_INST02_PROFILE_CUSTOM &&  PORT09_INST02_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.L1SyncReceiptTimeout"
	default 3
	range 2 10
	help
	  The value of L1SyncReceiptTimeout specifies the number of elapsed 
	  L1SyncIntervals that must pass without reception of the L1_SYNC TLV 
	  before the L1_SYNC TLV reception timeout occurs.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 10

config PORT09_INST02_L1SYNC_TX_COHERENCY_IS_REQUIRED
	depends on PORT09_INST02_PROFILE_CUSTOM &&  PORT09_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.txCoherencyIsRequired"
	default y
	help
	   The Boolean attribute txCoherentIsRequired specifies the configuration of the L1Sync port and the
	   expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	   required to be a transmit coherent port.

config PORT09_INST02_L1SYNC_RX_COHERENCY_IS_REQUIRED
	depends on PORT09_INST02_PROFILE_CUSTOM &&  PORT09_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.rxCoherencyIsRequired"
	default y
	help
	  The Boolean attribute rxCoherentIsRequired specifies the configuration of the L1Sync port and the
	  expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	  required to be a receive coherent port.

config PORT09_INST02_L1SYNC_CONGRUENCY_IS_REQUIRED
	depends on PORT09_INST02_PROFILE_CUSTOM &&  PORT09_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.congruencyIsRequired"
	default y
	help
	  The Boolean attribute congruentIsRequired specifies configuration of the L1Sync port and the expected
	  configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is required to
	  be a congruent port

config PORT09_INST02_L1SYNC_OPT_PARAMS_ENABLED
	depends on PORT09_INST02_PROFILE_CUSTOM &&  PORT09_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.optParamsEnabled"
	default n
	help
	  The Boolean attribute optParamsEnabled specifies whether the L1Sync port transmitting the L1_SYNC
	  TLV extends this TLV with the information about the optional parameters.

endmenu

endmenu

menu "PORT 10"

config PORT10_IFACE
	string "Network interface"
	default "wri10"
	help
	  Used to set the physivcal port interface name: "wri[1-18]"

config PORT10_FIBER
	int  "Fiber type"
	default 0
	help
	  Used to set the type of fiber (number referring to the corresponding 
	  FIBERXX_PARAMS)

config PORT10_CONSTANT_ASYMMETRY
	int "asymmetryCorrectionPortDS.constantAsymmetry"
	default 0
	help
	   Used to set the constant delay asymmetry.

choice
	prompt "Number of port instances"
	default PORT10_INSTANCE_COUNT_1
	config PORT10_INSTANCE_COUNT_0
	  bool "0"
	config PORT10_INSTANCE_COUNT_1
	  bool "1"
	config PORT10_INSTANCE_COUNT_2
	  bool "2"
endchoice

menu "Instance 1"
	depends on PORT10_INSTANCE_COUNT_1 ||  PORT10_INSTANCE_COUNT_2  

choice
    prompt "Network protocol"
    default PORT10_INST01_PROTOCOL_RAW
    config PORT10_INST01_PROTOCOL_RAW
        bool "IEEE 802.3"
    config PORT10_INST01_PROTOCOL_UDP_IPV4
        bool "UDP/Ipv4"
endchoice

choice
    prompt "Delay mechanism"
    default PORT10_INST01_MECHANISM_E2E
    config PORT10_INST01_MECHANISM_E2E
        bool "End-to-end"
    config PORT10_INST01_MECHANISM_P2P
        bool "Peer-to-peer"
endchoice

config PORT10_INST01_MONITOR
	bool "SNMP monitoring"
	default y
	help
	  Option to disable or enable triggering errors in SNMP on a port

choice
    prompt "Profile"
    default PORT10_INST01_PROFILE_HA
    config PORT10_INST01_PROFILE_PTP
        bool "PTP"
    config PORT10_INST01_PROFILE_WR
        bool "WhiteRabbit"
    config PORT10_INST01_PROFILE_HA
        bool "HighAccuracy"
    config PORT10_INST01_PROFILE_CUSTOM
        bool "Custom"
endchoice

choice
    prompt "Desired state"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED
    default PORT10_INST01_DESIRADE_STATE_MASTER
    config PORT10_INST01_DESIRADE_STATE_MASTER
        bool "Master"
    config PORT10_INST01_DESIRADE_STATE_SLAVE
        bool "Slave"
    config PORT10_INST01_DESIRADE_STATE_PASSIVE
        bool "Passive"
endchoice

config PORT10_INST01_ASYMMETRY_CORRECTION_ENABLE
	depends on PORT10_INST01_PROFILE_HA="n" 
    bool "asymmetryCorrectionPortDS.enable"
    default true
	help
	  When supported, the value TRUE shall indicate that the mechanism of for the calculation
	  of the <delayAsymmetry> for certain media is enabled on the PTP port.

choice
    prompt "BMCA mode"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED!=y
    default PORT10_INST01_BMODE_MASTER_ONLY if TIME_BC
    default PORT10_INST01_BMODE_AUTO
    config PORT10_INST01_BMODE_MASTER_ONLY
        bool "MasterOnly"
    config PORT10_INST01_BMODE_AUTO
        bool "Auto"
endchoice

config PORT10_INST01_EGRESS_LATENCY
    depends on PORT10_INST01_PROFILE_WR!=y
    int "timestampCorrectionPortDS.egressLatency (ps)"
    default 225245
 help
	 Defines the transmission constant delay (ps)

config PORT10_INST01_INGRESS_LATENCY
    depends on PORT10_INST01_PROFILE_WR!=y
    int "timestampCorrectionPortDS.ingressLatency (ps)"
    default 228435
 help
	 Defines the reception constant delay (ps)

config PORT10_INST01_ANNOUNCE_INTERVAL
	int "logAnnounceInterval" 
	default 1
	range 0 4
	help
	  The mean time interval between transmissions of successive
	  Announce messages. The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 4.

config PORT10_INST01_ANNOUNCE_RECEIPT_TIMEOUT
	int "announceReceiptTimeout"
	default 3
	range 2 255
	help
	  The announceReceiptTimeout specifies the number of announceIntervals 
	  that must pass without receipt of an Announce message before the 
	  occurrence of the event ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 255

config PORT10_INST01_SYNC_INTERVAL
	int "logSyncInterval"
	default 0
	range -1 1
	help
	  The mean time interval between transmission of successive
	  Sync messages, i.e., the sync-interval, when transmitted
	  as multicast messages. The value is the logarithm to the base 2.
	  The configurable range shall be -1 to +1

config PORT10_INST01_MIN_DELAY_REQ_INTERVAL
	depends on PORT10_INST01_MECHANISM_E2E  
	int "minDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Delay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT10_INST01_MIN_PDELAY_REQ_INTERVAL
	depends on PORT10_INST01_MECHANISM_P2P  
	int "minPDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minPDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Pdelay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT10_INST01_L1SYNC_ENABLED
	depends on PORT10_INST01_PROFILE_CUSTOM  
	bool "L1SyncBasicPortDS.L1SyncEnabled"
	default y
	help
	  This parameter specifies whether the L1Sync option is enabled on the PTP Port. If
	  L1SyncEnabled is TRUE, then the L1Sync message exchange is supported and enabled

config PORT10_INST01_L1SYNC_INTERVAL
	depends on PORT10_INST01_PROFILE_HA || (PORT10_INST01_PROFILE_CUSTOM &&  PORT10_INST01_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.logL1SyncInterval"
	default 0
	range -4 4
	help
	  The L1Sync interval specifies the time interval
	  between successive periodic L1_SYNC TLV.
	  The value is the logarithm to the base 2.
	  The configurable range shall be -4 to 4

config PORT10_INST01_L1SYNC_RECEIPT_TIMEOUT
	depends on PORT10_INST01_PROFILE_HA || (PORT10_INST01_PROFILE_CUSTOM &&  PORT10_INST01_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.L1SyncReceiptTimeout"
	default 3
	range 2 10
	help
	  The value of L1SyncReceiptTimeout specifies the number of elapsed 
	  L1SyncIntervals that must pass without reception of the L1_SYNC TLV 
	  before the L1_SYNC TLV reception timeout occurs.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 10

config PORT10_INST01_L1SYNC_TX_COHERENCY_IS_REQUIRED
	depends on PORT10_INST01_PROFILE_CUSTOM &&  PORT10_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.txCoherencyIsRequired"
	default y
	help
	   The Boolean attribute txCoherentIsRequired specifies the configuration of the L1Sync port and the
	   expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	   required to be a transmit coherent port.

config PORT10_INST01_L1SYNC_RX_COHERENCY_IS_REQUIRED
	depends on PORT10_INST01_PROFILE_CUSTOM &&  PORT10_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.rxCoherencyIsRequired"
	default y
	help
	  The Boolean attribute rxCoherentIsRequired specifies the configuration of the L1Sync port and the
	  expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	  required to be a receive coherent port.

config PORT10_INST01_L1SYNC_CONGRUENCY_IS_REQUIRED
	depends on PORT10_INST01_PROFILE_CUSTOM &&  PORT10_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.congruencyIsRequired"
	default y
	help
	  The Boolean attribute congruentIsRequired specifies configuration of the L1Sync port and the expected
	  configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is required to
	  be a congruent port

config PORT10_INST01_L1SYNC_OPT_PARAMS_ENABLED
	depends on PORT10_INST01_PROFILE_CUSTOM &&  PORT10_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.optParamsEnabled"
	default n
	help
	  The Boolean attribute optParamsEnabled specifies whether the L1Sync port transmitting the L1_SYNC
	  TLV extends this TLV with the information about the optional parameters.

endmenu

menu "Instance 2"
	depends on PORT10_INSTANCE_COUNT_2  

choice
    prompt "Network protocol"
    default PORT10_INST02_PROTOCOL_RAW
    config PORT10_INST02_PROTOCOL_RAW
        bool "IEEE 802.3"
    config PORT10_INST02_PROTOCOL_UDP_IPV4
        bool "UDP/Ipv4"
endchoice

choice
    prompt "Delay mechanism"
    default PORT10_INST02_MECHANISM_E2E
    config PORT10_INST02_MECHANISM_E2E
        bool "End-to-end"
    config PORT10_INST02_MECHANISM_P2P
        bool "Peer-to-peer"
endchoice

config PORT10_INST02_MONITOR
	bool "SNMP monitoring"
	default y
	help
	  Option to disable or enable triggering errors in SNMP on a port

choice
    prompt "Profile"
    default PORT10_INST02_PROFILE_HA
    config PORT10_INST02_PROFILE_PTP
        bool "PTP"
    config PORT10_INST02_PROFILE_WR
        bool "WhiteRabbit"
    config PORT10_INST02_PROFILE_HA
        bool "HighAccuracy"
    config PORT10_INST02_PROFILE_CUSTOM
        bool "Custom"
endchoice

choice
    prompt "Desired state"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED
    default PORT10_INST02_DESIRADE_STATE_MASTER
    config PORT10_INST02_DESIRADE_STATE_MASTER
        bool "Master"
    config PORT10_INST02_DESIRADE_STATE_SLAVE
        bool "Slave"
    config PORT10_INST02_DESIRADE_STATE_PASSIVE
        bool "Passive"
endchoice

config PORT10_INST02_ASYMMETRY_CORRECTION_ENABLE
	depends on PORT10_INST02_PROFILE_HA="n" 
    bool "asymmetryCorrectionPortDS.enable"
    default true
	help
	  When supported, the value TRUE shall indicate that the mechanism of for the calculation
	  of the <delayAsymmetry> for certain media is enabled on the PTP port.

choice
    prompt "BMCA mode"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED!=y
    default PORT10_INST02_BMODE_MASTER_ONLY if TIME_BC
    default PORT10_INST02_BMODE_AUTO
    config PORT10_INST02_BMODE_MASTER_ONLY
        bool "MasterOnly"
    config PORT10_INST02_BMODE_AUTO
        bool "Auto"
endchoice

config PORT10_INST02_EGRESS_LATENCY
    depends on PORT10_INST02_PROFILE_WR!=y
    int "timestampCorrectionPortDS.egressLatency (ps)"
    default 225245
 help
	 Defines the transmission constant delay (ps)

config PORT10_INST02_INGRESS_LATENCY
    depends on PORT10_INST02_PROFILE_WR!=y
    int "timestampCorrectionPortDS.ingressLatency (ps)"
    default 228435
 help
	 Defines the reception constant delay (ps)

config PORT10_INST02_ANNOUNCE_INTERVAL
	int "logAnnounceInterval" 
	default 1
	range 0 4
	help
	  The mean time interval between transmissions of successive
	  Announce messages. The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 4.

config PORT10_INST02_ANNOUNCE_RECEIPT_TIMEOUT
	int "announceReceiptTimeout"
	default 3
	range 2 255
	help
	  The announceReceiptTimeout specifies the number of announceIntervals 
	  that must pass without receipt of an Announce message before the 
	  occurrence of the event ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 255

config PORT10_INST02_SYNC_INTERVAL
	int "logSyncInterval"
	default 0
	range -1 1
	help
	  The mean time interval between transmission of successive
	  Sync messages, i.e., the sync-interval, when transmitted
	  as multicast messages. The value is the logarithm to the base 2.
	  The configurable range shall be -1 to +1

config PORT10_INST02_MIN_DELAY_REQ_INTERVAL
	depends on PORT10_INST02_MECHANISM_E2E  
	int "minDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Delay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT10_INST02_MIN_PDELAY_REQ_INTERVAL
	depends on PORT10_INST02_MECHANISM_P2P  
	int "minPDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minPDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Pdelay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT10_INST02_L1SYNC_ENABLED
	depends on PORT10_INST02_PROFILE_CUSTOM  
	bool "L1SyncBasicPortDS.L1SyncEnabled"
	default y
	help
	  This parameter specifies whether the L1Sync option is enabled on the PTP Port. If
	  L1SyncEnabled is TRUE, then the L1Sync message exchange is supported and enabled

config PORT10_INST02_L1SYNC_INTERVAL
	depends on PORT10_INST02_PROFILE_HA || (PORT10_INST02_PROFILE_CUSTOM &&  PORT10_INST02_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.logL1SyncInterval"
	default 0
	range -4 4
	help
	  The L1Sync interval specifies the time interval
	  between successive periodic L1_SYNC TLV.
	  The value is the logarithm to the base 2.
	  The configurable range shall be -4 to 4

config PORT10_INST02_L1SYNC_RECEIPT_TIMEOUT
	depends on PORT10_INST02_PROFILE_HA || (PORT10_INST02_PROFILE_CUSTOM &&  PORT10_INST02_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.L1SyncReceiptTimeout"
	default 3
	range 2 10
	help
	  The value of L1SyncReceiptTimeout specifies the number of elapsed 
	  L1SyncIntervals that must pass without reception of the L1_SYNC TLV 
	  before the L1_SYNC TLV reception timeout occurs.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 10

config PORT10_INST02_L1SYNC_TX_COHERENCY_IS_REQUIRED
	depends on PORT10_INST02_PROFILE_CUSTOM &&  PORT10_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.txCoherencyIsRequired"
	default y
	help
	   The Boolean attribute txCoherentIsRequired specifies the configuration of the L1Sync port and the
	   expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	   required to be a transmit coherent port.

config PORT10_INST02_L1SYNC_RX_COHERENCY_IS_REQUIRED
	depends on PORT10_INST02_PROFILE_CUSTOM &&  PORT10_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.rxCoherencyIsRequired"
	default y
	help
	  The Boolean attribute rxCoherentIsRequired specifies the configuration of the L1Sync port and the
	  expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	  required to be a receive coherent port.

config PORT10_INST02_L1SYNC_CONGRUENCY_IS_REQUIRED
	depends on PORT10_INST02_PROFILE_CUSTOM &&  PORT10_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.congruencyIsRequired"
	default y
	help
	  The Boolean attribute congruentIsRequired specifies configuration of the L1Sync port and the expected
	  configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is required to
	  be a congruent port

config PORT10_INST02_L1SYNC_OPT_PARAMS_ENABLED
	depends on PORT10_INST02_PROFILE_CUSTOM &&  PORT10_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.optParamsEnabled"
	default n
	help
	  The Boolean attribute optParamsEnabled specifies whether the L1Sync port transmitting the L1_SYNC
	  TLV extends this TLV with the information about the optional parameters.

endmenu

endmenu

menu "PORT 11"

config PORT11_IFACE
	string "Network interface"
	default "wri11"
	help
	  Used to set the physivcal port interface name: "wri[1-18]"

config PORT11_FIBER
	int  "Fiber type"
	default 0
	help
	  Used to set the type of fiber (number referring to the corresponding 
	  FIBERXX_PARAMS)

config PORT11_CONSTANT_ASYMMETRY
	int "asymmetryCorrectionPortDS.constantAsymmetry"
	default 0
	help
	   Used to set the constant delay asymmetry.

choice
	prompt "Number of port instances"
	default PORT11_INSTANCE_COUNT_1
	config PORT11_INSTANCE_COUNT_0
	  bool "0"
	config PORT11_INSTANCE_COUNT_1
	  bool "1"
	config PORT11_INSTANCE_COUNT_2
	  bool "2"
endchoice

menu "Instance 1"
	depends on PORT11_INSTANCE_COUNT_1 ||  PORT11_INSTANCE_COUNT_2  

choice
    prompt "Network protocol"
    default PORT11_INST01_PROTOCOL_RAW
    config PORT11_INST01_PROTOCOL_RAW
        bool "IEEE 802.3"
    config PORT11_INST01_PROTOCOL_UDP_IPV4
        bool "UDP/Ipv4"
endchoice

choice
    prompt "Delay mechanism"
    default PORT11_INST01_MECHANISM_E2E
    config PORT11_INST01_MECHANISM_E2E
        bool "End-to-end"
    config PORT11_INST01_MECHANISM_P2P
        bool "Peer-to-peer"
endchoice

config PORT11_INST01_MONITOR
	bool "SNMP monitoring"
	default y
	help
	  Option to disable or enable triggering errors in SNMP on a port

choice
    prompt "Profile"
    default PORT11_INST01_PROFILE_HA
    config PORT11_INST01_PROFILE_PTP
        bool "PTP"
    config PORT11_INST01_PROFILE_WR
        bool "WhiteRabbit"
    config PORT11_INST01_PROFILE_HA
        bool "HighAccuracy"
    config PORT11_INST01_PROFILE_CUSTOM
        bool "Custom"
endchoice

choice
    prompt "Desired state"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED
    default PORT11_INST01_DESIRADE_STATE_MASTER
    config PORT11_INST01_DESIRADE_STATE_MASTER
        bool "Master"
    config PORT11_INST01_DESIRADE_STATE_SLAVE
        bool "Slave"
    config PORT11_INST01_DESIRADE_STATE_PASSIVE
        bool "Passive"
endchoice

config PORT11_INST01_ASYMMETRY_CORRECTION_ENABLE
	depends on PORT11_INST01_PROFILE_HA="n" 
    bool "asymmetryCorrectionPortDS.enable"
    default true
	help
	  When supported, the value TRUE shall indicate that the mechanism of for the calculation
	  of the <delayAsymmetry> for certain media is enabled on the PTP port.

choice
    prompt "BMCA mode"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED!=y
    default PORT11_INST01_BMODE_MASTER_ONLY if TIME_BC
    default PORT11_INST01_BMODE_AUTO
    config PORT11_INST01_BMODE_MASTER_ONLY
        bool "MasterOnly"
    config PORT11_INST01_BMODE_AUTO
        bool "Auto"
endchoice

config PORT11_INST01_EGRESS_LATENCY
    depends on PORT11_INST01_PROFILE_WR!=y
    int "timestampCorrectionPortDS.egressLatency (ps)"
    default 225463
 help
	 Defines the transmission constant delay (ps)

config PORT11_INST01_INGRESS_LATENCY
    depends on PORT11_INST01_PROFILE_WR!=y
    int "timestampCorrectionPortDS.ingressLatency (ps)"
    default 228963
 help
	 Defines the reception constant delay (ps)

config PORT11_INST01_ANNOUNCE_INTERVAL
	int "logAnnounceInterval" 
	default 1
	range 0 4
	help
	  The mean time interval between transmissions of successive
	  Announce messages. The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 4.

config PORT11_INST01_ANNOUNCE_RECEIPT_TIMEOUT
	int "announceReceiptTimeout"
	default 3
	range 2 255
	help
	  The announceReceiptTimeout specifies the number of announceIntervals 
	  that must pass without receipt of an Announce message before the 
	  occurrence of the event ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 255

config PORT11_INST01_SYNC_INTERVAL
	int "logSyncInterval"
	default 0
	range -1 1
	help
	  The mean time interval between transmission of successive
	  Sync messages, i.e., the sync-interval, when transmitted
	  as multicast messages. The value is the logarithm to the base 2.
	  The configurable range shall be -1 to +1

config PORT11_INST01_MIN_DELAY_REQ_INTERVAL
	depends on PORT11_INST01_MECHANISM_E2E  
	int "minDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Delay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT11_INST01_MIN_PDELAY_REQ_INTERVAL
	depends on PORT11_INST01_MECHANISM_P2P  
	int "minPDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minPDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Pdelay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT11_INST01_L1SYNC_ENABLED
	depends on PORT11_INST01_PROFILE_CUSTOM  
	bool "L1SyncBasicPortDS.L1SyncEnabled"
	default y
	help
	  This parameter specifies whether the L1Sync option is enabled on the PTP Port. If
	  L1SyncEnabled is TRUE, then the L1Sync message exchange is supported and enabled

config PORT11_INST01_L1SYNC_INTERVAL
	depends on PORT11_INST01_PROFILE_HA || (PORT11_INST01_PROFILE_CUSTOM &&  PORT11_INST01_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.logL1SyncInterval"
	default 0
	range -4 4
	help
	  The L1Sync interval specifies the time interval
	  between successive periodic L1_SYNC TLV.
	  The value is the logarithm to the base 2.
	  The configurable range shall be -4 to 4

config PORT11_INST01_L1SYNC_RECEIPT_TIMEOUT
	depends on PORT11_INST01_PROFILE_HA || (PORT11_INST01_PROFILE_CUSTOM &&  PORT11_INST01_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.L1SyncReceiptTimeout"
	default 3
	range 2 10
	help
	  The value of L1SyncReceiptTimeout specifies the number of elapsed 
	  L1SyncIntervals that must pass without reception of the L1_SYNC TLV 
	  before the L1_SYNC TLV reception timeout occurs.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 10

config PORT11_INST01_L1SYNC_TX_COHERENCY_IS_REQUIRED
	depends on PORT11_INST01_PROFILE_CUSTOM &&  PORT11_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.txCoherencyIsRequired"
	default y
	help
	   The Boolean attribute txCoherentIsRequired specifies the configuration of the L1Sync port and the
	   expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	   required to be a transmit coherent port.

config PORT11_INST01_L1SYNC_RX_COHERENCY_IS_REQUIRED
	depends on PORT11_INST01_PROFILE_CUSTOM &&  PORT11_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.rxCoherencyIsRequired"
	default y
	help
	  The Boolean attribute rxCoherentIsRequired specifies the configuration of the L1Sync port and the
	  expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	  required to be a receive coherent port.

config PORT11_INST01_L1SYNC_CONGRUENCY_IS_REQUIRED
	depends on PORT11_INST01_PROFILE_CUSTOM &&  PORT11_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.congruencyIsRequired"
	default y
	help
	  The Boolean attribute congruentIsRequired specifies configuration of the L1Sync port and the expected
	  configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is required to
	  be a congruent port

config PORT11_INST01_L1SYNC_OPT_PARAMS_ENABLED
	depends on PORT11_INST01_PROFILE_CUSTOM &&  PORT11_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.optParamsEnabled"
	default n
	help
	  The Boolean attribute optParamsEnabled specifies whether the L1Sync port transmitting the L1_SYNC
	  TLV extends this TLV with the information about the optional parameters.

endmenu

menu "Instance 2"
	depends on PORT11_INSTANCE_COUNT_2  

choice
    prompt "Network protocol"
    default PORT11_INST02_PROTOCOL_RAW
    config PORT11_INST02_PROTOCOL_RAW
        bool "IEEE 802.3"
    config PORT11_INST02_PROTOCOL_UDP_IPV4
        bool "UDP/Ipv4"
endchoice

choice
    prompt "Delay mechanism"
    default PORT11_INST02_MECHANISM_E2E
    config PORT11_INST02_MECHANISM_E2E
        bool "End-to-end"
    config PORT11_INST02_MECHANISM_P2P
        bool "Peer-to-peer"
endchoice

config PORT11_INST02_MONITOR
	bool "SNMP monitoring"
	default y
	help
	  Option to disable or enable triggering errors in SNMP on a port

choice
    prompt "Profile"
    default PORT11_INST02_PROFILE_HA
    config PORT11_INST02_PROFILE_PTP
        bool "PTP"
    config PORT11_INST02_PROFILE_WR
        bool "WhiteRabbit"
    config PORT11_INST02_PROFILE_HA
        bool "HighAccuracy"
    config PORT11_INST02_PROFILE_CUSTOM
        bool "Custom"
endchoice

choice
    prompt "Desired state"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED
    default PORT11_INST02_DESIRADE_STATE_MASTER
    config PORT11_INST02_DESIRADE_STATE_MASTER
        bool "Master"
    config PORT11_INST02_DESIRADE_STATE_SLAVE
        bool "Slave"
    config PORT11_INST02_DESIRADE_STATE_PASSIVE
        bool "Passive"
endchoice

config PORT11_INST02_ASYMMETRY_CORRECTION_ENABLE
	depends on PORT11_INST02_PROFILE_HA="n" 
    bool "asymmetryCorrectionPortDS.enable"
    default true
	help
	  When supported, the value TRUE shall indicate that the mechanism of for the calculation
	  of the <delayAsymmetry> for certain media is enabled on the PTP port.

choice
    prompt "BMCA mode"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED!=y
    default PORT11_INST02_BMODE_MASTER_ONLY if TIME_BC
    default PORT11_INST02_BMODE_AUTO
    config PORT11_INST02_BMODE_MASTER_ONLY
        bool "MasterOnly"
    config PORT11_INST02_BMODE_AUTO
        bool "Auto"
endchoice

config PORT11_INST02_EGRESS_LATENCY
    depends on PORT11_INST02_PROFILE_WR!=y
    int "timestampCorrectionPortDS.egressLatency (ps)"
    default 225463
 help
	 Defines the transmission constant delay (ps)

config PORT11_INST02_INGRESS_LATENCY
    depends on PORT11_INST02_PROFILE_WR!=y
    int "timestampCorrectionPortDS.ingressLatency (ps)"
    default 228963
 help
	 Defines the reception constant delay (ps)

config PORT11_INST02_ANNOUNCE_INTERVAL
	int "logAnnounceInterval" 
	default 1
	range 0 4
	help
	  The mean time interval between transmissions of successive
	  Announce messages. The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 4.

config PORT11_INST02_ANNOUNCE_RECEIPT_TIMEOUT
	int "announceReceiptTimeout"
	default 3
	range 2 255
	help
	  The announceReceiptTimeout specifies the number of announceIntervals 
	  that must pass without receipt of an Announce message before the 
	  occurrence of the event ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 255

config PORT11_INST02_SYNC_INTERVAL
	int "logSyncInterval"
	default 0
	range -1 1
	help
	  The mean time interval between transmission of successive
	  Sync messages, i.e., the sync-interval, when transmitted
	  as multicast messages. The value is the logarithm to the base 2.
	  The configurable range shall be -1 to +1

config PORT11_INST02_MIN_DELAY_REQ_INTERVAL
	depends on PORT11_INST02_MECHANISM_E2E  
	int "minDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Delay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT11_INST02_MIN_PDELAY_REQ_INTERVAL
	depends on PORT11_INST02_MECHANISM_P2P  
	int "minPDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minPDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Pdelay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT11_INST02_L1SYNC_ENABLED
	depends on PORT11_INST02_PROFILE_CUSTOM  
	bool "L1SyncBasicPortDS.L1SyncEnabled"
	default y
	help
	  This parameter specifies whether the L1Sync option is enabled on the PTP Port. If
	  L1SyncEnabled is TRUE, then the L1Sync message exchange is supported and enabled

config PORT11_INST02_L1SYNC_INTERVAL
	depends on PORT11_INST02_PROFILE_HA || (PORT11_INST02_PROFILE_CUSTOM &&  PORT11_INST02_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.logL1SyncInterval"
	default 0
	range -4 4
	help
	  The L1Sync interval specifies the time interval
	  between successive periodic L1_SYNC TLV.
	  The value is the logarithm to the base 2.
	  The configurable range shall be -4 to 4

config PORT11_INST02_L1SYNC_RECEIPT_TIMEOUT
	depends on PORT11_INST02_PROFILE_HA || (PORT11_INST02_PROFILE_CUSTOM &&  PORT11_INST02_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.L1SyncReceiptTimeout"
	default 3
	range 2 10
	help
	  The value of L1SyncReceiptTimeout specifies the number of elapsed 
	  L1SyncIntervals that must pass without reception of the L1_SYNC TLV 
	  before the L1_SYNC TLV reception timeout occurs.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 10

config PORT11_INST02_L1SYNC_TX_COHERENCY_IS_REQUIRED
	depends on PORT11_INST02_PROFILE_CUSTOM &&  PORT11_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.txCoherencyIsRequired"
	default y
	help
	   The Boolean attribute txCoherentIsRequired specifies the configuration of the L1Sync port and the
	   expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	   required to be a transmit coherent port.

config PORT11_INST02_L1SYNC_RX_COHERENCY_IS_REQUIRED
	depends on PORT11_INST02_PROFILE_CUSTOM &&  PORT11_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.rxCoherencyIsRequired"
	default y
	help
	  The Boolean attribute rxCoherentIsRequired specifies the configuration of the L1Sync port and the
	  expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	  required to be a receive coherent port.

config PORT11_INST02_L1SYNC_CONGRUENCY_IS_REQUIRED
	depends on PORT11_INST02_PROFILE_CUSTOM &&  PORT11_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.congruencyIsRequired"
	default y
	help
	  The Boolean attribute congruentIsRequired specifies configuration of the L1Sync port and the expected
	  configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is required to
	  be a congruent port

config PORT11_INST02_L1SYNC_OPT_PARAMS_ENABLED
	depends on PORT11_INST02_PROFILE_CUSTOM &&  PORT11_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.optParamsEnabled"
	default n
	help
	  The Boolean attribute optParamsEnabled specifies whether the L1Sync port transmitting the L1_SYNC
	  TLV extends this TLV with the information about the optional parameters.

endmenu

endmenu

menu "PORT 12"

config PORT12_IFACE
	string "Network interface"
	default "wri12"
	help
	  Used to set the physivcal port interface name: "wri[1-18]"

config PORT12_FIBER
	int  "Fiber type"
	default 0
	help
	  Used to set the type of fiber (number referring to the corresponding 
	  FIBERXX_PARAMS)

config PORT12_CONSTANT_ASYMMETRY
	int "asymmetryCorrectionPortDS.constantAsymmetry"
	default 0
	help
	   Used to set the constant delay asymmetry.

choice
	prompt "Number of port instances"
	default PORT12_INSTANCE_COUNT_1
	config PORT12_INSTANCE_COUNT_0
	  bool "0"
	config PORT12_INSTANCE_COUNT_1
	  bool "1"
	config PORT12_INSTANCE_COUNT_2
	  bool "2"
endchoice

menu "Instance 1"
	depends on PORT12_INSTANCE_COUNT_1 ||  PORT12_INSTANCE_COUNT_2  

choice
    prompt "Network protocol"
    default PORT12_INST01_PROTOCOL_RAW
    config PORT12_INST01_PROTOCOL_RAW
        bool "IEEE 802.3"
    config PORT12_INST01_PROTOCOL_UDP_IPV4
        bool "UDP/Ipv4"
endchoice

choice
    prompt "Delay mechanism"
    default PORT12_INST01_MECHANISM_E2E
    config PORT12_INST01_MECHANISM_E2E
        bool "End-to-end"
    config PORT12_INST01_MECHANISM_P2P
        bool "Peer-to-peer"
endchoice

config PORT12_INST01_MONITOR
	bool "SNMP monitoring"
	default y
	help
	  Option to disable or enable triggering errors in SNMP on a port

choice
    prompt "Profile"
    default PORT12_INST01_PROFILE_HA
    config PORT12_INST01_PROFILE_PTP
        bool "PTP"
    config PORT12_INST01_PROFILE_WR
        bool "WhiteRabbit"
    config PORT12_INST01_PROFILE_HA
        bool "HighAccuracy"
    config PORT12_INST01_PROFILE_CUSTOM
        bool "Custom"
endchoice

choice
    prompt "Desired state"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED
    default PORT12_INST01_DESIRADE_STATE_MASTER
    config PORT12_INST01_DESIRADE_STATE_MASTER
        bool "Master"
    config PORT12_INST01_DESIRADE_STATE_SLAVE
        bool "Slave"
    config PORT12_INST01_DESIRADE_STATE_PASSIVE
        bool "Passive"
endchoice

config PORT12_INST01_ASYMMETRY_CORRECTION_ENABLE
	depends on PORT12_INST01_PROFILE_HA="n" 
    bool "asymmetryCorrectionPortDS.enable"
    default true
	help
	  When supported, the value TRUE shall indicate that the mechanism of for the calculation
	  of the <delayAsymmetry> for certain media is enabled on the PTP port.

choice
    prompt "BMCA mode"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED!=y
    default PORT12_INST01_BMODE_MASTER_ONLY if TIME_BC
    default PORT12_INST01_BMODE_AUTO
    config PORT12_INST01_BMODE_MASTER_ONLY
        bool "MasterOnly"
    config PORT12_INST01_BMODE_AUTO
        bool "Auto"
endchoice

config PORT12_INST01_EGRESS_LATENCY
    depends on PORT12_INST01_PROFILE_WR!=y
    int "timestampCorrectionPortDS.egressLatency (ps)"
    default 225645
 help
	 Defines the transmission constant delay (ps)

config PORT12_INST01_INGRESS_LATENCY
    depends on PORT12_INST01_PROFILE_WR!=y
    int "timestampCorrectionPortDS.ingressLatency (ps)"
    default 229107
 help
	 Defines the reception constant delay (ps)

config PORT12_INST01_ANNOUNCE_INTERVAL
	int "logAnnounceInterval" 
	default 1
	range 0 4
	help
	  The mean time interval between transmissions of successive
	  Announce messages. The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 4.

config PORT12_INST01_ANNOUNCE_RECEIPT_TIMEOUT
	int "announceReceiptTimeout"
	default 3
	range 2 255
	help
	  The announceReceiptTimeout specifies the number of announceIntervals 
	  that must pass without receipt of an Announce message before the 
	  occurrence of the event ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 255

config PORT12_INST01_SYNC_INTERVAL
	int "logSyncInterval"
	default 0
	range -1 1
	help
	  The mean time interval between transmission of successive
	  Sync messages, i.e., the sync-interval, when transmitted
	  as multicast messages. The value is the logarithm to the base 2.
	  The configurable range shall be -1 to +1

config PORT12_INST01_MIN_DELAY_REQ_INTERVAL
	depends on PORT12_INST01_MECHANISM_E2E  
	int "minDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Delay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT12_INST01_MIN_PDELAY_REQ_INTERVAL
	depends on PORT12_INST01_MECHANISM_P2P  
	int "minPDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minPDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Pdelay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT12_INST01_L1SYNC_ENABLED
	depends on PORT12_INST01_PROFILE_CUSTOM  
	bool "L1SyncBasicPortDS.L1SyncEnabled"
	default y
	help
	  This parameter specifies whether the L1Sync option is enabled on the PTP Port. If
	  L1SyncEnabled is TRUE, then the L1Sync message exchange is supported and enabled

config PORT12_INST01_L1SYNC_INTERVAL
	depends on PORT12_INST01_PROFILE_HA || (PORT12_INST01_PROFILE_CUSTOM &&  PORT12_INST01_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.logL1SyncInterval"
	default 0
	range -4 4
	help
	  The L1Sync interval specifies the time interval
	  between successive periodic L1_SYNC TLV.
	  The value is the logarithm to the base 2.
	  The configurable range shall be -4 to 4

config PORT12_INST01_L1SYNC_RECEIPT_TIMEOUT
	depends on PORT12_INST01_PROFILE_HA || (PORT12_INST01_PROFILE_CUSTOM &&  PORT12_INST01_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.L1SyncReceiptTimeout"
	default 3
	range 2 10
	help
	  The value of L1SyncReceiptTimeout specifies the number of elapsed 
	  L1SyncIntervals that must pass without reception of the L1_SYNC TLV 
	  before the L1_SYNC TLV reception timeout occurs.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 10

config PORT12_INST01_L1SYNC_TX_COHERENCY_IS_REQUIRED
	depends on PORT12_INST01_PROFILE_CUSTOM &&  PORT12_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.txCoherencyIsRequired"
	default y
	help
	   The Boolean attribute txCoherentIsRequired specifies the configuration of the L1Sync port and the
	   expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	   required to be a transmit coherent port.

config PORT12_INST01_L1SYNC_RX_COHERENCY_IS_REQUIRED
	depends on PORT12_INST01_PROFILE_CUSTOM &&  PORT12_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.rxCoherencyIsRequired"
	default y
	help
	  The Boolean attribute rxCoherentIsRequired specifies the configuration of the L1Sync port and the
	  expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	  required to be a receive coherent port.

config PORT12_INST01_L1SYNC_CONGRUENCY_IS_REQUIRED
	depends on PORT12_INST01_PROFILE_CUSTOM &&  PORT12_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.congruencyIsRequired"
	default y
	help
	  The Boolean attribute congruentIsRequired specifies configuration of the L1Sync port and the expected
	  configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is required to
	  be a congruent port

config PORT12_INST01_L1SYNC_OPT_PARAMS_ENABLED
	depends on PORT12_INST01_PROFILE_CUSTOM &&  PORT12_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.optParamsEnabled"
	default n
	help
	  The Boolean attribute optParamsEnabled specifies whether the L1Sync port transmitting the L1_SYNC
	  TLV extends this TLV with the information about the optional parameters.

endmenu

menu "Instance 2"
	depends on PORT12_INSTANCE_COUNT_2  

choice
    prompt "Network protocol"
    default PORT12_INST02_PROTOCOL_RAW
    config PORT12_INST02_PROTOCOL_RAW
        bool "IEEE 802.3"
    config PORT12_INST02_PROTOCOL_UDP_IPV4
        bool "UDP/Ipv4"
endchoice

choice
    prompt "Delay mechanism"
    default PORT12_INST02_MECHANISM_E2E
    config PORT12_INST02_MECHANISM_E2E
        bool "End-to-end"
    config PORT12_INST02_MECHANISM_P2P
        bool "Peer-to-peer"
endchoice

config PORT12_INST02_MONITOR
	bool "SNMP monitoring"
	default y
	help
	  Option to disable or enable triggering errors in SNMP on a port

choice
    prompt "Profile"
    default PORT12_INST02_PROFILE_HA
    config PORT12_INST02_PROFILE_PTP
        bool "PTP"
    config PORT12_INST02_PROFILE_WR
        bool "WhiteRabbit"
    config PORT12_INST02_PROFILE_HA
        bool "HighAccuracy"
    config PORT12_INST02_PROFILE_CUSTOM
        bool "Custom"
endchoice

choice
    prompt "Desired state"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED
    default PORT12_INST02_DESIRADE_STATE_MASTER
    config PORT12_INST02_DESIRADE_STATE_MASTER
        bool "Master"
    config PORT12_INST02_DESIRADE_STATE_SLAVE
        bool "Slave"
    config PORT12_INST02_DESIRADE_STATE_PASSIVE
        bool "Passive"
endchoice

config PORT12_INST02_ASYMMETRY_CORRECTION_ENABLE
	depends on PORT12_INST02_PROFILE_HA="n" 
    bool "asymmetryCorrectionPortDS.enable"
    default true
	help
	  When supported, the value TRUE shall indicate that the mechanism of for the calculation
	  of the <delayAsymmetry> for certain media is enabled on the PTP port.

choice
    prompt "BMCA mode"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED!=y
    default PORT12_INST02_BMODE_MASTER_ONLY if TIME_BC
    default PORT12_INST02_BMODE_AUTO
    config PORT12_INST02_BMODE_MASTER_ONLY
        bool "MasterOnly"
    config PORT12_INST02_BMODE_AUTO
        bool "Auto"
endchoice

config PORT12_INST02_EGRESS_LATENCY
    depends on PORT12_INST02_PROFILE_WR!=y
    int "timestampCorrectionPortDS.egressLatency (ps)"
    default 225645
 help
	 Defines the transmission constant delay (ps)

config PORT12_INST02_INGRESS_LATENCY
    depends on PORT12_INST02_PROFILE_WR!=y
    int "timestampCorrectionPortDS.ingressLatency (ps)"
    default 229107
 help
	 Defines the reception constant delay (ps)

config PORT12_INST02_ANNOUNCE_INTERVAL
	int "logAnnounceInterval" 
	default 1
	range 0 4
	help
	  The mean time interval between transmissions of successive
	  Announce messages. The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 4.

config PORT12_INST02_ANNOUNCE_RECEIPT_TIMEOUT
	int "announceReceiptTimeout"
	default 3
	range 2 255
	help
	  The announceReceiptTimeout specifies the number of announceIntervals 
	  that must pass without receipt of an Announce message before the 
	  occurrence of the event ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 255

config PORT12_INST02_SYNC_INTERVAL
	int "logSyncInterval"
	default 0
	range -1 1
	help
	  The mean time interval between transmission of successive
	  Sync messages, i.e., the sync-interval, when transmitted
	  as multicast messages. The value is the logarithm to the base 2.
	  The configurable range shall be -1 to +1

config PORT12_INST02_MIN_DELAY_REQ_INTERVAL
	depends on PORT12_INST02_MECHANISM_E2E  
	int "minDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Delay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT12_INST02_MIN_PDELAY_REQ_INTERVAL
	depends on PORT12_INST02_MECHANISM_P2P  
	int "minPDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minPDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Pdelay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT12_INST02_L1SYNC_ENABLED
	depends on PORT12_INST02_PROFILE_CUSTOM  
	bool "L1SyncBasicPortDS.L1SyncEnabled"
	default y
	help
	  This parameter specifies whether the L1Sync option is enabled on the PTP Port. If
	  L1SyncEnabled is TRUE, then the L1Sync message exchange is supported and enabled

config PORT12_INST02_L1SYNC_INTERVAL
	depends on PORT12_INST02_PROFILE_HA || (PORT12_INST02_PROFILE_CUSTOM &&  PORT12_INST02_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.logL1SyncInterval"
	default 0
	range -4 4
	help
	  The L1Sync interval specifies the time interval
	  between successive periodic L1_SYNC TLV.
	  The value is the logarithm to the base 2.
	  The configurable range shall be -4 to 4

config PORT12_INST02_L1SYNC_RECEIPT_TIMEOUT
	depends on PORT12_INST02_PROFILE_HA || (PORT12_INST02_PROFILE_CUSTOM &&  PORT12_INST02_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.L1SyncReceiptTimeout"
	default 3
	range 2 10
	help
	  The value of L1SyncReceiptTimeout specifies the number of elapsed 
	  L1SyncIntervals that must pass without reception of the L1_SYNC TLV 
	  before the L1_SYNC TLV reception timeout occurs.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 10

config PORT12_INST02_L1SYNC_TX_COHERENCY_IS_REQUIRED
	depends on PORT12_INST02_PROFILE_CUSTOM &&  PORT12_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.txCoherencyIsRequired"
	default y
	help
	   The Boolean attribute txCoherentIsRequired specifies the configuration of the L1Sync port and the
	   expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	   required to be a transmit coherent port.

config PORT12_INST02_L1SYNC_RX_COHERENCY_IS_REQUIRED
	depends on PORT12_INST02_PROFILE_CUSTOM &&  PORT12_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.rxCoherencyIsRequired"
	default y
	help
	  The Boolean attribute rxCoherentIsRequired specifies the configuration of the L1Sync port and the
	  expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	  required to be a receive coherent port.

config PORT12_INST02_L1SYNC_CONGRUENCY_IS_REQUIRED
	depends on PORT12_INST02_PROFILE_CUSTOM &&  PORT12_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.congruencyIsRequired"
	default y
	help
	  The Boolean attribute congruentIsRequired specifies configuration of the L1Sync port and the expected
	  configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is required to
	  be a congruent port

config PORT12_INST02_L1SYNC_OPT_PARAMS_ENABLED
	depends on PORT12_INST02_PROFILE_CUSTOM &&  PORT12_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.optParamsEnabled"
	default n
	help
	  The Boolean attribute optParamsEnabled specifies whether the L1Sync port transmitting the L1_SYNC
	  TLV extends this TLV with the information about the optional parameters.

endmenu

endmenu

menu "PORT 13"

config PORT13_IFACE
	string "Network interface"
	default "wri13"
	help
	  Used to set the physivcal port interface name: "wri[1-18]"

config PORT13_FIBER
	int  "Fiber type"
	default 0
	help
	  Used to set the type of fiber (number referring to the corresponding 
	  FIBERXX_PARAMS)

config PORT13_CONSTANT_ASYMMETRY
	int "asymmetryCorrectionPortDS.constantAsymmetry"
	default 0
	help
	   Used to set the constant delay asymmetry.

choice
	prompt "Number of port instances"
	default PORT13_INSTANCE_COUNT_1
	config PORT13_INSTANCE_COUNT_0
	  bool "0"
	config PORT13_INSTANCE_COUNT_1
	  bool "1"
	config PORT13_INSTANCE_COUNT_2
	  bool "2"
endchoice

menu "Instance 1"
	depends on PORT13_INSTANCE_COUNT_1 ||  PORT13_INSTANCE_COUNT_2  

choice
    prompt "Network protocol"
    default PORT13_INST01_PROTOCOL_RAW
    config PORT13_INST01_PROTOCOL_RAW
        bool "IEEE 802.3"
    config PORT13_INST01_PROTOCOL_UDP_IPV4
        bool "UDP/Ipv4"
endchoice

choice
    prompt "Delay mechanism"
    default PORT13_INST01_MECHANISM_E2E
    config PORT13_INST01_MECHANISM_E2E
        bool "End-to-end"
    config PORT13_INST01_MECHANISM_P2P
        bool "Peer-to-peer"
endchoice

config PORT13_INST01_MONITOR
	bool "SNMP monitoring"
	default y
	help
	  Option to disable or enable triggering errors in SNMP on a port

choice
    prompt "Profile"
    default PORT13_INST01_PROFILE_HA
    config PORT13_INST01_PROFILE_PTP
        bool "PTP"
    config PORT13_INST01_PROFILE_WR
        bool "WhiteRabbit"
    config PORT13_INST01_PROFILE_HA
        bool "HighAccuracy"
    config PORT13_INST01_PROFILE_CUSTOM
        bool "Custom"
endchoice

choice
    prompt "Desired state"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED
    default PORT13_INST01_DESIRADE_STATE_MASTER
    config PORT13_INST01_DESIRADE_STATE_MASTER
        bool "Master"
    config PORT13_INST01_DESIRADE_STATE_SLAVE
        bool "Slave"
    config PORT13_INST01_DESIRADE_STATE_PASSIVE
        bool "Passive"
endchoice

config PORT13_INST01_ASYMMETRY_CORRECTION_ENABLE
	depends on PORT13_INST01_PROFILE_HA="n" 
    bool "asymmetryCorrectionPortDS.enable"
    default true
	help
	  When supported, the value TRUE shall indicate that the mechanism of for the calculation
	  of the <delayAsymmetry> for certain media is enabled on the PTP port.

choice
    prompt "BMCA mode"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED!=y
    default PORT13_INST01_BMODE_MASTER_ONLY if TIME_BC
    default PORT13_INST01_BMODE_AUTO
    config PORT13_INST01_BMODE_MASTER_ONLY
        bool "MasterOnly"
    config PORT13_INST01_BMODE_AUTO
        bool "Auto"
endchoice

config PORT13_INST01_EGRESS_LATENCY
    depends on PORT13_INST01_PROFILE_WR!=y
    int "timestampCorrectionPortDS.egressLatency (ps)"
    default 225801
 help
	 Defines the transmission constant delay (ps)

config PORT13_INST01_INGRESS_LATENCY
    depends on PORT13_INST01_PROFILE_WR!=y
    int "timestampCorrectionPortDS.ingressLatency (ps)"
    default 229225
 help
	 Defines the reception constant delay (ps)

config PORT13_INST01_ANNOUNCE_INTERVAL
	int "logAnnounceInterval" 
	default 1
	range 0 4
	help
	  The mean time interval between transmissions of successive
	  Announce messages. The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 4.

config PORT13_INST01_ANNOUNCE_RECEIPT_TIMEOUT
	int "announceReceiptTimeout"
	default 3
	range 2 255
	help
	  The announceReceiptTimeout specifies the number of announceIntervals 
	  that must pass without receipt of an Announce message before the 
	  occurrence of the event ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 255

config PORT13_INST01_SYNC_INTERVAL
	int "logSyncInterval"
	default 0
	range -1 1
	help
	  The mean time interval between transmission of successive
	  Sync messages, i.e., the sync-interval, when transmitted
	  as multicast messages. The value is the logarithm to the base 2.
	  The configurable range shall be -1 to +1

config PORT13_INST01_MIN_DELAY_REQ_INTERVAL
	depends on PORT13_INST01_MECHANISM_E2E  
	int "minDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Delay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT13_INST01_MIN_PDELAY_REQ_INTERVAL
	depends on PORT13_INST01_MECHANISM_P2P  
	int "minPDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minPDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Pdelay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT13_INST01_L1SYNC_ENABLED
	depends on PORT13_INST01_PROFILE_CUSTOM  
	bool "L1SyncBasicPortDS.L1SyncEnabled"
	default y
	help
	  This parameter specifies whether the L1Sync option is enabled on the PTP Port. If
	  L1SyncEnabled is TRUE, then the L1Sync message exchange is supported and enabled

config PORT13_INST01_L1SYNC_INTERVAL
	depends on PORT13_INST01_PROFILE_HA || (PORT13_INST01_PROFILE_CUSTOM &&  PORT13_INST01_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.logL1SyncInterval"
	default 0
	range -4 4
	help
	  The L1Sync interval specifies the time interval
	  between successive periodic L1_SYNC TLV.
	  The value is the logarithm to the base 2.
	  The configurable range shall be -4 to 4

config PORT13_INST01_L1SYNC_RECEIPT_TIMEOUT
	depends on PORT13_INST01_PROFILE_HA || (PORT13_INST01_PROFILE_CUSTOM &&  PORT13_INST01_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.L1SyncReceiptTimeout"
	default 3
	range 2 10
	help
	  The value of L1SyncReceiptTimeout specifies the number of elapsed 
	  L1SyncIntervals that must pass without reception of the L1_SYNC TLV 
	  before the L1_SYNC TLV reception timeout occurs.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 10

config PORT13_INST01_L1SYNC_TX_COHERENCY_IS_REQUIRED
	depends on PORT13_INST01_PROFILE_CUSTOM &&  PORT13_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.txCoherencyIsRequired"
	default y
	help
	   The Boolean attribute txCoherentIsRequired specifies the configuration of the L1Sync port and the
	   expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	   required to be a transmit coherent port.

config PORT13_INST01_L1SYNC_RX_COHERENCY_IS_REQUIRED
	depends on PORT13_INST01_PROFILE_CUSTOM &&  PORT13_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.rxCoherencyIsRequired"
	default y
	help
	  The Boolean attribute rxCoherentIsRequired specifies the configuration of the L1Sync port and the
	  expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	  required to be a receive coherent port.

config PORT13_INST01_L1SYNC_CONGRUENCY_IS_REQUIRED
	depends on PORT13_INST01_PROFILE_CUSTOM &&  PORT13_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.congruencyIsRequired"
	default y
	help
	  The Boolean attribute congruentIsRequired specifies configuration of the L1Sync port and the expected
	  configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is required to
	  be a congruent port

config PORT13_INST01_L1SYNC_OPT_PARAMS_ENABLED
	depends on PORT13_INST01_PROFILE_CUSTOM &&  PORT13_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.optParamsEnabled"
	default n
	help
	  The Boolean attribute optParamsEnabled specifies whether the L1Sync port transmitting the L1_SYNC
	  TLV extends this TLV with the information about the optional parameters.

endmenu

menu "Instance 2"
	depends on PORT13_INSTANCE_COUNT_2  

choice
    prompt "Network protocol"
    default PORT13_INST02_PROTOCOL_RAW
    config PORT13_INST02_PROTOCOL_RAW
        bool "IEEE 802.3"
    config PORT13_INST02_PROTOCOL_UDP_IPV4
        bool "UDP/Ipv4"
endchoice

choice
    prompt "Delay mechanism"
    default PORT13_INST02_MECHANISM_E2E
    config PORT13_INST02_MECHANISM_E2E
        bool "End-to-end"
    config PORT13_INST02_MECHANISM_P2P
        bool "Peer-to-peer"
endchoice

config PORT13_INST02_MONITOR
	bool "SNMP monitoring"
	default y
	help
	  Option to disable or enable triggering errors in SNMP on a port

choice
    prompt "Profile"
    default PORT13_INST02_PROFILE_HA
    config PORT13_INST02_PROFILE_PTP
        bool "PTP"
    config PORT13_INST02_PROFILE_WR
        bool "WhiteRabbit"
    config PORT13_INST02_PROFILE_HA
        bool "HighAccuracy"
    config PORT13_INST02_PROFILE_CUSTOM
        bool "Custom"
endchoice

choice
    prompt "Desired state"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED
    default PORT13_INST02_DESIRADE_STATE_MASTER
    config PORT13_INST02_DESIRADE_STATE_MASTER
        bool "Master"
    config PORT13_INST02_DESIRADE_STATE_SLAVE
        bool "Slave"
    config PORT13_INST02_DESIRADE_STATE_PASSIVE
        bool "Passive"
endchoice

config PORT13_INST02_ASYMMETRY_CORRECTION_ENABLE
	depends on PORT13_INST02_PROFILE_HA="n" 
    bool "asymmetryCorrectionPortDS.enable"
    default true
	help
	  When supported, the value TRUE shall indicate that the mechanism of for the calculation
	  of the <delayAsymmetry> for certain media is enabled on the PTP port.

choice
    prompt "BMCA mode"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED!=y
    default PORT13_INST02_BMODE_MASTER_ONLY if TIME_BC
    default PORT13_INST02_BMODE_AUTO
    config PORT13_INST02_BMODE_MASTER_ONLY
        bool "MasterOnly"
    config PORT13_INST02_BMODE_AUTO
        bool "Auto"
endchoice

config PORT13_INST02_EGRESS_LATENCY
    depends on PORT13_INST02_PROFILE_WR!=y
    int "timestampCorrectionPortDS.egressLatency (ps)"
    default 225801
 help
	 Defines the transmission constant delay (ps)

config PORT13_INST02_INGRESS_LATENCY
    depends on PORT13_INST02_PROFILE_WR!=y
    int "timestampCorrectionPortDS.ingressLatency (ps)"
    default 229225
 help
	 Defines the reception constant delay (ps)

config PORT13_INST02_ANNOUNCE_INTERVAL
	int "logAnnounceInterval" 
	default 1
	range 0 4
	help
	  The mean time interval between transmissions of successive
	  Announce messages. The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 4.

config PORT13_INST02_ANNOUNCE_RECEIPT_TIMEOUT
	int "announceReceiptTimeout"
	default 3
	range 2 255
	help
	  The announceReceiptTimeout specifies the number of announceIntervals 
	  that must pass without receipt of an Announce message before the 
	  occurrence of the event ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 255

config PORT13_INST02_SYNC_INTERVAL
	int "logSyncInterval"
	default 0
	range -1 1
	help
	  The mean time interval between transmission of successive
	  Sync messages, i.e., the sync-interval, when transmitted
	  as multicast messages. The value is the logarithm to the base 2.
	  The configurable range shall be -1 to +1

config PORT13_INST02_MIN_DELAY_REQ_INTERVAL
	depends on PORT13_INST02_MECHANISM_E2E  
	int "minDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Delay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT13_INST02_MIN_PDELAY_REQ_INTERVAL
	depends on PORT13_INST02_MECHANISM_P2P  
	int "minPDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minPDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Pdelay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT13_INST02_L1SYNC_ENABLED
	depends on PORT13_INST02_PROFILE_CUSTOM  
	bool "L1SyncBasicPortDS.L1SyncEnabled"
	default y
	help
	  This parameter specifies whether the L1Sync option is enabled on the PTP Port. If
	  L1SyncEnabled is TRUE, then the L1Sync message exchange is supported and enabled

config PORT13_INST02_L1SYNC_INTERVAL
	depends on PORT13_INST02_PROFILE_HA || (PORT13_INST02_PROFILE_CUSTOM &&  PORT13_INST02_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.logL1SyncInterval"
	default 0
	range -4 4
	help
	  The L1Sync interval specifies the time interval
	  between successive periodic L1_SYNC TLV.
	  The value is the logarithm to the base 2.
	  The configurable range shall be -4 to 4

config PORT13_INST02_L1SYNC_RECEIPT_TIMEOUT
	depends on PORT13_INST02_PROFILE_HA || (PORT13_INST02_PROFILE_CUSTOM &&  PORT13_INST02_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.L1SyncReceiptTimeout"
	default 3
	range 2 10
	help
	  The value of L1SyncReceiptTimeout specifies the number of elapsed 
	  L1SyncIntervals that must pass without reception of the L1_SYNC TLV 
	  before the L1_SYNC TLV reception timeout occurs.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 10

config PORT13_INST02_L1SYNC_TX_COHERENCY_IS_REQUIRED
	depends on PORT13_INST02_PROFILE_CUSTOM &&  PORT13_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.txCoherencyIsRequired"
	default y
	help
	   The Boolean attribute txCoherentIsRequired specifies the configuration of the L1Sync port and the
	   expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	   required to be a transmit coherent port.

config PORT13_INST02_L1SYNC_RX_COHERENCY_IS_REQUIRED
	depends on PORT13_INST02_PROFILE_CUSTOM &&  PORT13_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.rxCoherencyIsRequired"
	default y
	help
	  The Boolean attribute rxCoherentIsRequired specifies the configuration of the L1Sync port and the
	  expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	  required to be a receive coherent port.

config PORT13_INST02_L1SYNC_CONGRUENCY_IS_REQUIRED
	depends on PORT13_INST02_PROFILE_CUSTOM &&  PORT13_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.congruencyIsRequired"
	default y
	help
	  The Boolean attribute congruentIsRequired specifies configuration of the L1Sync port and the expected
	  configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is required to
	  be a congruent port

config PORT13_INST02_L1SYNC_OPT_PARAMS_ENABLED
	depends on PORT13_INST02_PROFILE_CUSTOM &&  PORT13_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.optParamsEnabled"
	default n
	help
	  The Boolean attribute optParamsEnabled specifies whether the L1Sync port transmitting the L1_SYNC
	  TLV extends this TLV with the information about the optional parameters.

endmenu

endmenu

menu "PORT 14"

config PORT14_IFACE
	string "Network interface"
	default "wri14"
	help
	  Used to set the physivcal port interface name: "wri[1-18]"

config PORT14_FIBER
	int  "Fiber type"
	default 0
	help
	  Used to set the type of fiber (number referring to the corresponding 
	  FIBERXX_PARAMS)

config PORT14_CONSTANT_ASYMMETRY
	int "asymmetryCorrectionPortDS.constantAsymmetry"
	default 0
	help
	   Used to set the constant delay asymmetry.

choice
	prompt "Number of port instances"
	default PORT14_INSTANCE_COUNT_1
	config PORT14_INSTANCE_COUNT_0
	  bool "0"
	config PORT14_INSTANCE_COUNT_1
	  bool "1"
	config PORT14_INSTANCE_COUNT_2
	  bool "2"
endchoice

menu "Instance 1"
	depends on PORT14_INSTANCE_COUNT_1 ||  PORT14_INSTANCE_COUNT_2  

choice
    prompt "Network protocol"
    default PORT14_INST01_PROTOCOL_RAW
    config PORT14_INST01_PROTOCOL_RAW
        bool "IEEE 802.3"
    config PORT14_INST01_PROTOCOL_UDP_IPV4
        bool "UDP/Ipv4"
endchoice

choice
    prompt "Delay mechanism"
    default PORT14_INST01_MECHANISM_E2E
    config PORT14_INST01_MECHANISM_E2E
        bool "End-to-end"
    config PORT14_INST01_MECHANISM_P2P
        bool "Peer-to-peer"
endchoice

config PORT14_INST01_MONITOR
	bool "SNMP monitoring"
	default y
	help
	  Option to disable or enable triggering errors in SNMP on a port

choice
    prompt "Profile"
    default PORT14_INST01_PROFILE_HA
    config PORT14_INST01_PROFILE_PTP
        bool "PTP"
    config PORT14_INST01_PROFILE_WR
        bool "WhiteRabbit"
    config PORT14_INST01_PROFILE_HA
        bool "HighAccuracy"
    config PORT14_INST01_PROFILE_CUSTOM
        bool "Custom"
endchoice

choice
    prompt "Desired state"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED
    default PORT14_INST01_DESIRADE_STATE_MASTER
    config PORT14_INST01_DESIRADE_STATE_MASTER
        bool "Master"
    config PORT14_INST01_DESIRADE_STATE_SLAVE
        bool "Slave"
    config PORT14_INST01_DESIRADE_STATE_PASSIVE
        bool "Passive"
endchoice

config PORT14_INST01_ASYMMETRY_CORRECTION_ENABLE
	depends on PORT14_INST01_PROFILE_HA="n" 
    bool "asymmetryCorrectionPortDS.enable"
    default true
	help
	  When supported, the value TRUE shall indicate that the mechanism of for the calculation
	  of the <delayAsymmetry> for certain media is enabled on the PTP port.

choice
    prompt "BMCA mode"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED!=y
    default PORT14_INST01_BMODE_MASTER_ONLY if TIME_BC
    default PORT14_INST01_BMODE_AUTO
    config PORT14_INST01_BMODE_MASTER_ONLY
        bool "MasterOnly"
    config PORT14_INST01_BMODE_AUTO
        bool "Auto"
endchoice

config PORT14_INST01_EGRESS_LATENCY
    depends on PORT14_INST01_PROFILE_WR!=y
    int "timestampCorrectionPortDS.egressLatency (ps)"
    default 225983
 help
	 Defines the transmission constant delay (ps)

config PORT14_INST01_INGRESS_LATENCY
    depends on PORT14_INST01_PROFILE_WR!=y
    int "timestampCorrectionPortDS.ingressLatency (ps)"
    default 229463
 help
	 Defines the reception constant delay (ps)

config PORT14_INST01_ANNOUNCE_INTERVAL
	int "logAnnounceInterval" 
	default 1
	range 0 4
	help
	  The mean time interval between transmissions of successive
	  Announce messages. The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 4.

config PORT14_INST01_ANNOUNCE_RECEIPT_TIMEOUT
	int "announceReceiptTimeout"
	default 3
	range 2 255
	help
	  The announceReceiptTimeout specifies the number of announceIntervals 
	  that must pass without receipt of an Announce message before the 
	  occurrence of the event ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 255

config PORT14_INST01_SYNC_INTERVAL
	int "logSyncInterval"
	default 0
	range -1 1
	help
	  The mean time interval between transmission of successive
	  Sync messages, i.e., the sync-interval, when transmitted
	  as multicast messages. The value is the logarithm to the base 2.
	  The configurable range shall be -1 to +1

config PORT14_INST01_MIN_DELAY_REQ_INTERVAL
	depends on PORT14_INST01_MECHANISM_E2E  
	int "minDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Delay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT14_INST01_MIN_PDELAY_REQ_INTERVAL
	depends on PORT14_INST01_MECHANISM_P2P  
	int "minPDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minPDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Pdelay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT14_INST01_L1SYNC_ENABLED
	depends on PORT14_INST01_PROFILE_CUSTOM  
	bool "L1SyncBasicPortDS.L1SyncEnabled"
	default y
	help
	  This parameter specifies whether the L1Sync option is enabled on the PTP Port. If
	  L1SyncEnabled is TRUE, then the L1Sync message exchange is supported and enabled

config PORT14_INST01_L1SYNC_INTERVAL
	depends on PORT14_INST01_PROFILE_HA || (PORT14_INST01_PROFILE_CUSTOM &&  PORT14_INST01_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.logL1SyncInterval"
	default 0
	range -4 4
	help
	  The L1Sync interval specifies the time interval
	  between successive periodic L1_SYNC TLV.
	  The value is the logarithm to the base 2.
	  The configurable range shall be -4 to 4

config PORT14_INST01_L1SYNC_RECEIPT_TIMEOUT
	depends on PORT14_INST01_PROFILE_HA || (PORT14_INST01_PROFILE_CUSTOM &&  PORT14_INST01_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.L1SyncReceiptTimeout"
	default 3
	range 2 10
	help
	  The value of L1SyncReceiptTimeout specifies the number of elapsed 
	  L1SyncIntervals that must pass without reception of the L1_SYNC TLV 
	  before the L1_SYNC TLV reception timeout occurs.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 10

config PORT14_INST01_L1SYNC_TX_COHERENCY_IS_REQUIRED
	depends on PORT14_INST01_PROFILE_CUSTOM &&  PORT14_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.txCoherencyIsRequired"
	default y
	help
	   The Boolean attribute txCoherentIsRequired specifies the configuration of the L1Sync port and the
	   expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	   required to be a transmit coherent port.

config PORT14_INST01_L1SYNC_RX_COHERENCY_IS_REQUIRED
	depends on PORT14_INST01_PROFILE_CUSTOM &&  PORT14_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.rxCoherencyIsRequired"
	default y
	help
	  The Boolean attribute rxCoherentIsRequired specifies the configuration of the L1Sync port and the
	  expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	  required to be a receive coherent port.

config PORT14_INST01_L1SYNC_CONGRUENCY_IS_REQUIRED
	depends on PORT14_INST01_PROFILE_CUSTOM &&  PORT14_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.congruencyIsRequired"
	default y
	help
	  The Boolean attribute congruentIsRequired specifies configuration of the L1Sync port and the expected
	  configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is required to
	  be a congruent port

config PORT14_INST01_L1SYNC_OPT_PARAMS_ENABLED
	depends on PORT14_INST01_PROFILE_CUSTOM &&  PORT14_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.optParamsEnabled"
	default n
	help
	  The Boolean attribute optParamsEnabled specifies whether the L1Sync port transmitting the L1_SYNC
	  TLV extends this TLV with the information about the optional parameters.

endmenu

menu "Instance 2"
	depends on PORT14_INSTANCE_COUNT_2  

choice
    prompt "Network protocol"
    default PORT14_INST02_PROTOCOL_RAW
    config PORT14_INST02_PROTOCOL_RAW
        bool "IEEE 802.3"
    config PORT14_INST02_PROTOCOL_UDP_IPV4
        bool "UDP/Ipv4"
endchoice

choice
    prompt "Delay mechanism"
    default PORT14_INST02_MECHANISM_E2E
    config PORT14_INST02_MECHANISM_E2E
        bool "End-to-end"
    config PORT14_INST02_MECHANISM_P2P
        bool "Peer-to-peer"
endchoice

config PORT14_INST02_MONITOR
	bool "SNMP monitoring"
	default y
	help
	  Option to disable or enable triggering errors in SNMP on a port

choice
    prompt "Profile"
    default PORT14_INST02_PROFILE_HA
    config PORT14_INST02_PROFILE_PTP
        bool "PTP"
    config PORT14_INST02_PROFILE_WR
        bool "WhiteRabbit"
    config PORT14_INST02_PROFILE_HA
        bool "HighAccuracy"
    config PORT14_INST02_PROFILE_CUSTOM
        bool "Custom"
endchoice

choice
    prompt "Desired state"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED
    default PORT14_INST02_DESIRADE_STATE_MASTER
    config PORT14_INST02_DESIRADE_STATE_MASTER
        bool "Master"
    config PORT14_INST02_DESIRADE_STATE_SLAVE
        bool "Slave"
    config PORT14_INST02_DESIRADE_STATE_PASSIVE
        bool "Passive"
endchoice

config PORT14_INST02_ASYMMETRY_CORRECTION_ENABLE
	depends on PORT14_INST02_PROFILE_HA="n" 
    bool "asymmetryCorrectionPortDS.enable"
    default true
	help
	  When supported, the value TRUE shall indicate that the mechanism of for the calculation
	  of the <delayAsymmetry> for certain media is enabled on the PTP port.

choice
    prompt "BMCA mode"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED!=y
    default PORT14_INST02_BMODE_MASTER_ONLY if TIME_BC
    default PORT14_INST02_BMODE_AUTO
    config PORT14_INST02_BMODE_MASTER_ONLY
        bool "MasterOnly"
    config PORT14_INST02_BMODE_AUTO
        bool "Auto"
endchoice

config PORT14_INST02_EGRESS_LATENCY
    depends on PORT14_INST02_PROFILE_WR!=y
    int "timestampCorrectionPortDS.egressLatency (ps)"
    default 225983
 help
	 Defines the transmission constant delay (ps)

config PORT14_INST02_INGRESS_LATENCY
    depends on PORT14_INST02_PROFILE_WR!=y
    int "timestampCorrectionPortDS.ingressLatency (ps)"
    default 229463
 help
	 Defines the reception constant delay (ps)

config PORT14_INST02_ANNOUNCE_INTERVAL
	int "logAnnounceInterval" 
	default 1
	range 0 4
	help
	  The mean time interval between transmissions of successive
	  Announce messages. The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 4.

config PORT14_INST02_ANNOUNCE_RECEIPT_TIMEOUT
	int "announceReceiptTimeout"
	default 3
	range 2 255
	help
	  The announceReceiptTimeout specifies the number of announceIntervals 
	  that must pass without receipt of an Announce message before the 
	  occurrence of the event ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 255

config PORT14_INST02_SYNC_INTERVAL
	int "logSyncInterval"
	default 0
	range -1 1
	help
	  The mean time interval between transmission of successive
	  Sync messages, i.e., the sync-interval, when transmitted
	  as multicast messages. The value is the logarithm to the base 2.
	  The configurable range shall be -1 to +1

config PORT14_INST02_MIN_DELAY_REQ_INTERVAL
	depends on PORT14_INST02_MECHANISM_E2E  
	int "minDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Delay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT14_INST02_MIN_PDELAY_REQ_INTERVAL
	depends on PORT14_INST02_MECHANISM_P2P  
	int "minPDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minPDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Pdelay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT14_INST02_L1SYNC_ENABLED
	depends on PORT14_INST02_PROFILE_CUSTOM  
	bool "L1SyncBasicPortDS.L1SyncEnabled"
	default y
	help
	  This parameter specifies whether the L1Sync option is enabled on the PTP Port. If
	  L1SyncEnabled is TRUE, then the L1Sync message exchange is supported and enabled

config PORT14_INST02_L1SYNC_INTERVAL
	depends on PORT14_INST02_PROFILE_HA || (PORT14_INST02_PROFILE_CUSTOM &&  PORT14_INST02_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.logL1SyncInterval"
	default 0
	range -4 4
	help
	  The L1Sync interval specifies the time interval
	  between successive periodic L1_SYNC TLV.
	  The value is the logarithm to the base 2.
	  The configurable range shall be -4 to 4

config PORT14_INST02_L1SYNC_RECEIPT_TIMEOUT
	depends on PORT14_INST02_PROFILE_HA || (PORT14_INST02_PROFILE_CUSTOM &&  PORT14_INST02_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.L1SyncReceiptTimeout"
	default 3
	range 2 10
	help
	  The value of L1SyncReceiptTimeout specifies the number of elapsed 
	  L1SyncIntervals that must pass without reception of the L1_SYNC TLV 
	  before the L1_SYNC TLV reception timeout occurs.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 10

config PORT14_INST02_L1SYNC_TX_COHERENCY_IS_REQUIRED
	depends on PORT14_INST02_PROFILE_CUSTOM &&  PORT14_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.txCoherencyIsRequired"
	default y
	help
	   The Boolean attribute txCoherentIsRequired specifies the configuration of the L1Sync port and the
	   expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	   required to be a transmit coherent port.

config PORT14_INST02_L1SYNC_RX_COHERENCY_IS_REQUIRED
	depends on PORT14_INST02_PROFILE_CUSTOM &&  PORT14_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.rxCoherencyIsRequired"
	default y
	help
	  The Boolean attribute rxCoherentIsRequired specifies the configuration of the L1Sync port and the
	  expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	  required to be a receive coherent port.

config PORT14_INST02_L1SYNC_CONGRUENCY_IS_REQUIRED
	depends on PORT14_INST02_PROFILE_CUSTOM &&  PORT14_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.congruencyIsRequired"
	default y
	help
	  The Boolean attribute congruentIsRequired specifies configuration of the L1Sync port and the expected
	  configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is required to
	  be a congruent port

config PORT14_INST02_L1SYNC_OPT_PARAMS_ENABLED
	depends on PORT14_INST02_PROFILE_CUSTOM &&  PORT14_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.optParamsEnabled"
	default n
	help
	  The Boolean attribute optParamsEnabled specifies whether the L1Sync port transmitting the L1_SYNC
	  TLV extends this TLV with the information about the optional parameters.

endmenu

endmenu

menu "PORT 15"

config PORT15_IFACE
	string "Network interface"
	default "wri15"
	help
	  Used to set the physivcal port interface name: "wri[1-18]"

config PORT15_FIBER
	int  "Fiber type"
	default 0
	help
	  Used to set the type of fiber (number referring to the corresponding 
	  FIBERXX_PARAMS)

config PORT15_CONSTANT_ASYMMETRY
	int "asymmetryCorrectionPortDS.constantAsymmetry"
	default 0
	help
	   Used to set the constant delay asymmetry.

choice
	prompt "Number of port instances"
	default PORT15_INSTANCE_COUNT_1
	config PORT15_INSTANCE_COUNT_0
	  bool "0"
	config PORT15_INSTANCE_COUNT_1
	  bool "1"
	config PORT15_INSTANCE_COUNT_2
	  bool "2"
endchoice

menu "Instance 1"
	depends on PORT15_INSTANCE_COUNT_1 ||  PORT15_INSTANCE_COUNT_2  

choice
    prompt "Network protocol"
    default PORT15_INST01_PROTOCOL_RAW
    config PORT15_INST01_PROTOCOL_RAW
        bool "IEEE 802.3"
    config PORT15_INST01_PROTOCOL_UDP_IPV4
        bool "UDP/Ipv4"
endchoice

choice
    prompt "Delay mechanism"
    default PORT15_INST01_MECHANISM_E2E
    config PORT15_INST01_MECHANISM_E2E
        bool "End-to-end"
    config PORT15_INST01_MECHANISM_P2P
        bool "Peer-to-peer"
endchoice

config PORT15_INST01_MONITOR
	bool "SNMP monitoring"
	default y
	help
	  Option to disable or enable triggering errors in SNMP on a port

choice
    prompt "Profile"
    default PORT15_INST01_PROFILE_HA
    config PORT15_INST01_PROFILE_PTP
        bool "PTP"
    config PORT15_INST01_PROFILE_WR
        bool "WhiteRabbit"
    config PORT15_INST01_PROFILE_HA
        bool "HighAccuracy"
    config PORT15_INST01_PROFILE_CUSTOM
        bool "Custom"
endchoice

choice
    prompt "Desired state"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED
    default PORT15_INST01_DESIRADE_STATE_MASTER
    config PORT15_INST01_DESIRADE_STATE_MASTER
        bool "Master"
    config PORT15_INST01_DESIRADE_STATE_SLAVE
        bool "Slave"
    config PORT15_INST01_DESIRADE_STATE_PASSIVE
        bool "Passive"
endchoice

config PORT15_INST01_ASYMMETRY_CORRECTION_ENABLE
	depends on PORT15_INST01_PROFILE_HA="n" 
    bool "asymmetryCorrectionPortDS.enable"
    default true
	help
	  When supported, the value TRUE shall indicate that the mechanism of for the calculation
	  of the <delayAsymmetry> for certain media is enabled on the PTP port.

choice
    prompt "BMCA mode"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED!=y
    default PORT15_INST01_BMODE_MASTER_ONLY if TIME_BC
    default PORT15_INST01_BMODE_AUTO
    config PORT15_INST01_BMODE_MASTER_ONLY
        bool "MasterOnly"
    config PORT15_INST01_BMODE_AUTO
        bool "Auto"
endchoice

config PORT15_INST01_EGRESS_LATENCY
    depends on PORT15_INST01_PROFILE_WR!=y
    int "timestampCorrectionPortDS.egressLatency (ps)"
    default 226208
 help
	 Defines the transmission constant delay (ps)

config PORT15_INST01_INGRESS_LATENCY
    depends on PORT15_INST01_PROFILE_WR!=y
    int "timestampCorrectionPortDS.ingressLatency (ps)"
    default 229850
 help
	 Defines the reception constant delay (ps)

config PORT15_INST01_ANNOUNCE_INTERVAL
	int "logAnnounceInterval" 
	default 1
	range 0 4
	help
	  The mean time interval between transmissions of successive
	  Announce messages. The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 4.

config PORT15_INST01_ANNOUNCE_RECEIPT_TIMEOUT
	int "announceReceiptTimeout"
	default 3
	range 2 255
	help
	  The announceReceiptTimeout specifies the number of announceIntervals 
	  that must pass without receipt of an Announce message before the 
	  occurrence of the event ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 255

config PORT15_INST01_SYNC_INTERVAL
	int "logSyncInterval"
	default 0
	range -1 1
	help
	  The mean time interval between transmission of successive
	  Sync messages, i.e., the sync-interval, when transmitted
	  as multicast messages. The value is the logarithm to the base 2.
	  The configurable range shall be -1 to +1

config PORT15_INST01_MIN_DELAY_REQ_INTERVAL
	depends on PORT15_INST01_MECHANISM_E2E  
	int "minDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Delay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT15_INST01_MIN_PDELAY_REQ_INTERVAL
	depends on PORT15_INST01_MECHANISM_P2P  
	int "minPDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minPDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Pdelay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT15_INST01_L1SYNC_ENABLED
	depends on PORT15_INST01_PROFILE_CUSTOM  
	bool "L1SyncBasicPortDS.L1SyncEnabled"
	default y
	help
	  This parameter specifies whether the L1Sync option is enabled on the PTP Port. If
	  L1SyncEnabled is TRUE, then the L1Sync message exchange is supported and enabled

config PORT15_INST01_L1SYNC_INTERVAL
	depends on PORT15_INST01_PROFILE_HA || (PORT15_INST01_PROFILE_CUSTOM &&  PORT15_INST01_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.logL1SyncInterval"
	default 0
	range -4 4
	help
	  The L1Sync interval specifies the time interval
	  between successive periodic L1_SYNC TLV.
	  The value is the logarithm to the base 2.
	  The configurable range shall be -4 to 4

config PORT15_INST01_L1SYNC_RECEIPT_TIMEOUT
	depends on PORT15_INST01_PROFILE_HA || (PORT15_INST01_PROFILE_CUSTOM &&  PORT15_INST01_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.L1SyncReceiptTimeout"
	default 3
	range 2 10
	help
	  The value of L1SyncReceiptTimeout specifies the number of elapsed 
	  L1SyncIntervals that must pass without reception of the L1_SYNC TLV 
	  before the L1_SYNC TLV reception timeout occurs.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 10

config PORT15_INST01_L1SYNC_TX_COHERENCY_IS_REQUIRED
	depends on PORT15_INST01_PROFILE_CUSTOM &&  PORT15_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.txCoherencyIsRequired"
	default y
	help
	   The Boolean attribute txCoherentIsRequired specifies the configuration of the L1Sync port and the
	   expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	   required to be a transmit coherent port.

config PORT15_INST01_L1SYNC_RX_COHERENCY_IS_REQUIRED
	depends on PORT15_INST01_PROFILE_CUSTOM &&  PORT15_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.rxCoherencyIsRequired"
	default y
	help
	  The Boolean attribute rxCoherentIsRequired specifies the configuration of the L1Sync port and the
	  expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	  required to be a receive coherent port.

config PORT15_INST01_L1SYNC_CONGRUENCY_IS_REQUIRED
	depends on PORT15_INST01_PROFILE_CUSTOM &&  PORT15_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.congruencyIsRequired"
	default y
	help
	  The Boolean attribute congruentIsRequired specifies configuration of the L1Sync port and the expected
	  configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is required to
	  be a congruent port

config PORT15_INST01_L1SYNC_OPT_PARAMS_ENABLED
	depends on PORT15_INST01_PROFILE_CUSTOM &&  PORT15_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.optParamsEnabled"
	default n
	help
	  The Boolean attribute optParamsEnabled specifies whether the L1Sync port transmitting the L1_SYNC
	  TLV extends this TLV with the information about the optional parameters.

endmenu

menu "Instance 2"
	depends on PORT15_INSTANCE_COUNT_2  

choice
    prompt "Network protocol"
    default PORT15_INST02_PROTOCOL_RAW
    config PORT15_INST02_PROTOCOL_RAW
        bool "IEEE 802.3"
    config PORT15_INST02_PROTOCOL_UDP_IPV4
        bool "UDP/Ipv4"
endchoice

choice
    prompt "Delay mechanism"
    default PORT15_INST02_MECHANISM_E2E
    config PORT15_INST02_MECHANISM_E2E
        bool "End-to-end"
    config PORT15_INST02_MECHANISM_P2P
        bool "Peer-to-peer"
endchoice

config PORT15_INST02_MONITOR
	bool "SNMP monitoring"
	default y
	help
	  Option to disable or enable triggering errors in SNMP on a port

choice
    prompt "Profile"
    default PORT15_INST02_PROFILE_HA
    config PORT15_INST02_PROFILE_PTP
        bool "PTP"
    config PORT15_INST02_PROFILE_WR
        bool "WhiteRabbit"
    config PORT15_INST02_PROFILE_HA
        bool "HighAccuracy"
    config PORT15_INST02_PROFILE_CUSTOM
        bool "Custom"
endchoice

choice
    prompt "Desired state"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED
    default PORT15_INST02_DESIRADE_STATE_MASTER
    config PORT15_INST02_DESIRADE_STATE_MASTER
        bool "Master"
    config PORT15_INST02_DESIRADE_STATE_SLAVE
        bool "Slave"
    config PORT15_INST02_DESIRADE_STATE_PASSIVE
        bool "Passive"
endchoice

config PORT15_INST02_ASYMMETRY_CORRECTION_ENABLE
	depends on PORT15_INST02_PROFILE_HA="n" 
    bool "asymmetryCorrectionPortDS.enable"
    default true
	help
	  When supported, the value TRUE shall indicate that the mechanism of for the calculation
	  of the <delayAsymmetry> for certain media is enabled on the PTP port.

choice
    prompt "BMCA mode"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED!=y
    default PORT15_INST02_BMODE_MASTER_ONLY if TIME_BC
    default PORT15_INST02_BMODE_AUTO
    config PORT15_INST02_BMODE_MASTER_ONLY
        bool "MasterOnly"
    config PORT15_INST02_BMODE_AUTO
        bool "Auto"
endchoice

config PORT15_INST02_EGRESS_LATENCY
    depends on PORT15_INST02_PROFILE_WR!=y
    int "timestampCorrectionPortDS.egressLatency (ps)"
    default 226208
 help
	 Defines the transmission constant delay (ps)

config PORT15_INST02_INGRESS_LATENCY
    depends on PORT15_INST02_PROFILE_WR!=y
    int "timestampCorrectionPortDS.ingressLatency (ps)"
    default 229850
 help
	 Defines the reception constant delay (ps)

config PORT15_INST02_ANNOUNCE_INTERVAL
	int "logAnnounceInterval" 
	default 1
	range 0 4
	help
	  The mean time interval between transmissions of successive
	  Announce messages. The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 4.

config PORT15_INST02_ANNOUNCE_RECEIPT_TIMEOUT
	int "announceReceiptTimeout"
	default 3
	range 2 255
	help
	  The announceReceiptTimeout specifies the number of announceIntervals 
	  that must pass without receipt of an Announce message before the 
	  occurrence of the event ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 255

config PORT15_INST02_SYNC_INTERVAL
	int "logSyncInterval"
	default 0
	range -1 1
	help
	  The mean time interval between transmission of successive
	  Sync messages, i.e., the sync-interval, when transmitted
	  as multicast messages. The value is the logarithm to the base 2.
	  The configurable range shall be -1 to +1

config PORT15_INST02_MIN_DELAY_REQ_INTERVAL
	depends on PORT15_INST02_MECHANISM_E2E  
	int "minDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Delay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT15_INST02_MIN_PDELAY_REQ_INTERVAL
	depends on PORT15_INST02_MECHANISM_P2P  
	int "minPDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minPDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Pdelay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT15_INST02_L1SYNC_ENABLED
	depends on PORT15_INST02_PROFILE_CUSTOM  
	bool "L1SyncBasicPortDS.L1SyncEnabled"
	default y
	help
	  This parameter specifies whether the L1Sync option is enabled on the PTP Port. If
	  L1SyncEnabled is TRUE, then the L1Sync message exchange is supported and enabled

config PORT15_INST02_L1SYNC_INTERVAL
	depends on PORT15_INST02_PROFILE_HA || (PORT15_INST02_PROFILE_CUSTOM &&  PORT15_INST02_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.logL1SyncInterval"
	default 0
	range -4 4
	help
	  The L1Sync interval specifies the time interval
	  between successive periodic L1_SYNC TLV.
	  The value is the logarithm to the base 2.
	  The configurable range shall be -4 to 4

config PORT15_INST02_L1SYNC_RECEIPT_TIMEOUT
	depends on PORT15_INST02_PROFILE_HA || (PORT15_INST02_PROFILE_CUSTOM &&  PORT15_INST02_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.L1SyncReceiptTimeout"
	default 3
	range 2 10
	help
	  The value of L1SyncReceiptTimeout specifies the number of elapsed 
	  L1SyncIntervals that must pass without reception of the L1_SYNC TLV 
	  before the L1_SYNC TLV reception timeout occurs.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 10

config PORT15_INST02_L1SYNC_TX_COHERENCY_IS_REQUIRED
	depends on PORT15_INST02_PROFILE_CUSTOM &&  PORT15_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.txCoherencyIsRequired"
	default y
	help
	   The Boolean attribute txCoherentIsRequired specifies the configuration of the L1Sync port and the
	   expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	   required to be a transmit coherent port.

config PORT15_INST02_L1SYNC_RX_COHERENCY_IS_REQUIRED
	depends on PORT15_INST02_PROFILE_CUSTOM &&  PORT15_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.rxCoherencyIsRequired"
	default y
	help
	  The Boolean attribute rxCoherentIsRequired specifies the configuration of the L1Sync port and the
	  expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	  required to be a receive coherent port.

config PORT15_INST02_L1SYNC_CONGRUENCY_IS_REQUIRED
	depends on PORT15_INST02_PROFILE_CUSTOM &&  PORT15_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.congruencyIsRequired"
	default y
	help
	  The Boolean attribute congruentIsRequired specifies configuration of the L1Sync port and the expected
	  configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is required to
	  be a congruent port

config PORT15_INST02_L1SYNC_OPT_PARAMS_ENABLED
	depends on PORT15_INST02_PROFILE_CUSTOM &&  PORT15_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.optParamsEnabled"
	default n
	help
	  The Boolean attribute optParamsEnabled specifies whether the L1Sync port transmitting the L1_SYNC
	  TLV extends this TLV with the information about the optional parameters.

endmenu

endmenu

menu "PORT 16"

config PORT16_IFACE
	string "Network interface"
	default "wri16"
	help
	  Used to set the physivcal port interface name: "wri[1-18]"

config PORT16_FIBER
	int  "Fiber type"
	default 0
	help
	  Used to set the type of fiber (number referring to the corresponding 
	  FIBERXX_PARAMS)

config PORT16_CONSTANT_ASYMMETRY
	int "asymmetryCorrectionPortDS.constantAsymmetry"
	default 0
	help
	   Used to set the constant delay asymmetry.

choice
	prompt "Number of port instances"
	default PORT16_INSTANCE_COUNT_1
	config PORT16_INSTANCE_COUNT_0
	  bool "0"
	config PORT16_INSTANCE_COUNT_1
	  bool "1"
	config PORT16_INSTANCE_COUNT_2
	  bool "2"
endchoice

menu "Instance 1"
	depends on PORT16_INSTANCE_COUNT_1 ||  PORT16_INSTANCE_COUNT_2  

choice
    prompt "Network protocol"
    default PORT16_INST01_PROTOCOL_RAW
    config PORT16_INST01_PROTOCOL_RAW
        bool "IEEE 802.3"
    config PORT16_INST01_PROTOCOL_UDP_IPV4
        bool "UDP/Ipv4"
endchoice

choice
    prompt "Delay mechanism"
    default PORT16_INST01_MECHANISM_E2E
    config PORT16_INST01_MECHANISM_E2E
        bool "End-to-end"
    config PORT16_INST01_MECHANISM_P2P
        bool "Peer-to-peer"
endchoice

config PORT16_INST01_MONITOR
	bool "SNMP monitoring"
	default y
	help
	  Option to disable or enable triggering errors in SNMP on a port

choice
    prompt "Profile"
    default PORT16_INST01_PROFILE_HA
    config PORT16_INST01_PROFILE_PTP
        bool "PTP"
    config PORT16_INST01_PROFILE_WR
        bool "WhiteRabbit"
    config PORT16_INST01_PROFILE_HA
        bool "HighAccuracy"
    config PORT16_INST01_PROFILE_CUSTOM
        bool "Custom"
endchoice

choice
    prompt "Desired state"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED
    default PORT16_INST01_DESIRADE_STATE_MASTER
    config PORT16_INST01_DESIRADE_STATE_MASTER
        bool "Master"
    config PORT16_INST01_DESIRADE_STATE_SLAVE
        bool "Slave"
    config PORT16_INST01_DESIRADE_STATE_PASSIVE
        bool "Passive"
endchoice

config PORT16_INST01_ASYMMETRY_CORRECTION_ENABLE
	depends on PORT16_INST01_PROFILE_HA="n" 
    bool "asymmetryCorrectionPortDS.enable"
    default true
	help
	  When supported, the value TRUE shall indicate that the mechanism of for the calculation
	  of the <delayAsymmetry> for certain media is enabled on the PTP port.

choice
    prompt "BMCA mode"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED!=y
    default PORT16_INST01_BMODE_MASTER_ONLY if TIME_BC
    default PORT16_INST01_BMODE_AUTO
    config PORT16_INST01_BMODE_MASTER_ONLY
        bool "MasterOnly"
    config PORT16_INST01_BMODE_AUTO
        bool "Auto"
endchoice

config PORT16_INST01_EGRESS_LATENCY
    depends on PORT16_INST01_PROFILE_WR!=y
    int "timestampCorrectionPortDS.egressLatency (ps)"
    default 226393
 help
	 Defines the transmission constant delay (ps)

config PORT16_INST01_INGRESS_LATENCY
    depends on PORT16_INST01_PROFILE_WR!=y
    int "timestampCorrectionPortDS.ingressLatency (ps)"
    default 229907
 help
	 Defines the reception constant delay (ps)

config PORT16_INST01_ANNOUNCE_INTERVAL
	int "logAnnounceInterval" 
	default 1
	range 0 4
	help
	  The mean time interval between transmissions of successive
	  Announce messages. The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 4.

config PORT16_INST01_ANNOUNCE_RECEIPT_TIMEOUT
	int "announceReceiptTimeout"
	default 3
	range 2 255
	help
	  The announceReceiptTimeout specifies the number of announceIntervals 
	  that must pass without receipt of an Announce message before the 
	  occurrence of the event ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 255

config PORT16_INST01_SYNC_INTERVAL
	int "logSyncInterval"
	default 0
	range -1 1
	help
	  The mean time interval between transmission of successive
	  Sync messages, i.e., the sync-interval, when transmitted
	  as multicast messages. The value is the logarithm to the base 2.
	  The configurable range shall be -1 to +1

config PORT16_INST01_MIN_DELAY_REQ_INTERVAL
	depends on PORT16_INST01_MECHANISM_E2E  
	int "minDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Delay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT16_INST01_MIN_PDELAY_REQ_INTERVAL
	depends on PORT16_INST01_MECHANISM_P2P  
	int "minPDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minPDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Pdelay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT16_INST01_L1SYNC_ENABLED
	depends on PORT16_INST01_PROFILE_CUSTOM  
	bool "L1SyncBasicPortDS.L1SyncEnabled"
	default y
	help
	  This parameter specifies whether the L1Sync option is enabled on the PTP Port. If
	  L1SyncEnabled is TRUE, then the L1Sync message exchange is supported and enabled

config PORT16_INST01_L1SYNC_INTERVAL
	depends on PORT16_INST01_PROFILE_HA || (PORT16_INST01_PROFILE_CUSTOM &&  PORT16_INST01_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.logL1SyncInterval"
	default 0
	range -4 4
	help
	  The L1Sync interval specifies the time interval
	  between successive periodic L1_SYNC TLV.
	  The value is the logarithm to the base 2.
	  The configurable range shall be -4 to 4

config PORT16_INST01_L1SYNC_RECEIPT_TIMEOUT
	depends on PORT16_INST01_PROFILE_HA || (PORT16_INST01_PROFILE_CUSTOM &&  PORT16_INST01_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.L1SyncReceiptTimeout"
	default 3
	range 2 10
	help
	  The value of L1SyncReceiptTimeout specifies the number of elapsed 
	  L1SyncIntervals that must pass without reception of the L1_SYNC TLV 
	  before the L1_SYNC TLV reception timeout occurs.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 10

config PORT16_INST01_L1SYNC_TX_COHERENCY_IS_REQUIRED
	depends on PORT16_INST01_PROFILE_CUSTOM &&  PORT16_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.txCoherencyIsRequired"
	default y
	help
	   The Boolean attribute txCoherentIsRequired specifies the configuration of the L1Sync port and the
	   expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	   required to be a transmit coherent port.

config PORT16_INST01_L1SYNC_RX_COHERENCY_IS_REQUIRED
	depends on PORT16_INST01_PROFILE_CUSTOM &&  PORT16_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.rxCoherencyIsRequired"
	default y
	help
	  The Boolean attribute rxCoherentIsRequired specifies the configuration of the L1Sync port and the
	  expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	  required to be a receive coherent port.

config PORT16_INST01_L1SYNC_CONGRUENCY_IS_REQUIRED
	depends on PORT16_INST01_PROFILE_CUSTOM &&  PORT16_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.congruencyIsRequired"
	default y
	help
	  The Boolean attribute congruentIsRequired specifies configuration of the L1Sync port and the expected
	  configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is required to
	  be a congruent port

config PORT16_INST01_L1SYNC_OPT_PARAMS_ENABLED
	depends on PORT16_INST01_PROFILE_CUSTOM &&  PORT16_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.optParamsEnabled"
	default n
	help
	  The Boolean attribute optParamsEnabled specifies whether the L1Sync port transmitting the L1_SYNC
	  TLV extends this TLV with the information about the optional parameters.

endmenu

menu "Instance 2"
	depends on PORT16_INSTANCE_COUNT_2  

choice
    prompt "Network protocol"
    default PORT16_INST02_PROTOCOL_RAW
    config PORT16_INST02_PROTOCOL_RAW
        bool "IEEE 802.3"
    config PORT16_INST02_PROTOCOL_UDP_IPV4
        bool "UDP/Ipv4"
endchoice

choice
    prompt "Delay mechanism"
    default PORT16_INST02_MECHANISM_E2E
    config PORT16_INST02_MECHANISM_E2E
        bool "End-to-end"
    config PORT16_INST02_MECHANISM_P2P
        bool "Peer-to-peer"
endchoice

config PORT16_INST02_MONITOR
	bool "SNMP monitoring"
	default y
	help
	  Option to disable or enable triggering errors in SNMP on a port

choice
    prompt "Profile"
    default PORT16_INST02_PROFILE_HA
    config PORT16_INST02_PROFILE_PTP
        bool "PTP"
    config PORT16_INST02_PROFILE_WR
        bool "WhiteRabbit"
    config PORT16_INST02_PROFILE_HA
        bool "HighAccuracy"
    config PORT16_INST02_PROFILE_CUSTOM
        bool "Custom"
endchoice

choice
    prompt "Desired state"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED
    default PORT16_INST02_DESIRADE_STATE_MASTER
    config PORT16_INST02_DESIRADE_STATE_MASTER
        bool "Master"
    config PORT16_INST02_DESIRADE_STATE_SLAVE
        bool "Slave"
    config PORT16_INST02_DESIRADE_STATE_PASSIVE
        bool "Passive"
endchoice

config PORT16_INST02_ASYMMETRY_CORRECTION_ENABLE
	depends on PORT16_INST02_PROFILE_HA="n" 
    bool "asymmetryCorrectionPortDS.enable"
    default true
	help
	  When supported, the value TRUE shall indicate that the mechanism of for the calculation
	  of the <delayAsymmetry> for certain media is enabled on the PTP port.

choice
    prompt "BMCA mode"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED!=y
    default PORT16_INST02_BMODE_MASTER_ONLY if TIME_BC
    default PORT16_INST02_BMODE_AUTO
    config PORT16_INST02_BMODE_MASTER_ONLY
        bool "MasterOnly"
    config PORT16_INST02_BMODE_AUTO
        bool "Auto"
endchoice

config PORT16_INST02_EGRESS_LATENCY
    depends on PORT16_INST02_PROFILE_WR!=y
    int "timestampCorrectionPortDS.egressLatency (ps)"
    default 226393
 help
	 Defines the transmission constant delay (ps)

config PORT16_INST02_INGRESS_LATENCY
    depends on PORT16_INST02_PROFILE_WR!=y
    int "timestampCorrectionPortDS.ingressLatency (ps)"
    default 229907
 help
	 Defines the reception constant delay (ps)

config PORT16_INST02_ANNOUNCE_INTERVAL
	int "logAnnounceInterval" 
	default 1
	range 0 4
	help
	  The mean time interval between transmissions of successive
	  Announce messages. The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 4.

config PORT16_INST02_ANNOUNCE_RECEIPT_TIMEOUT
	int "announceReceiptTimeout"
	default 3
	range 2 255
	help
	  The announceReceiptTimeout specifies the number of announceIntervals 
	  that must pass without receipt of an Announce message before the 
	  occurrence of the event ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 255

config PORT16_INST02_SYNC_INTERVAL
	int "logSyncInterval"
	default 0
	range -1 1
	help
	  The mean time interval between transmission of successive
	  Sync messages, i.e., the sync-interval, when transmitted
	  as multicast messages. The value is the logarithm to the base 2.
	  The configurable range shall be -1 to +1

config PORT16_INST02_MIN_DELAY_REQ_INTERVAL
	depends on PORT16_INST02_MECHANISM_E2E  
	int "minDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Delay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT16_INST02_MIN_PDELAY_REQ_INTERVAL
	depends on PORT16_INST02_MECHANISM_P2P  
	int "minPDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minPDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Pdelay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT16_INST02_L1SYNC_ENABLED
	depends on PORT16_INST02_PROFILE_CUSTOM  
	bool "L1SyncBasicPortDS.L1SyncEnabled"
	default y
	help
	  This parameter specifies whether the L1Sync option is enabled on the PTP Port. If
	  L1SyncEnabled is TRUE, then the L1Sync message exchange is supported and enabled

config PORT16_INST02_L1SYNC_INTERVAL
	depends on PORT16_INST02_PROFILE_HA || (PORT16_INST02_PROFILE_CUSTOM &&  PORT16_INST02_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.logL1SyncInterval"
	default 0
	range -4 4
	help
	  The L1Sync interval specifies the time interval
	  between successive periodic L1_SYNC TLV.
	  The value is the logarithm to the base 2.
	  The configurable range shall be -4 to 4

config PORT16_INST02_L1SYNC_RECEIPT_TIMEOUT
	depends on PORT16_INST02_PROFILE_HA || (PORT16_INST02_PROFILE_CUSTOM &&  PORT16_INST02_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.L1SyncReceiptTimeout"
	default 3
	range 2 10
	help
	  The value of L1SyncReceiptTimeout specifies the number of elapsed 
	  L1SyncIntervals that must pass without reception of the L1_SYNC TLV 
	  before the L1_SYNC TLV reception timeout occurs.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 10

config PORT16_INST02_L1SYNC_TX_COHERENCY_IS_REQUIRED
	depends on PORT16_INST02_PROFILE_CUSTOM &&  PORT16_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.txCoherencyIsRequired"
	default y
	help
	   The Boolean attribute txCoherentIsRequired specifies the configuration of the L1Sync port and the
	   expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	   required to be a transmit coherent port.

config PORT16_INST02_L1SYNC_RX_COHERENCY_IS_REQUIRED
	depends on PORT16_INST02_PROFILE_CUSTOM &&  PORT16_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.rxCoherencyIsRequired"
	default y
	help
	  The Boolean attribute rxCoherentIsRequired specifies the configuration of the L1Sync port and the
	  expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	  required to be a receive coherent port.

config PORT16_INST02_L1SYNC_CONGRUENCY_IS_REQUIRED
	depends on PORT16_INST02_PROFILE_CUSTOM &&  PORT16_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.congruencyIsRequired"
	default y
	help
	  The Boolean attribute congruentIsRequired specifies configuration of the L1Sync port and the expected
	  configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is required to
	  be a congruent port

config PORT16_INST02_L1SYNC_OPT_PARAMS_ENABLED
	depends on PORT16_INST02_PROFILE_CUSTOM &&  PORT16_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.optParamsEnabled"
	default n
	help
	  The Boolean attribute optParamsEnabled specifies whether the L1Sync port transmitting the L1_SYNC
	  TLV extends this TLV with the information about the optional parameters.

endmenu

endmenu

menu "PORT 17"

config PORT17_IFACE
	string "Network interface"
	default "wri17"
	help
	  Used to set the physivcal port interface name: "wri[1-18]"

config PORT17_FIBER
	int  "Fiber type"
	default 0
	help
	  Used to set the type of fiber (number referring to the corresponding 
	  FIBERXX_PARAMS)

config PORT17_CONSTANT_ASYMMETRY
	int "asymmetryCorrectionPortDS.constantAsymmetry"
	default 0
	help
	   Used to set the constant delay asymmetry.

choice
	prompt "Number of port instances"
	default PORT17_INSTANCE_COUNT_1
	config PORT17_INSTANCE_COUNT_0
	  bool "0"
	config PORT17_INSTANCE_COUNT_1
	  bool "1"
	config PORT17_INSTANCE_COUNT_2
	  bool "2"
endchoice

menu "Instance 1"
	depends on PORT17_INSTANCE_COUNT_1 ||  PORT17_INSTANCE_COUNT_2  

choice
    prompt "Network protocol"
    default PORT17_INST01_PROTOCOL_RAW
    config PORT17_INST01_PROTOCOL_RAW
        bool "IEEE 802.3"
    config PORT17_INST01_PROTOCOL_UDP_IPV4
        bool "UDP/Ipv4"
endchoice

choice
    prompt "Delay mechanism"
    default PORT17_INST01_MECHANISM_E2E
    config PORT17_INST01_MECHANISM_E2E
        bool "End-to-end"
    config PORT17_INST01_MECHANISM_P2P
        bool "Peer-to-peer"
endchoice

config PORT17_INST01_MONITOR
	bool "SNMP monitoring"
	default y
	help
	  Option to disable or enable triggering errors in SNMP on a port

choice
    prompt "Profile"
    default PORT17_INST01_PROFILE_HA
    config PORT17_INST01_PROFILE_PTP
        bool "PTP"
    config PORT17_INST01_PROFILE_WR
        bool "WhiteRabbit"
    config PORT17_INST01_PROFILE_HA
        bool "HighAccuracy"
    config PORT17_INST01_PROFILE_CUSTOM
        bool "Custom"
endchoice

choice
    prompt "Desired state"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED
    default PORT17_INST01_DESIRADE_STATE_MASTER
    config PORT17_INST01_DESIRADE_STATE_MASTER
        bool "Master"
    config PORT17_INST01_DESIRADE_STATE_SLAVE
        bool "Slave"
    config PORT17_INST01_DESIRADE_STATE_PASSIVE
        bool "Passive"
endchoice

config PORT17_INST01_ASYMMETRY_CORRECTION_ENABLE
	depends on PORT17_INST01_PROFILE_HA="n" 
    bool "asymmetryCorrectionPortDS.enable"
    default true
	help
	  When supported, the value TRUE shall indicate that the mechanism of for the calculation
	  of the <delayAsymmetry> for certain media is enabled on the PTP port.

choice
    prompt "BMCA mode"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED!=y
    default PORT17_INST01_BMODE_MASTER_ONLY if TIME_BC
    default PORT17_INST01_BMODE_AUTO
    config PORT17_INST01_BMODE_MASTER_ONLY
        bool "MasterOnly"
    config PORT17_INST01_BMODE_AUTO
        bool "Auto"
endchoice

config PORT17_INST01_EGRESS_LATENCY
    depends on PORT17_INST01_PROFILE_WR!=y
    int "timestampCorrectionPortDS.egressLatency (ps)"
    default 226594
 help
	 Defines the transmission constant delay (ps)

config PORT17_INST01_INGRESS_LATENCY
    depends on PORT17_INST01_PROFILE_WR!=y
    int "timestampCorrectionPortDS.ingressLatency (ps)"
    default 230106
 help
	 Defines the reception constant delay (ps)

config PORT17_INST01_ANNOUNCE_INTERVAL
	int "logAnnounceInterval" 
	default 1
	range 0 4
	help
	  The mean time interval between transmissions of successive
	  Announce messages. The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 4.

config PORT17_INST01_ANNOUNCE_RECEIPT_TIMEOUT
	int "announceReceiptTimeout"
	default 3
	range 2 255
	help
	  The announceReceiptTimeout specifies the number of announceIntervals 
	  that must pass without receipt of an Announce message before the 
	  occurrence of the event ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 255

config PORT17_INST01_SYNC_INTERVAL
	int "logSyncInterval"
	default 0
	range -1 1
	help
	  The mean time interval between transmission of successive
	  Sync messages, i.e., the sync-interval, when transmitted
	  as multicast messages. The value is the logarithm to the base 2.
	  The configurable range shall be -1 to +1

config PORT17_INST01_MIN_DELAY_REQ_INTERVAL
	depends on PORT17_INST01_MECHANISM_E2E  
	int "minDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Delay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT17_INST01_MIN_PDELAY_REQ_INTERVAL
	depends on PORT17_INST01_MECHANISM_P2P  
	int "minPDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minPDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Pdelay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT17_INST01_L1SYNC_ENABLED
	depends on PORT17_INST01_PROFILE_CUSTOM  
	bool "L1SyncBasicPortDS.L1SyncEnabled"
	default y
	help
	  This parameter specifies whether the L1Sync option is enabled on the PTP Port. If
	  L1SyncEnabled is TRUE, then the L1Sync message exchange is supported and enabled

config PORT17_INST01_L1SYNC_INTERVAL
	depends on PORT17_INST01_PROFILE_HA || (PORT17_INST01_PROFILE_CUSTOM &&  PORT17_INST01_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.logL1SyncInterval"
	default 0
	range -4 4
	help
	  The L1Sync interval specifies the time interval
	  between successive periodic L1_SYNC TLV.
	  The value is the logarithm to the base 2.
	  The configurable range shall be -4 to 4

config PORT17_INST01_L1SYNC_RECEIPT_TIMEOUT
	depends on PORT17_INST01_PROFILE_HA || (PORT17_INST01_PROFILE_CUSTOM &&  PORT17_INST01_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.L1SyncReceiptTimeout"
	default 3
	range 2 10
	help
	  The value of L1SyncReceiptTimeout specifies the number of elapsed 
	  L1SyncIntervals that must pass without reception of the L1_SYNC TLV 
	  before the L1_SYNC TLV reception timeout occurs.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 10

config PORT17_INST01_L1SYNC_TX_COHERENCY_IS_REQUIRED
	depends on PORT17_INST01_PROFILE_CUSTOM &&  PORT17_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.txCoherencyIsRequired"
	default y
	help
	   The Boolean attribute txCoherentIsRequired specifies the configuration of the L1Sync port and the
	   expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	   required to be a transmit coherent port.

config PORT17_INST01_L1SYNC_RX_COHERENCY_IS_REQUIRED
	depends on PORT17_INST01_PROFILE_CUSTOM &&  PORT17_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.rxCoherencyIsRequired"
	default y
	help
	  The Boolean attribute rxCoherentIsRequired specifies the configuration of the L1Sync port and the
	  expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	  required to be a receive coherent port.

config PORT17_INST01_L1SYNC_CONGRUENCY_IS_REQUIRED
	depends on PORT17_INST01_PROFILE_CUSTOM &&  PORT17_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.congruencyIsRequired"
	default y
	help
	  The Boolean attribute congruentIsRequired specifies configuration of the L1Sync port and the expected
	  configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is required to
	  be a congruent port

config PORT17_INST01_L1SYNC_OPT_PARAMS_ENABLED
	depends on PORT17_INST01_PROFILE_CUSTOM &&  PORT17_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.optParamsEnabled"
	default n
	help
	  The Boolean attribute optParamsEnabled specifies whether the L1Sync port transmitting the L1_SYNC
	  TLV extends this TLV with the information about the optional parameters.

endmenu

menu "Instance 2"
	depends on PORT17_INSTANCE_COUNT_2  

choice
    prompt "Network protocol"
    default PORT17_INST02_PROTOCOL_RAW
    config PORT17_INST02_PROTOCOL_RAW
        bool "IEEE 802.3"
    config PORT17_INST02_PROTOCOL_UDP_IPV4
        bool "UDP/Ipv4"
endchoice

choice
    prompt "Delay mechanism"
    default PORT17_INST02_MECHANISM_E2E
    config PORT17_INST02_MECHANISM_E2E
        bool "End-to-end"
    config PORT17_INST02_MECHANISM_P2P
        bool "Peer-to-peer"
endchoice

config PORT17_INST02_MONITOR
	bool "SNMP monitoring"
	default y
	help
	  Option to disable or enable triggering errors in SNMP on a port

choice
    prompt "Profile"
    default PORT17_INST02_PROFILE_HA
    config PORT17_INST02_PROFILE_PTP
        bool "PTP"
    config PORT17_INST02_PROFILE_WR
        bool "WhiteRabbit"
    config PORT17_INST02_PROFILE_HA
        bool "HighAccuracy"
    config PORT17_INST02_PROFILE_CUSTOM
        bool "Custom"
endchoice

choice
    prompt "Desired state"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED
    default PORT17_INST02_DESIRADE_STATE_MASTER
    config PORT17_INST02_DESIRADE_STATE_MASTER
        bool "Master"
    config PORT17_INST02_DESIRADE_STATE_SLAVE
        bool "Slave"
    config PORT17_INST02_DESIRADE_STATE_PASSIVE
        bool "Passive"
endchoice

config PORT17_INST02_ASYMMETRY_CORRECTION_ENABLE
	depends on PORT17_INST02_PROFILE_HA="n" 
    bool "asymmetryCorrectionPortDS.enable"
    default true
	help
	  When supported, the value TRUE shall indicate that the mechanism of for the calculation
	  of the <delayAsymmetry> for certain media is enabled on the PTP port.

choice
    prompt "BMCA mode"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED!=y
    default PORT17_INST02_BMODE_MASTER_ONLY if TIME_BC
    default PORT17_INST02_BMODE_AUTO
    config PORT17_INST02_BMODE_MASTER_ONLY
        bool "MasterOnly"
    config PORT17_INST02_BMODE_AUTO
        bool "Auto"
endchoice

config PORT17_INST02_EGRESS_LATENCY
    depends on PORT17_INST02_PROFILE_WR!=y
    int "timestampCorrectionPortDS.egressLatency (ps)"
    default 226594
 help
	 Defines the transmission constant delay (ps)

config PORT17_INST02_INGRESS_LATENCY
    depends on PORT17_INST02_PROFILE_WR!=y
    int "timestampCorrectionPortDS.ingressLatency (ps)"
    default 230106
 help
	 Defines the reception constant delay (ps)

config PORT17_INST02_ANNOUNCE_INTERVAL
	int "logAnnounceInterval" 
	default 1
	range 0 4
	help
	  The mean time interval between transmissions of successive
	  Announce messages. The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 4.

config PORT17_INST02_ANNOUNCE_RECEIPT_TIMEOUT
	int "announceReceiptTimeout"
	default 3
	range 2 255
	help
	  The announceReceiptTimeout specifies the number of announceIntervals 
	  that must pass without receipt of an Announce message before the 
	  occurrence of the event ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 255

config PORT17_INST02_SYNC_INTERVAL
	int "logSyncInterval"
	default 0
	range -1 1
	help
	  The mean time interval between transmission of successive
	  Sync messages, i.e., the sync-interval, when transmitted
	  as multicast messages. The value is the logarithm to the base 2.
	  The configurable range shall be -1 to +1

config PORT17_INST02_MIN_DELAY_REQ_INTERVAL
	depends on PORT17_INST02_MECHANISM_E2E  
	int "minDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Delay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT17_INST02_MIN_PDELAY_REQ_INTERVAL
	depends on PORT17_INST02_MECHANISM_P2P  
	int "minPDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minPDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Pdelay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT17_INST02_L1SYNC_ENABLED
	depends on PORT17_INST02_PROFILE_CUSTOM  
	bool "L1SyncBasicPortDS.L1SyncEnabled"
	default y
	help
	  This parameter specifies whether the L1Sync option is enabled on the PTP Port. If
	  L1SyncEnabled is TRUE, then the L1Sync message exchange is supported and enabled

config PORT17_INST02_L1SYNC_INTERVAL
	depends on PORT17_INST02_PROFILE_HA || (PORT17_INST02_PROFILE_CUSTOM &&  PORT17_INST02_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.logL1SyncInterval"
	default 0
	range -4 4
	help
	  The L1Sync interval specifies the time interval
	  between successive periodic L1_SYNC TLV.
	  The value is the logarithm to the base 2.
	  The configurable range shall be -4 to 4

config PORT17_INST02_L1SYNC_RECEIPT_TIMEOUT
	depends on PORT17_INST02_PROFILE_HA || (PORT17_INST02_PROFILE_CUSTOM &&  PORT17_INST02_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.L1SyncReceiptTimeout"
	default 3
	range 2 10
	help
	  The value of L1SyncReceiptTimeout specifies the number of elapsed 
	  L1SyncIntervals that must pass without reception of the L1_SYNC TLV 
	  before the L1_SYNC TLV reception timeout occurs.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 10

config PORT17_INST02_L1SYNC_TX_COHERENCY_IS_REQUIRED
	depends on PORT17_INST02_PROFILE_CUSTOM &&  PORT17_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.txCoherencyIsRequired"
	default y
	help
	   The Boolean attribute txCoherentIsRequired specifies the configuration of the L1Sync port and the
	   expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	   required to be a transmit coherent port.

config PORT17_INST02_L1SYNC_RX_COHERENCY_IS_REQUIRED
	depends on PORT17_INST02_PROFILE_CUSTOM &&  PORT17_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.rxCoherencyIsRequired"
	default y
	help
	  The Boolean attribute rxCoherentIsRequired specifies the configuration of the L1Sync port and the
	  expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	  required to be a receive coherent port.

config PORT17_INST02_L1SYNC_CONGRUENCY_IS_REQUIRED
	depends on PORT17_INST02_PROFILE_CUSTOM &&  PORT17_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.congruencyIsRequired"
	default y
	help
	  The Boolean attribute congruentIsRequired specifies configuration of the L1Sync port and the expected
	  configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is required to
	  be a congruent port

config PORT17_INST02_L1SYNC_OPT_PARAMS_ENABLED
	depends on PORT17_INST02_PROFILE_CUSTOM &&  PORT17_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.optParamsEnabled"
	default n
	help
	  The Boolean attribute optParamsEnabled specifies whether the L1Sync port transmitting the L1_SYNC
	  TLV extends this TLV with the information about the optional parameters.

endmenu

endmenu

menu "PORT 18"

config PORT18_IFACE
	string "Network interface"
	default "wri18"
	help
	  Used to set the physivcal port interface name: "wri[1-18]"

config PORT18_FIBER
	int  "Fiber type"
	default 0
	help
	  Used to set the type of fiber (number referring to the corresponding 
	  FIBERXX_PARAMS)

config PORT18_CONSTANT_ASYMMETRY
	int "asymmetryCorrectionPortDS.constantAsymmetry"
	default 0
	help
	   Used to set the constant delay asymmetry.

choice
	prompt "Number of port instances"
	default PORT18_INSTANCE_COUNT_1
	config PORT18_INSTANCE_COUNT_0
	  bool "0"
	config PORT18_INSTANCE_COUNT_1
	  bool "1"
	config PORT18_INSTANCE_COUNT_2
	  bool "2"
endchoice

menu "Instance 1"
	depends on PORT18_INSTANCE_COUNT_1 ||  PORT18_INSTANCE_COUNT_2  

choice
    prompt "Network protocol"
    default PORT18_INST01_PROTOCOL_RAW
    config PORT18_INST01_PROTOCOL_RAW
        bool "IEEE 802.3"
    config PORT18_INST01_PROTOCOL_UDP_IPV4
        bool "UDP/Ipv4"
endchoice

choice
    prompt "Delay mechanism"
    default PORT18_INST01_MECHANISM_E2E
    config PORT18_INST01_MECHANISM_E2E
        bool "End-to-end"
    config PORT18_INST01_MECHANISM_P2P
        bool "Peer-to-peer"
endchoice

config PORT18_INST01_MONITOR
	bool "SNMP monitoring"
	default y
	help
	  Option to disable or enable triggering errors in SNMP on a port

choice
    prompt "Profile"
    default PORT18_INST01_PROFILE_HA
    config PORT18_INST01_PROFILE_PTP
        bool "PTP"
    config PORT18_INST01_PROFILE_WR
        bool "WhiteRabbit"
    config PORT18_INST01_PROFILE_HA
        bool "HighAccuracy"
    config PORT18_INST01_PROFILE_CUSTOM
        bool "Custom"
endchoice

choice
    prompt "Desired state"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED
    default PORT18_INST01_DESIRADE_STATE_MASTER
    config PORT18_INST01_DESIRADE_STATE_MASTER
        bool "Master"
    config PORT18_INST01_DESIRADE_STATE_SLAVE
        bool "Slave"
    config PORT18_INST01_DESIRADE_STATE_PASSIVE
        bool "Passive"
endchoice

config PORT18_INST01_ASYMMETRY_CORRECTION_ENABLE
	depends on PORT18_INST01_PROFILE_HA="n" 
    bool "asymmetryCorrectionPortDS.enable"
    default true
	help
	  When supported, the value TRUE shall indicate that the mechanism of for the calculation
	  of the <delayAsymmetry> for certain media is enabled on the PTP port.

choice
    prompt "BMCA mode"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED!=y
    default PORT18_INST01_BMODE_MASTER_ONLY if TIME_BC
    default PORT18_INST01_BMODE_AUTO
    config PORT18_INST01_BMODE_MASTER_ONLY
        bool "MasterOnly"
    config PORT18_INST01_BMODE_AUTO
        bool "Auto"
endchoice

config PORT18_INST01_EGRESS_LATENCY
    depends on PORT18_INST01_PROFILE_WR!=y
    int "timestampCorrectionPortDS.egressLatency (ps)"
    default 226737
 help
	 Defines the transmission constant delay (ps)

config PORT18_INST01_INGRESS_LATENCY
    depends on PORT18_INST01_PROFILE_WR!=y
    int "timestampCorrectionPortDS.ingressLatency (ps)"
    default 230273
 help
	 Defines the reception constant delay (ps)

config PORT18_INST01_ANNOUNCE_INTERVAL
	int "logAnnounceInterval" 
	default 1
	range 0 4
	help
	  The mean time interval between transmissions of successive
	  Announce messages. The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 4.

config PORT18_INST01_ANNOUNCE_RECEIPT_TIMEOUT
	int "announceReceiptTimeout"
	default 3
	range 2 255
	help
	  The announceReceiptTimeout specifies the number of announceIntervals 
	  that must pass without receipt of an Announce message before the 
	  occurrence of the event ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 255

config PORT18_INST01_SYNC_INTERVAL
	int "logSyncInterval"
	default 0
	range -1 1
	help
	  The mean time interval between transmission of successive
	  Sync messages, i.e., the sync-interval, when transmitted
	  as multicast messages. The value is the logarithm to the base 2.
	  The configurable range shall be -1 to +1

config PORT18_INST01_MIN_DELAY_REQ_INTERVAL
	depends on PORT18_INST01_MECHANISM_E2E  
	int "minDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Delay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT18_INST01_MIN_PDELAY_REQ_INTERVAL
	depends on PORT18_INST01_MECHANISM_P2P  
	int "minPDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minPDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Pdelay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT18_INST01_L1SYNC_ENABLED
	depends on PORT18_INST01_PROFILE_CUSTOM  
	bool "L1SyncBasicPortDS.L1SyncEnabled"
	default y
	help
	  This parameter specifies whether the L1Sync option is enabled on the PTP Port. If
	  L1SyncEnabled is TRUE, then the L1Sync message exchange is supported and enabled

config PORT18_INST01_L1SYNC_INTERVAL
	depends on PORT18_INST01_PROFILE_HA || (PORT18_INST01_PROFILE_CUSTOM &&  PORT18_INST01_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.logL1SyncInterval"
	default 0
	range -4 4
	help
	  The L1Sync interval specifies the time interval
	  between successive periodic L1_SYNC TLV.
	  The value is the logarithm to the base 2.
	  The configurable range shall be -4 to 4

config PORT18_INST01_L1SYNC_RECEIPT_TIMEOUT
	depends on PORT18_INST01_PROFILE_HA || (PORT18_INST01_PROFILE_CUSTOM &&  PORT18_INST01_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.L1SyncReceiptTimeout"
	default 3
	range 2 10
	help
	  The value of L1SyncReceiptTimeout specifies the number of elapsed 
	  L1SyncIntervals that must pass without reception of the L1_SYNC TLV 
	  before the L1_SYNC TLV reception timeout occurs.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 10

config PORT18_INST01_L1SYNC_TX_COHERENCY_IS_REQUIRED
	depends on PORT18_INST01_PROFILE_CUSTOM &&  PORT18_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.txCoherencyIsRequired"
	default y
	help
	   The Boolean attribute txCoherentIsRequired specifies the configuration of the L1Sync port and the
	   expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	   required to be a transmit coherent port.

config PORT18_INST01_L1SYNC_RX_COHERENCY_IS_REQUIRED
	depends on PORT18_INST01_PROFILE_CUSTOM &&  PORT18_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.rxCoherencyIsRequired"
	default y
	help
	  The Boolean attribute rxCoherentIsRequired specifies the configuration of the L1Sync port and the
	  expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	  required to be a receive coherent port.

config PORT18_INST01_L1SYNC_CONGRUENCY_IS_REQUIRED
	depends on PORT18_INST01_PROFILE_CUSTOM &&  PORT18_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.congruencyIsRequired"
	default y
	help
	  The Boolean attribute congruentIsRequired specifies configuration of the L1Sync port and the expected
	  configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is required to
	  be a congruent port

config PORT18_INST01_L1SYNC_OPT_PARAMS_ENABLED
	depends on PORT18_INST01_PROFILE_CUSTOM &&  PORT18_INST01_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.optParamsEnabled"
	default n
	help
	  The Boolean attribute optParamsEnabled specifies whether the L1Sync port transmitting the L1_SYNC
	  TLV extends this TLV with the information about the optional parameters.

endmenu

menu "Instance 2"
	depends on PORT18_INSTANCE_COUNT_2  

choice
    prompt "Network protocol"
    default PORT18_INST02_PROTOCOL_RAW
    config PORT18_INST02_PROTOCOL_RAW
        bool "IEEE 802.3"
    config PORT18_INST02_PROTOCOL_UDP_IPV4
        bool "UDP/Ipv4"
endchoice

choice
    prompt "Delay mechanism"
    default PORT18_INST02_MECHANISM_E2E
    config PORT18_INST02_MECHANISM_E2E
        bool "End-to-end"
    config PORT18_INST02_MECHANISM_P2P
        bool "Peer-to-peer"
endchoice

config PORT18_INST02_MONITOR
	bool "SNMP monitoring"
	default y
	help
	  Option to disable or enable triggering errors in SNMP on a port

choice
    prompt "Profile"
    default PORT18_INST02_PROFILE_HA
    config PORT18_INST02_PROFILE_PTP
        bool "PTP"
    config PORT18_INST02_PROFILE_WR
        bool "WhiteRabbit"
    config PORT18_INST02_PROFILE_HA
        bool "HighAccuracy"
    config PORT18_INST02_PROFILE_CUSTOM
        bool "Custom"
endchoice

choice
    prompt "Desired state"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED
    default PORT18_INST02_DESIRADE_STATE_MASTER
    config PORT18_INST02_DESIRADE_STATE_MASTER
        bool "Master"
    config PORT18_INST02_DESIRADE_STATE_SLAVE
        bool "Slave"
    config PORT18_INST02_DESIRADE_STATE_PASSIVE
        bool "Passive"
endchoice

config PORT18_INST02_ASYMMETRY_CORRECTION_ENABLE
	depends on PORT18_INST02_PROFILE_HA="n" 
    bool "asymmetryCorrectionPortDS.enable"
    default true
	help
	  When supported, the value TRUE shall indicate that the mechanism of for the calculation
	  of the <delayAsymmetry> for certain media is enabled on the PTP port.

choice
    prompt "BMCA mode"
    depends on PTP_OPT_EXT_PORT_CONFIG_ENABLED!=y
    default PORT18_INST02_BMODE_MASTER_ONLY if TIME_BC
    default PORT18_INST02_BMODE_AUTO
    config PORT18_INST02_BMODE_MASTER_ONLY
        bool "MasterOnly"
    config PORT18_INST02_BMODE_AUTO
        bool "Auto"
endchoice

config PORT18_INST02_EGRESS_LATENCY
    depends on PORT18_INST02_PROFILE_WR!=y
    int "timestampCorrectionPortDS.egressLatency (ps)"
    default 226737
 help
	 Defines the transmission constant delay (ps)

config PORT18_INST02_INGRESS_LATENCY
    depends on PORT18_INST02_PROFILE_WR!=y
    int "timestampCorrectionPortDS.ingressLatency (ps)"
    default 230273
 help
	 Defines the reception constant delay (ps)

config PORT18_INST02_ANNOUNCE_INTERVAL
	int "logAnnounceInterval" 
	default 1
	range 0 4
	help
	  The mean time interval between transmissions of successive
	  Announce messages. The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 4.

config PORT18_INST02_ANNOUNCE_RECEIPT_TIMEOUT
	int "announceReceiptTimeout"
	default 3
	range 2 255
	help
	  The announceReceiptTimeout specifies the number of announceIntervals 
	  that must pass without receipt of an Announce message before the 
	  occurrence of the event ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 255

config PORT18_INST02_SYNC_INTERVAL
	int "logSyncInterval"
	default 0
	range -1 1
	help
	  The mean time interval between transmission of successive
	  Sync messages, i.e., the sync-interval, when transmitted
	  as multicast messages. The value is the logarithm to the base 2.
	  The configurable range shall be -1 to +1

config PORT18_INST02_MIN_DELAY_REQ_INTERVAL
	depends on PORT18_INST02_MECHANISM_E2E  
	int "minDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Delay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT18_INST02_MIN_PDELAY_REQ_INTERVAL
	depends on PORT18_INST02_MECHANISM_P2P  
	int "minPDelayRequestInterval"
	default 0
	range 0 5
	help
	  The minPDelayRequestInterval specifies the minimum permitted
	  mean time interval between successive Pdelay_Req messages.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 0 to 5

config PORT18_INST02_L1SYNC_ENABLED
	depends on PORT18_INST02_PROFILE_CUSTOM  
	bool "L1SyncBasicPortDS.L1SyncEnabled"
	default y
	help
	  This parameter specifies whether the L1Sync option is enabled on the PTP Port. If
	  L1SyncEnabled is TRUE, then the L1Sync message exchange is supported and enabled

config PORT18_INST02_L1SYNC_INTERVAL
	depends on PORT18_INST02_PROFILE_HA || (PORT18_INST02_PROFILE_CUSTOM &&  PORT18_INST02_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.logL1SyncInterval"
	default 0
	range -4 4
	help
	  The L1Sync interval specifies the time interval
	  between successive periodic L1_SYNC TLV.
	  The value is the logarithm to the base 2.
	  The configurable range shall be -4 to 4

config PORT18_INST02_L1SYNC_RECEIPT_TIMEOUT
	depends on PORT18_INST02_PROFILE_HA || (PORT18_INST02_PROFILE_CUSTOM &&  PORT18_INST02_L1SYNC_ENABLED="y") 
	int "L1SyncBasicPortDS.L1SyncReceiptTimeout"
	default 3
	range 2 10
	help
	  The value of L1SyncReceiptTimeout specifies the number of elapsed 
	  L1SyncIntervals that must pass without reception of the L1_SYNC TLV 
	  before the L1_SYNC TLV reception timeout occurs.
	  The value is the logarithm to the base 2.
	  The configurable range shall be 2 to 10

config PORT18_INST02_L1SYNC_TX_COHERENCY_IS_REQUIRED
	depends on PORT18_INST02_PROFILE_CUSTOM &&  PORT18_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.txCoherencyIsRequired"
	default y
	help
	   The Boolean attribute txCoherentIsRequired specifies the configuration of the L1Sync port and the
	   expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	   required to be a transmit coherent port.

config PORT18_INST02_L1SYNC_RX_COHERENCY_IS_REQUIRED
	depends on PORT18_INST02_PROFILE_CUSTOM &&  PORT18_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.rxCoherencyIsRequired"
	default y
	help
	  The Boolean attribute rxCoherentIsRequired specifies the configuration of the L1Sync port and the
	  expected configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is
	  required to be a receive coherent port.

config PORT18_INST02_L1SYNC_CONGRUENCY_IS_REQUIRED
	depends on PORT18_INST02_PROFILE_CUSTOM &&  PORT18_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.congruencyIsRequired"
	default y
	help
	  The Boolean attribute congruentIsRequired specifies configuration of the L1Sync port and the expected
	  configuration of its peer L1Sync port. This configuration indicates whether the L1Sync port is required to
	  be a congruent port

config PORT18_INST02_L1SYNC_OPT_PARAMS_ENABLED
	depends on PORT18_INST02_PROFILE_CUSTOM &&  PORT18_INST02_L1SYNC_ENABLED="y" 
	bool "L1SyncBasicPortDS.optParamsEnabled"
	default n
	help
	  The Boolean attribute optParamsEnabled specifies whether the L1Sync port transmitting the L1_SYNC
	  TLV extends this TLV with the information about the optional parameters.

endmenu

endmenu

endmenu
