Due to a ransomware attack, the wiki was reverted to a July 2022 version. . We apologize for the lack of a more recent valid backup.
...
The cluster driver combines the CLI, REST, and Bench components as a cluster. This allows the use of a function or variable from another driver without the need to specify that specific driver. For example,
Code Block | ||
---|---|---|
| ||
main.Cluster.active( 0 ).devices() |
can be used instead of
Code Block | ||
---|---|---|
| ||
main.ONOScli1.devices() |
and keeps the same context as the former.
However, if the function name is similar across more than one driver, the driver name will need to be specified. For example, in
Code Block |
---|
main.Cluster.active( 0 ).CLI.sendline( "roles" ) |
"CLI" must be specified to avoid ambiguity.
...