nautobot-app-circuit-maintenance icon indicating copy to clipboard operation
nautobot-app-circuit-maintenance copied to clipboard

Fallback to substring match for circuit CIDs if not found based on full string?

Open glennmatthews opened this issue 2 years ago • 0 comments

Environment

  • Nautobot version: 1.1.5
  • nautobot-circuit-maintenance version: 0.4.1

Proposed Functionality

If we can't find a circuit CID based on the full string provided by the parser, perhaps we should have fallback logic to try for substring matches rather than giving up immediately?

Use Case

Example: a Telia notification is parsed to report a circuit ID of the form EON 1234567/2 FRO2006765432 10Gbps CFS 500067890 but in Nautobot the circuit's CID is simply FRO2006765432. Currently we report this as a nonexistent circuit ID - it would be nice if the plugin were "smart" enough to identify this match based on the substring.

glennmatthews avatar Dec 03 '21 14:12 glennmatthews