The transition to NetApp MS Azure AD B2C is complete. If you missed the pre-registration, you will be invited to reigister at next log in.
Please note that access to your NetApp data may take up to 1 hour.
To learn more, read the FAQ and watch the video.
Need assistance? Complete this form and select “Registration Issue” as the Feedback Category.

Active IQ Unified Manager Discussions

using conditional execution

STVTEAMGO

Hi,

I want to use  conditional execution in my workflow to execution command of VMFS creating just if the os_type on the lun is vmware.

I saw the options of the  conditional execution but I can't understand how to use them

• When the variables you have specified are found

• When the variables you have specified are not found

• When the expression you have specified is true

I assume that simple examples would help me.

Nati.

1 ACCEPTED SOLUTION

sinhaa

Nati,

     It largely depends on how you want to design your workflow. So I assume you are going to create a VMFS datastore on an existing Lun.

Also assuming you are going to use the WFA certified command "Create VMFS Volume". For checking lun's os type, you would need a lun definition with os_type attribute and this cmd Create VMFS volume doesn't have it. So you'll need a no-op command to find a lun using a filter. Once you have the lun object like lun1, you can use the Advanced tab of Create VMFS command selecting "If the following Expression is true"

lun1.os_type == "vmware"

So if the found lun using the no-op command has os_type as 'vmware', the command Create VMFS will execute in workflow job execution. Else will be disabled. If you want to see the value of this lun1.os_type add it in workflow's return parameters.

Attaching a workflow which you can import on WFA2.2. This will explain you clearly.

Note: This attached workflow example is designed to help you understand using conditional execution in workflows. Preview of this will pass and is enough to explain the concept. Successful execution of this will not happen because it has hard-coded dummy values. Also assuming you have some Lun Data in your WFA cache, else the filter will return empty result.

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

View solution in original post

2 REPLIES 2

sinhaa

Nati,

     It largely depends on how you want to design your workflow. So I assume you are going to create a VMFS datastore on an existing Lun.

Also assuming you are going to use the WFA certified command "Create VMFS Volume". For checking lun's os type, you would need a lun definition with os_type attribute and this cmd Create VMFS volume doesn't have it. So you'll need a no-op command to find a lun using a filter. Once you have the lun object like lun1, you can use the Advanced tab of Create VMFS command selecting "If the following Expression is true"

lun1.os_type == "vmware"

So if the found lun using the no-op command has os_type as 'vmware', the command Create VMFS will execute in workflow job execution. Else will be disabled. If you want to see the value of this lun1.os_type add it in workflow's return parameters.

Attaching a workflow which you can import on WFA2.2. This will explain you clearly.

Note: This attached workflow example is designed to help you understand using conditional execution in workflows. Preview of this will pass and is enough to explain the concept. Successful execution of this will not happen because it has hard-coded dummy values. Also assuming you have some Lun Data in your WFA cache, else the filter will return empty result.

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

View solution in original post

STVTEAMGO

Work great.

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public