Currently all CDRouter USP protocol tests in prplOS use STOMP MTP (100%). This no longer matches the FEAT-63 delivery plan and industry adoption. MQTTv5 should become the default MTP for the majority of CDRouter test runs, while keeping WebSocket and STOMP coverage in some jobs as smaller regression slices. So lets switch the shared template to MQTTv5 by default, parameterising the shipped CDRouter configs instead of cloning them, and adding guarded DUT init helpers that stop obuspa, install the requested reset file, clear /etc/obuspa.db, start obuspa again, and wait for the USP data model to come back. Use the existing job matrix to keep protocol coverage aligned with the agreed distribution: - Wireless smoke tests use WebSocket - prplOS Network Test Plan Candidate jobs use WebSocket - IPv6 Top-100+mDNS VLAN jobs use STOMP - all remaining jobs use MQTTv5 - MQTTv3 stays out of scope References: PCF-1323, PCF-2322 Assisted-by: codex:gpt-5.4:xhigh Assisted-by: claude:opus-4-6:1m-context Co-developed-by: Sergio Panseri <sergio.panseri@consult.red> Co-developed-by: Piotr Nakraszewicz <piotr.nakraszewicz@consult.red> Signed-off-by: Petr Štetiar <petr.stetiar@prplfoundation.org>
65 lines
3.0 KiB
Plaintext
Executable File
65 lines
3.0 KiB
Plaintext
Executable File
##########################################################################################################
|
|
#
|
|
# This file contains a factory reset database in text format
|
|
#
|
|
# If no USP database exists when OB-USP-AGENT starts, then OB-USP-AGENT will create a database containing
|
|
# the parameters specified in a text file located by the '-r' option.
|
|
# Example:
|
|
# obuspa -p -v 4 -r factory_reset_example.txt
|
|
#
|
|
# Each line of this file contains either a comment (denoted by '#' at the start of the line)
|
|
# or a USP data model parameter and its factory reset value.
|
|
# The parameter and value are separated by whitespace.
|
|
# The value may optionally be enclosed in speech marks "" (this is the only way to specify an empty string)
|
|
#
|
|
##########################################################################################################
|
|
|
|
Device.LocalAgent.EndpointID "proto::agent-id"
|
|
Device.LocalAgent.X_VANTIVA-COM_PreConnectTimeout "600"
|
|
|
|
|
|
###################################
|
|
# Controller 1 for CDRouter tests #
|
|
###################################
|
|
|
|
Device.LocalAgent.Controller.1.EndpointID "proto::controller-id"
|
|
Device.LocalAgent.Controller.1.Alias "cpe-1"
|
|
Device.LocalAgent.Controller.1.Enable "true"
|
|
Device.LocalAgent.Controller.1.AssignedRole "Device.LocalAgent.ControllerTrust.Role.1"
|
|
Device.LocalAgent.Controller.1.PeriodicNotifInterval "86400"
|
|
Device.LocalAgent.Controller.1.PeriodicNotifTime "0001-01-01T00:00:00Z"
|
|
Device.LocalAgent.Controller.1.USPNotifRetryMinimumWaitInterval "5"
|
|
Device.LocalAgent.Controller.1.USPNotifRetryIntervalMultiplier "2000"
|
|
Device.LocalAgent.Controller.1.ControllerCode ""
|
|
|
|
# Controller 1, MTP = Websocket
|
|
Device.LocalAgent.Controller.1.MTP.1.Alias "cpe-1"
|
|
Device.LocalAgent.Controller.1.MTP.1.Enable "true"
|
|
Device.LocalAgent.Controller.1.MTP.1.Protocol "WebSocket"
|
|
Device.LocalAgent.Controller.1.MTP.1.WebSocket.Host "controller.cdroutertest.com"
|
|
Device.LocalAgent.Controller.1.MTP.1.WebSocket.Port "443"
|
|
Device.LocalAgent.Controller.1.MTP.1.WebSocket.Path "/controller-path"
|
|
Device.LocalAgent.Controller.1.MTP.1.WebSocket.EnableEncryption "true"
|
|
|
|
# LocalAgent, WebSocket
|
|
Device.LocalAgent.MTP.1.Alias "cpe-1"
|
|
Device.LocalAgent.MTP.1.Enable "true"
|
|
Device.LocalAgent.MTP.1.Protocol "WebSocket"
|
|
Device.LocalAgent.MTP.1.WebSocket.Path "/queue/agent-1"
|
|
Device.LocalAgent.MTP.1.WebSocket.Port "443"
|
|
Device.LocalAgent.MTP.1.WebSocket.EnableEncryption "true"
|
|
|
|
# For USP service
|
|
Device.UnixDomainSockets.UnixDomainSocket.1.Alias "cpe-1"
|
|
Device.UnixDomainSockets.UnixDomainSocket.1.Mode "Listen"
|
|
Device.UnixDomainSockets.UnixDomainSocket.1.Path "/var/run/usp/broker_controller_path"
|
|
Device.UnixDomainSockets.UnixDomainSocket.2.Alias "cpe-2"
|
|
Device.UnixDomainSockets.UnixDomainSocket.2.Mode "Listen"
|
|
Device.UnixDomainSockets.UnixDomainSocket.2.Path "/var/run/usp/broker_agent_path"
|
|
|
|
# LocalAgent, UDS
|
|
Device.LocalAgent.MTP.2.Alias "cpe-2"
|
|
Device.LocalAgent.MTP.2.Protocol "UDS"
|
|
Device.LocalAgent.MTP.2.UDS.UnixDomainSocketRef "Device.UnixDomainSockets.UnixDomainSocket.2"
|
|
Device.LocalAgent.MTP.2.Enable "true"
|