Oneview scripting you can escape the TCL parsing by using CLI
An example of using a script against an K10 EOS switch
#@MetaDataStart#############################################################################################
# Define your user parameters in this section. For reference, see bundled scripts.
#############################################################################################
#@MetaDataEnd
# Enter all CLI commands from here
# EXOS CLI stype if statement (case sensitive : NO)
IF (!$match($isExos,true) ) THEN
Echo "$deviceIP is an EXOS switch."
enable ports $port
ELSE
Echo "$deviceIP is NOT and EXOS switch"
CLI set port enable $port
ENDIF

I believe most if not all the oneview scripts were ported for Ridgeline and are XOS based. There are a few example scripts to show how to do things for both.