We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
ethernet
veth
has
exists
Currently, the python implementation of nmstatectl outputs type: veth for veth interfaces, but future rust implementation outputs
type: veth
type: ethernet veth: peer: name
So for filtering ethernet interfaces that are not veths, we'll need to check for existence of veth key.
The text was updated successfully, but these errors were encountered:
Instead of new operator we can create a new "none" literal used to check field existence
interfaces.veth == none
If we go with "exists" we will need to also implement != operator
interfaces.veth != exists
Sorry, something went wrong.
Ah, I assumed that != is alredy implemented. I think using none literal is a good suggestion. I'll go with that
none
No branches or pull requests
In a scenario where user would like to configure for example all
ethernet
NICs that are notveth
, nmpolicy shouldimplement
has
orexists
operator.Currently, the python implementation of nmstatectl outputs
type: veth
forveth
interfaces, but future rust implementationoutputs
So for filtering ethernet interfaces that are not
veth
s, we'll need to check for existence ofveth
key.The text was updated successfully, but these errors were encountered: