Hi All,

I'm working on the custom share_driver for manila and want to provide 
goodness_function for it. 
My driver is working with 2 share types (NFS and CIFS) with corresponding 
metrics (nfs_share_limit, nfs_share_count, cifs_share_limit, cifs_share_count, 
etc) 
How I can differentiate between thouse 2 share types and provide correct 
goodness function with corresponding metrics?

f.e.  "100 - 100 * ((share_type == 'CIFS') ? (cifs_share_limit / 
cifs_share_count) : (nfs_share_limit / nfs_share_count))"

Looks good, but existing pyparsing based string evaluation does not work with 
strings - so this part: (share_type == 'CIFS') raising an error...
Is it possible to utilize my metrics  for goodness_function?
Maybe there is a workaround?

Thanks,
Denys

_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : [email protected]
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack

Reply via email to