I want to select all VNET assigned to a cluster, some of them are assigned to multiple clusters, I tried:
onevnet list -f CLUSTERS=0 → produce no result as no VNET is assigned uniquely to this cluster
onevnet list -f CLUSTERS="0,100" → produce the error Expression '100' incorrect
How could I list only those assigned to cluster 0 regardless of any other assignment?
I read the documentation but the filterflag description is quite cryptic to me:
filterflag a, all all the known VNETs m, mine the VNET belonging to the user in ONE_AUTH g, group ‘mine’ plus the VNET belonging to the groups the user is member of uid VNET of the user identified by this uid user VNET of the user identified by the username
Unfortunately I think the CLI can’t currently do what you want.
The -f option does a search on the exact string, so it won’t work in your case.
And that “filterflag” is not related to the -f option, it refers to this:
* filterflag
a, all all the known VMTEMPLATEs
m, mine the VMTEMPLATE belonging to the user in ONE_AUTH
g, group 'mine' plus the VMTEMPLATE belonging to the groups
the user is member of
uid VMTEMPLATE of the user identified by this uid
user VMTEMPLATE of the user identified by the username