Shumoku Docs

Search documentation

Shared docs and current release

Loading search…

日本語

@shumoku/core · 0.4.0 · function

interfaceNamesMatch

Source

Whether two interface names denote the same physical port. Same canonical prefix with aligning numbers (score ≥ 0.5), OR — for cross-vocabulary cases like TTDB's speed-code `hg` vs Juniper `et-` where prefixes differ but the port number is identical — the full number sequence matches.

interfaceNamesMatch(a: string, b: string): boolean

Parameters

Parameter Type Description Default
a string No additional description.
b string No additional description.

Returns

boolean

libs/@shumoku/core/src/observation/interface-name.ts:143