Skip to content
This repository was archived by the owner on Dec 12, 2025. It is now read-only.
This repository was archived by the owner on Dec 12, 2025. It is now read-only.

implement "has" operator to check for key existence  #104

@rhrazdil

Description

@rhrazdil

In a scenario where user would like to configure for example all ethernet NICs that are not veth, nmpolicy should
implement has or exists operator.

Currently, the python implementation of nmstatectl outputs type: veth for veth interfaces, but future rust implementation
outputs

type: ethernet
veth:
  peer: name

So for filtering ethernet interfaces that are not veths, we'll need to check for existence of veth key.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions