Skip to content

Add IsVirtual to KNE solver devices - #158

Open
navaneethyv wants to merge 1 commit into
mainfrom
isVirtual
Open

navaneethyv wants to merge 1 commit into
mainfrom
isVirtual

Conversation

@navaneethyv

@navaneethyv navaneethyv commented Oct 23, 2026 •

Copy link
Copy Markdown

Add IsVirtual() bool to solver.ServiceDUT and solver.ServiceATE, both returning true, with focused unit coverage. This lets test frameworks detect emulated KNE devices through an optional interface without changing binding.DUT.

KNE model strings can match real hardware models, so model-based detection is unreliable when scaling traffic rates and similar test parameters.

Every KNE binding embeds *solver.ServiceDUT, so this exposes "the device is emulated" to test frameworks via an optional interface (interface{ IsVirtual() bool }) on the binding DUT, without changing the binding.DUT interface. Hardware bindings do not implement it.

Motivation: openconfig/featureprofiles tests need to scale traffic rates and similar parameters on KNE without matching dut.Model() against image names, which is unreliable because KNE reports the topology model string (e.g. "8201", "ixr10e") that can be identical to real hardware.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants