DRANET currently uses a static --filter flag (CEL expression) to decide which network devices to publish. While this works for simple cases, it is proving too rigid for complex cloud environments.
The current "static" model has two main limitations:
- No Per-Node Flexibility: The filter is set in the manifest and is the same for every node in a pool, making it impossible to handle node-specific hardware state.
- Attribute Bloat: To make the filter "dynamic," we currently have to add extra attributes to devices just so the filter can see them. This can lead to unnecessary bloat in the
ResourceSlice, and we are already approaching the limit on the max number of attributes allowed per device.
Why we need it
Recent discussions (e.g. #138 (comment), #138 (comment)) have shown that standard logic (like "exclude anything with a default gateway") isn't enough. On these platforms, multiple interfaces might carry default routes even if they are meant for workload traffic.
Possible approaches (amongst others, feel free to comment)
Instead of just letting cloud providers add attributes to devices, we could allow them to filter the device list during discovery.
This keeps the logic simple and localized:
- Cloud providers can use their existing knowledge (metadata, specific hardware IDs) to explicitly exclude management or host-reserved NICs.
- We avoid "special-casing" new interfaces for every unique cloud side-effect.
- We keep the
ResourceSlice clean by not publishing "internal-only" attributes just for filtering purposes.
/cc @aojea @dkennetzoracle @tamilmani1989
DRANET currently uses a static --filter flag (CEL expression) to decide which network devices to publish. While this works for simple cases, it is proving too rigid for complex cloud environments.
The current "static" model has two main limitations:
ResourceSlice, and we are already approaching the limit on the max number of attributes allowed per device.Why we need it
Recent discussions (e.g. #138 (comment), #138 (comment)) have shown that standard logic (like "exclude anything with a default gateway") isn't enough. On these platforms, multiple interfaces might carry default routes even if they are meant for workload traffic.
Possible approaches (amongst others, feel free to comment)
Instead of just letting cloud providers add attributes to devices, we could allow them to filter the device list during discovery.
This keeps the logic simple and localized:
ResourceSliceclean by not publishing "internal-only" attributes just for filtering purposes./cc @aojea @dkennetzoracle @tamilmani1989