UCSD - Adding A/B VLAN to UCSM example

Version 2
    Task NameAdding different VLAN names to A and B side of UCSM
    Description

     

    Prerequisites

    Tested on 5.5

    CategoryWorkflow
    ComponentsvSphere 5.x
    User Inputs

    VLAN Name

    VLAN ID


    Instructions for Regular Workflow Use:

    1. Download the attached .ZIP file below to your computer. *Remember the location of the saved file on your computer.
    2. Unzip the file on your computer. Should end up with a .WFD file.
    3. Log in to UCS Director as a user that has "system-admin" privileges.
    4. Navigate to "Policies-->Orchestration" and click on "Import".
    5. Click "Browse" and navigate to the location on your computer where the .WFD file resides. Choose the .WFD file and click "Open".
    6. Click "Upload" and then "OK" once the file upload is completed. Then click "Next".
    7. Click the "Select" button next to "Import Workflows". Click the "Check All" button to check all checkboxes and then the "Select" button.
    8. Click "Submit".
    9. A new folder should appear in "Policies-->Orchestration" that contains the imported workflow. You will now need to update the included tasks with information about the specific environment.

     

    The UCSM output:

     

    Screen Shot 2016-07-06 at 1.00.11 PM.png

     

    The workflow:

     

    Screen Shot 2016-07-06 at 12.53.43 PM.png

     

    Global Input:

     

    Screen Shot 2016-07-06 at 12.54.55 PM.png

     

    Add VLAN Task A

     

    Screen Shot 2016-07-06 at 12.56.42 PM.png

     

    Add VLAN Task B:

     

    Screen Shot 2016-07-06 at 12.57.12 PM.png

     

    Workflow Input:

     

    Screen Shot 2016-07-06 at 12.57.48 PM.png

     

    Execution Log:

     

    Service Request ID: 7610

    Workflow Inputs:

    - VLAN

    - VLANName

    - UCSAccount

     

     

     

     

    Jul 06, 2016 17:42:22 UTC Request submitted

    Jul 06, 2016 17:42:23 UTC Executing workflow item number 1

    Jul 06, 2016 17:42:23 UTC Completed workflow item number 1, with status Completed

    Jul 06, 2016 17:42:27 UTC Executing workflow item number 2

    Jul 06, 2016 17:42:27 UTC Trigger context executeWorkFlowStep called

    Jul 06, 2016 17:42:27 UTC Executing custom action CreateVLAN_UCS_A_B (custom_VLAN CHECK UCSM)

    Jul 06, 2016 17:42:27 UTC Executing custom action CreateVLAN_UCS_A_B (custom_VLAN CHECK UCSM)

    Jul 06, 2016 17:42:27 UTC Executing custom script for VLAN CHECK UCSM

    Jul 06, 2016 17:42:30 UTC -------------------------------------

    Jul 06, 2016 17:42:30 UTC Iteration 0

    Jul 06, 2016 17:42:30 UTC -------------------------------------

    Jul 06, 2016 17:42:30 UTC ID DallasUCSM;fabric/lan/net-default

    Jul 06, 2016 17:42:30 UTC DN fabric/lan/net-default

    Jul 06, 2016 17:42:30 UTC NAME default

    Jul 06, 2016 17:42:30 UTC ID 1

    Jul 06, 2016 17:42:30 UTC Looking for VLAN...............: 501

    Jul 06, 2016 17:42:30 UTC Found VLAN...............: 1

    Jul 06, 2016 17:42:30 UTC -------------------------------------

    Jul 06, 2016 17:42:30 UTC Iteration 1

    Jul 06, 2016 17:42:30 UTC -------------------------------------

    Jul 06, 2016 17:42:30 UTC ID DallasUCSM;fabric/eth-estc/net-default

    Jul 06, 2016 17:42:30 UTC DN fabric/eth-estc/net-default

    Jul 06, 2016 17:42:30 UTC NAME default

    Jul 06, 2016 17:42:30 UTC ID 1

    Jul 06, 2016 17:42:30 UTC Looking for VLAN...............: 501

    Jul 06, 2016 17:42:30 UTC Found VLAN...............: 1

    Jul 06, 2016 17:42:30 UTC -------------------------------------

    Jul 06, 2016 17:42:30 UTC Iteration 2

    Jul 06, 2016 17:42:30 UTC -------------------------------------

    Jul 06, 2016 17:42:30 UTC ID DallasUCSM;fabric/lan/net-VLAN_32

    Jul 06, 2016 17:42:30 UTC DN fabric/lan/net-VLAN_32

    Jul 06, 2016 17:42:30 UTC NAME VLAN_32

    Jul 06, 2016 17:42:30 UTC ID 32

    Jul 06, 2016 17:42:30 UTC Looking for VLAN...............: 501

    Jul 06, 2016 17:42:30 UTC Found VLAN...............: 32

    Jul 06, 2016 17:42:30 UTC -------------------------------------

    Jul 06, 2016 17:42:30 UTC Iteration 3

    Jul 06, 2016 17:42:30 UTC -------------------------------------

    Jul 06, 2016 17:42:30 UTC ID DallasUCSM;fabric/lan/net-PXE_Boot_Vlan

    Jul 06, 2016 17:42:30 UTC DN fabric/lan/net-PXE_Boot_Vlan

    Jul 06, 2016 17:42:30 UTC NAME PXE_Boot_Vlan

    Jul 06, 2016 17:42:30 UTC ID 666

    Jul 06, 2016 17:42:30 UTC Looking for VLAN...............: 501

    Jul 06, 2016 17:42:30 UTC Found VLAN...............: 666

    Jul 06, 2016 17:42:30 UTC -------------------------------------

    Jul 06, 2016 17:42:30 UTC Iteration 4

    Jul 06, 2016 17:42:30 UTC -------------------------------------

    Jul 06, 2016 17:42:30 UTC ID DallasUCSM;fabric/lan/net-703beta

    Jul 06, 2016 17:42:30 UTC DN fabric/lan/net-703beta

    Jul 06, 2016 17:42:30 UTC NAME 703beta

    Jul 06, 2016 17:42:30 UTC ID 703

    Jul 06, 2016 17:42:30 UTC Looking for VLAN...............: 501

    Jul 06, 2016 17:42:30 UTC Found VLAN...............: 703

    Jul 06, 2016 17:42:30 UTC -------------------------------------

    Jul 06, 2016 17:42:30 UTC Iteration 5

    Jul 06, 2016 17:42:30 UTC -------------------------------------

    Jul 06, 2016 17:42:30 UTC ID DallasUCSM;fabric/lan/net-708TAMU

    Jul 06, 2016 17:42:30 UTC DN fabric/lan/net-708TAMU

    Jul 06, 2016 17:42:30 UTC NAME 708TAMU

    Jul 06, 2016 17:42:30 UTC ID 708

    Jul 06, 2016 17:42:30 UTC Looking for VLAN...............: 501

    Jul 06, 2016 17:42:30 UTC Found VLAN...............: 708

    Jul 06, 2016 17:42:30 UTC -------------------------------------

    Jul 06, 2016 17:42:30 UTC Iteration 6

    Jul 06, 2016 17:42:30 UTC -------------------------------------

    Jul 06, 2016 17:42:30 UTC ID DallasUCSM;fabric/eth-estc/net-NimbleA

    Jul 06, 2016 17:42:30 UTC DN fabric/eth-estc/net-NimbleA

    Jul 06, 2016 17:42:30 UTC NAME NimbleA

    Jul 06, 2016 17:42:30 UTC ID 30

    Jul 06, 2016 17:42:30 UTC Looking for VLAN...............: 501

    Jul 06, 2016 17:42:30 UTC Found VLAN...............: 30

    Jul 06, 2016 17:42:30 UTC -------------------------------------

    Jul 06, 2016 17:42:30 UTC Iteration 7

    Jul 06, 2016 17:42:30 UTC -------------------------------------

    Jul 06, 2016 17:42:30 UTC ID DallasUCSM;fabric/eth-estc/net-NimbleB

    Jul 06, 2016 17:42:30 UTC DN fabric/eth-estc/net-NimbleB

    Jul 06, 2016 17:42:30 UTC NAME NimbleB

    Jul 06, 2016 17:42:30 UTC ID 31

    Jul 06, 2016 17:42:30 UTC Looking for VLAN...............: 501

    Jul 06, 2016 17:42:30 UTC Found VLAN...............: 31

    Jul 06, 2016 17:42:30 UTC -------------------------------------

    Jul 06, 2016 17:42:30 UTC Iteration 8

    Jul 06, 2016 17:42:30 UTC -------------------------------------

    Jul 06, 2016 17:42:30 UTC ID DallasUCSM;fabric/lan/net-500test

    Jul 06, 2016 17:42:30 UTC DN fabric/lan/net-500test

    Jul 06, 2016 17:42:30 UTC NAME 500test

    Jul 06, 2016 17:42:30 UTC ID 500

    Jul 06, 2016 17:42:30 UTC Looking for VLAN...............: 501

    Jul 06, 2016 17:42:30 UTC Found VLAN...............: 500

    Jul 06, 2016 17:42:30 UTC -------------------------------------

    Jul 06, 2016 17:42:30 UTC Iteration 9

    Jul 06, 2016 17:42:30 UTC -------------------------------------

    Jul 06, 2016 17:42:30 UTC ID DallasUCSM;fabric/lan/net-803testbaylo

    Jul 06, 2016 17:42:30 UTC DN fabric/lan/net-803testbaylo

    Jul 06, 2016 17:42:30 UTC NAME 803testbaylo

    Jul 06, 2016 17:42:30 UTC ID 803

    Jul 06, 2016 17:42:30 UTC Looking for VLAN...............: 501

    Jul 06, 2016 17:42:30 UTC Found VLAN...............: 803

    Jul 06, 2016 17:42:30 UTC -------------------------------------

    Jul 06, 2016 17:42:30 UTC Iteration 10

    Jul 06, 2016 17:42:30 UTC -------------------------------------

    Jul 06, 2016 17:42:30 UTC ID DallasUCSM;fabric/lan/net-633DSW

    Jul 06, 2016 17:42:30 UTC DN fabric/lan/net-633DSW

    Jul 06, 2016 17:42:30 UTC NAME 633DSW

    Jul 06, 2016 17:42:30 UTC ID 633

    Jul 06, 2016 17:42:30 UTC Looking for VLAN...............: 501

    Jul 06, 2016 17:42:30 UTC Found VLAN...............: 633

    Jul 06, 2016 17:42:30 UTC Processing output: ReturnStatus

    Jul 06, 2016 17:42:31 UTC Task #2 (CreateVLAN_UCS_A_B (custom_VLAN CHECK UCSM)) completed successfully in 4 seconds

    Jul 06, 2016 17:42:31 UTC Input/Output values for Task #2 (CreateVLAN_UCS_A_B (custom_VLAN CHECK UCSM)):

    Jul 06, 2016 17:42:31 UTC [Mapped Input: UCSMAccount = DallasUCSM]

    Jul 06, 2016 17:42:31 UTC [Mapped Input: UCSMVLAN = 501]

    Jul 06, 2016 17:42:31 UTC [Output: ReturnStatus = 0]

    Jul 06, 2016 17:42:31 UTC Completed workflow item number 2, with status Completed

    Jul 06, 2016 17:42:37 UTC Executing workflow item number 3

    Jul 06, 2016 17:42:37 UTC Trigger context executeWorkFlowStep called

    Jul 06, 2016 17:42:37 UTC Executing custom action CreateVLAN_UCS_A_B (Add VLAN)

    Jul 06, 2016 17:42:37 UTC Executing custom action CreateVLAN_UCS_A_B (Add VLAN)

    Jul 06, 2016 17:42:41 UTC VLAN created

    Jul 06, 2016 17:42:45 UTC Task #3 (CreateVLAN_UCS_A_B (Add VLAN)) completed successfully in 7 seconds

    Jul 06, 2016 17:42:45 UTC Input/Output values for Task #3 (CreateVLAN_UCS_A_B (Add VLAN)):

    Jul 06, 2016 17:42:45 UTC [Template Input:VLAN Name = A-${VLANName}]

    Jul 06, 2016 17:42:45 UTC [Resolved Template Input: VLAN Name = A-WEBTier501]

    Jul 06, 2016 17:42:45 UTC [Local Input: VLAN Name = A-WEBTier501]

    Jul 06, 2016 17:42:45 UTC [Mapped Input: Account Name = DallasUCSM]

    Jul 06, 2016 17:42:45 UTC [Local Input: Physical Infrastructure = true]

    Jul 06, 2016 17:42:45 UTC [Local Input: VLAN Type = A]

    Jul 06, 2016 17:42:45 UTC [Local Input: VLAN ID(Common/Global) = ]

    Jul 06, 2016 17:42:45 UTC [Mapped Input: VLAN ID (Fabric A) = 501]

    Jul 06, 2016 17:42:45 UTC [Local Input: VLAN ID (Fabric B) = ]

    Jul 06, 2016 17:42:45 UTC [Local Input: VLAN A = null]

    Jul 06, 2016 17:42:45 UTC [Local Input: VLAN ID A(Both Fabrics Configured Differently) = ]

    Jul 06, 2016 17:42:45 UTC [Local Input: Sharing = None]

    Jul 06, 2016 17:42:45 UTC [Local Input: Primary VLAN = ]

    Jul 06, 2016 17:42:45 UTC [Local Input: VLAN B = null]

    Jul 06, 2016 17:42:45 UTC [Local Input: VLAN ID B(Both Fabrics Configured Differently) = ]

    Jul 06, 2016 17:42:45 UTC [Local Input: Sharing = None]

    Jul 06, 2016 17:42:45 UTC [Local Input: Primary VLAN = ]

    Jul 06, 2016 17:42:45 UTC [Local Input: Virtual Infrastructure = false]

    Jul 06, 2016 17:42:45 UTC [Local Input: Organizations = ]

    Jul 06, 2016 17:42:45 UTC [Local Input: Service Profiles = ]

    Jul 06, 2016 17:42:45 UTC [Local Input: Service Profiles Templates = ]

    Jul 06, 2016 17:42:45 UTC [Local Input: vNIC Templates = ]

    Jul 06, 2016 17:42:45 UTC [Output: OUTPUT_VLAN_IDENTITY1 = DallasUCSM;fabric/lan/A/net-A-WEBTier501]

    Jul 06, 2016 17:42:45 UTC [Output: OUTPUT_VLAN_ID1 = 501]

    Jul 06, 2016 17:42:45 UTC [Output: OUTPUT_VLAN_IDENTITY2 = ]

    Jul 06, 2016 17:42:45 UTC [Output: OUTPUT_VLAN_ID2 = ]

    Jul 06, 2016 17:42:45 UTC Completed workflow item number 3, with status Completed

    Jul 06, 2016 17:42:47 UTC Executing workflow item number 4

    Jul 06, 2016 17:42:47 UTC Trigger context executeWorkFlowStep called

    Jul 06, 2016 17:42:47 UTC Executing custom action CreateVLAN_UCS_A_B (Add VLAN)

    Jul 06, 2016 17:42:48 UTC Executing custom action CreateVLAN_UCS_A_B (Add VLAN)

    Jul 06, 2016 17:42:52 UTC VLAN created

    Jul 06, 2016 17:42:56 UTC Task #4 (CreateVLAN_UCS_A_B (Add VLAN)) completed successfully in 8 seconds

    Jul 06, 2016 17:42:56 UTC Input/Output values for Task #4 (CreateVLAN_UCS_A_B (Add VLAN)):

    Jul 06, 2016 17:42:56 UTC [Template Input:VLAN Name = B-${VLANName}]

    Jul 06, 2016 17:42:56 UTC [Resolved Template Input: VLAN Name = B-WEBTier501]

    Jul 06, 2016 17:42:56 UTC [Local Input: VLAN Name = B-WEBTier501]

    Jul 06, 2016 17:42:56 UTC [Mapped Input: Account Name = DallasUCSM]

    Jul 06, 2016 17:42:56 UTC [Local Input: Physical Infrastructure = true]

    Jul 06, 2016 17:42:56 UTC [Local Input: VLAN Type = B]

    Jul 06, 2016 17:42:56 UTC [Local Input: VLAN ID(Common/Global) = ]

    Jul 06, 2016 17:42:56 UTC [Local Input: VLAN ID (Fabric A) = ]

    Jul 06, 2016 17:42:56 UTC [Mapped Input: VLAN ID (Fabric B) = 501]

    Jul 06, 2016 17:42:56 UTC [Local Input: VLAN A = null]

    Jul 06, 2016 17:42:56 UTC [Local Input: VLAN ID A(Both Fabrics Configured Differently) = ]

    Jul 06, 2016 17:42:56 UTC [Local Input: Sharing = None]

    Jul 06, 2016 17:42:56 UTC [Local Input: Primary VLAN = ]

    Jul 06, 2016 17:42:56 UTC [Local Input: VLAN B = null]

    Jul 06, 2016 17:42:56 UTC [Local Input: VLAN ID B(Both Fabrics Configured Differently) = ]

    Jul 06, 2016 17:42:56 UTC [Local Input: Sharing = None]

    Jul 06, 2016 17:42:56 UTC [Local Input: Primary VLAN = ]

    Jul 06, 2016 17:42:56 UTC [Local Input: Virtual Infrastructure = false]

    Jul 06, 2016 17:42:56 UTC [Local Input: Organizations = ]

    Jul 06, 2016 17:42:56 UTC [Local Input: Service Profiles = ]

    Jul 06, 2016 17:42:56 UTC [Local Input: Service Profiles Templates = ]

    Jul 06, 2016 17:42:56 UTC [Local Input: vNIC Templates = ]

    Jul 06, 2016 17:42:56 UTC [Output: OUTPUT_VLAN_IDENTITY1 = DallasUCSM;fabric/lan/B/net-B-WEBTier501]

    Jul 06, 2016 17:42:56 UTC [Output: OUTPUT_VLAN_ID1 = 501]

    Jul 06, 2016 17:42:56 UTC [Output: OUTPUT_VLAN_IDENTITY2 = ]

    Jul 06, 2016 17:42:56 UTC [Output: OUTPUT_VLAN_ID2 = ]

    Jul 06, 2016 17:42:56 UTC Completed workflow item number 4, with status Completed

    Jul 06, 2016 17:42:58 UTC Executing workflow item number 5

    Jul 06, 2016 17:42:58 UTC Trigger context executeWorkFlowStep called

    Jul 06, 2016 17:42:58 UTC Executing custom action CreateVLAN_UCS_A_B (Send Email)

    Jul 06, 2016 17:42:58 UTC Executing custom action CreateVLAN_UCS_A_B (Send Email)

    Jul 06, 2016 17:43:01 UTC Sending email to ogelbric@cisco.com, with Subject VLAN 7610 Created

    Jul 06, 2016 17:43:02 UTC Task #5 (CreateVLAN_UCS_A_B (Send Email)) completed successfully in 3 seconds

    Jul 06, 2016 17:43:02 UTC Input/Output values for Task #5 (CreateVLAN_UCS_A_B (Send Email)):

    Jul 06, 2016 17:43:02 UTC [Template Input:E-mail Addresses = ${SUBMITTER_EMAIL}]

    Jul 06, 2016 17:43:02 UTC [Resolved Template Input: E-mail Addresses = ogelbric@cisco.com]

    Jul 06, 2016 17:43:02 UTC [Local Input: E-mail Addresses = ogelbric@cisco.com]

    Jul 06, 2016 17:43:02 UTC [Template Input:Subject = VLAN ${SR_ID} Created]

    Jul 06, 2016 17:43:02 UTC [Resolved Template Input: Subject = VLAN 7610 Created]

    Jul 06, 2016 17:43:02 UTC [Local Input: Subject = VLAN 7610 Created]

    Jul 06, 2016 17:43:02 UTC [Template Input:Body = VLAN Creation ============ Name: ${VLANName} ID: ${VLAN} ]

    Jul 06, 2016 17:43:02 UTC [Resolved Template Input: Body = VLAN Creation ============ Name: WEBTier501 ID: 501 ]

    Jul 06, 2016 17:43:02 UTC [Local Input: Body = VLAN Creation ============ Name: WEBTier501 ID: 501 ]

    Jul 06, 2016 17:43:02 UTC [Output: EMAIL_ADDRESSES = ogelbric@cisco.com]

    Jul 06, 2016 17:43:02 UTC Completed workflow item number 5, with status Completed

    Jul 06, 2016 17:43:05 UTC Executing workflow item number 6

    Jul 06, 2016 17:43:05 UTC Completed workflow item number 6, with status Completed

     

    Workflow Rollback:

     

    Screen Shot 2016-07-06 at 1.03.43 PM.png