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 `veth`s, we'll need to check for existence of `veth` key.
In a scenario where user would like to configure for example all
ethernetNICs that are notveth, nmpolicy shouldimplement
hasorexistsoperator.Currently, the python implementation of nmstatectl outputs
type: vethforvethinterfaces, but future rust implementationoutputs
So for filtering ethernet interfaces that are not
veths, we'll need to check for existence ofvethkey.