refactor(opcuaclient): remove vestigial TargetNamespaceKind + UnsMappingTable (#648)
Nothing read the mapping table beyond the startup validator; v3 UNS projection is
explicit via UnsTagReference. Legacy keys in stored DriverConfig are ignored (pinned).
Reverts the docker-dev opc-plc seed workaround from fdee129f.
Claude-Session: https://claude.ai/code/session_01Ef2ozxS7QPanGT8uoATbTe
This commit is contained in:
-49
@@ -153,36 +153,6 @@ public sealed record OpcUaClientDriverOptions
|
||||
[Range(1, int.MaxValue)]
|
||||
public int MaxBrowseDepth { get; init; } = 10;
|
||||
|
||||
/// <summary>
|
||||
/// The namespace kind this driver instance gateways into. Per
|
||||
/// <c>docs/v2/driver-specs.md</c> §8 "Namespace Assignment", the OPC UA Client driver
|
||||
/// is the only driver that supports <b>either</b> kind, decided per instance:
|
||||
/// <list type="bullet">
|
||||
/// <item><see cref="OpcUaTargetNamespaceKind.Equipment"/> — gatewaying a remote
|
||||
/// server that exposes raw equipment data; the driver remaps remote browse paths
|
||||
/// to UNS.</item>
|
||||
/// <item><see cref="OpcUaTargetNamespaceKind.SystemPlatform"/> — gatewaying a
|
||||
/// remote server that exposes processed/derived data; hierarchy is preserved via
|
||||
/// the remote browse path with no UNS conversion.</item>
|
||||
/// </list>
|
||||
/// The driver enforces the choice at startup — see
|
||||
/// <c>OpcUaClientDriver.ValidateNamespaceKind</c> — so a misconfiguration fails
|
||||
/// draft validation rather than surfacing as a runtime surprise.
|
||||
/// </summary>
|
||||
public OpcUaTargetNamespaceKind TargetNamespaceKind { get; init; } = OpcUaTargetNamespaceKind.Equipment;
|
||||
|
||||
/// <summary>
|
||||
/// Optional config-driven remote-to-UNS mapping table. Required when
|
||||
/// <see cref="TargetNamespaceKind"/> is <see cref="OpcUaTargetNamespaceKind.Equipment"/>:
|
||||
/// §8 mandates that a remote server gatewayed as Equipment carry a mapping table
|
||||
/// because remote nodes do not conform to UNS by default. Keys are remote browse-path
|
||||
/// prefixes; values are the UNS Area/Line/Name path the matching subtree maps onto.
|
||||
/// For <see cref="OpcUaTargetNamespaceKind.SystemPlatform"/> the table must be empty —
|
||||
/// processed data preserves its own hierarchy and a mapping table would be ambiguous.
|
||||
/// </summary>
|
||||
public IReadOnlyDictionary<string, string> UnsMappingTable { get; init; }
|
||||
= new Dictionary<string, string>();
|
||||
|
||||
/// <summary>
|
||||
/// Timeout for the AdminUI Test Connect probe, in seconds. The AdminUI clamps to a
|
||||
/// 60s server-side maximum; this default is what the form pre-fills for new instances.
|
||||
@@ -266,25 +236,6 @@ public sealed record OpcUaCertificateValidationOptions
|
||||
public string? IssuerStorePath { get; init; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The namespace kind an OPC UA Client driver instance gateways its remote server into.
|
||||
/// See <c>docs/v2/driver-specs.md</c> §8 "Namespace Assignment".
|
||||
/// </summary>
|
||||
public enum OpcUaTargetNamespaceKind
|
||||
{
|
||||
/// <summary>
|
||||
/// Remote server exposes raw equipment data; remote browse paths are remapped to UNS
|
||||
/// via <see cref="OpcUaClientDriverOptions.UnsMappingTable"/>.
|
||||
/// </summary>
|
||||
Equipment,
|
||||
|
||||
/// <summary>
|
||||
/// Remote server exposes processed/derived data; hierarchy is preserved via the
|
||||
/// remote browse path with no UNS conversion.
|
||||
/// </summary>
|
||||
SystemPlatform,
|
||||
}
|
||||
|
||||
/// <summary>OPC UA message security mode.</summary>
|
||||
public enum OpcUaSecurityMode
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user