Skip to content

[feat] IOSXETestBase.get_excluded_features helper for SD-WAN UX 2.0 #38

Description

@aitestino

Problem

SD-WAN dual-device configuration groups (UX 2.0) assign features to specific
devices via device_tags. Each verify_* test that iterates over UX 2.0
feature blocks (BGP, OSPF, OMP, ...) needs the same filter to know which
features belong to this router and which are assigned to its pair partner
and must be skipped. Duplicating the detection logic in each verify_* test
creates copy-paste risk and inconsistent behavior as the SD-WAN Manager
version-detection rules evolve (20.15 tags vs 20.18+ topology_label).

Proposal

Add IOSXETestBase.get_excluded_features(router, config_group) -> set[str]
returning the feature names that belong to the OTHER device in a dual-device
pair and should be skipped for this router.

Detection order:

  1. SD-WAN 20.18+ — match by non-empty router.topology_label.
  2. SD-WAN 20.15 and earlier — match by any non-empty string in router.tags.

Fail-safe direction on any detection failure: return an empty set (over-test
rather than silently skip) and log a WARNING for operator visibility.

Resolution

Implemented in #35.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions