Skip to content

Export-DrawIO: style L2-FDB edges distinctly (not unknown default) #59

Closed

Description

@jacobyoby

Context

#56 / #39 added Get-SnmpBridgeNeighbors emitting edges with Confidence='L2-FDB', and Merge-Edges ranks L2-SNMP > L2-FDB > L2-SNMP-Heuristic > L3-Inferred.

Export-DrawIO only special-cases L2-SNMP, L2-SNMP-Heuristic, and L3-Inferred. Anything else (including L2-FDB) falls into the default branch: gray dotted “unknown” styling — visually worse than provisional heuristic links and below the Merge-Edges confidence ranking.

What

Teach DrawIO export (and README confidence legend) about L2-FDB:

  • Solid (or near-solid) stroke distinct from heuristic amber dashes and from L3 gray dashes.
  • Prefer a verified-L2 look close to L2-SNMP but distinguishable (e.g. solid teal/blue, strokeWidth ≥ 2).
  • README diagram features / confidence legend mentions FDB alongside SNMP.

Why it matters

Bridge FDB edges are the new verified-ish L2 path when CDP/LLDP are silent. Rendering them as “unknown” undoes the point of #39 and misleads diagram readers.

Acceptance criteria

  • Export-DrawIO emits a dedicated style branch for Confidence -eq 'L2-FDB' (not the default unknown path).
  • Visual rank matches intent: L2-SNMP and L2-FDB read as strong/solid; heuristic remains amber dashed; L3 remains gray dashed.
  • Pester asserts the generated XML for an L2-FDB edge contains the chosen stroke markers (color and/or dashed=0).
  • README confidence bullet list includes L2-FDB.

Related

Follows #56 / #39. Adjacent to #20 heuristic distinction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions