VMware Cloud Community
BigBlueMike
Enthusiast
Enthusiast
Jump to solution

SRM plugin: Add a Network Mapping

Hi folks,

maybe someone can help me with this question.

OK so there is this new SRM plugin for vCO to use with SRM 5.8. I can start a workflow provide the required input and it does what it says it does but I don't understand how I can link some of those new workflows into my workflows because I am missing quite some methods. As an example lets look at the workflow "Add a Network Mapping", lets say I have my existing workflow which creates a portgroup and now I want the newly created portgroup mapped in SRM so I want to call the "Add a Network Mapping" workflow and it expects as input from me three parameters, SRM:Site, SRM:LocalNetwork and SRM:RemoteNetwork but since there is no method like getAllRemoteNetwork I don't know how to pass that value to the "Add a Network Mapping" workflow other than me as a human picking it through the vCO UI.

Thank you for any help on this.

1 Solution

Accepted Solutions
admin
Immortal
Immortal
Jump to solution

I am not overly familiar with vRealize Orchestrator (SRM being more my area of focus) but you may be able to use the Server.findAllForType method in a scriptable task (passing for example the SRM:RemoteNetwork type and the name of the network as the two parameters) to retrieve an array of matching remote networks. I am sure more knowledgeable orchestrator experts can provide more details on this.

View solution in original post

Reply
0 Kudos
3 Replies
admin
Immortal
Immortal
Jump to solution

I am not overly familiar with vRealize Orchestrator (SRM being more my area of focus) but you may be able to use the Server.findAllForType method in a scriptable task (passing for example the SRM:RemoteNetwork type and the name of the network as the two parameters) to retrieve an array of matching remote networks. I am sure more knowledgeable orchestrator experts can provide more details on this.

Reply
0 Kudos
BigBlueMike
Enthusiast
Enthusiast
Jump to solution

Ben thank you so much, this was exactly what I was looking for but simply couldn't find it.

var localNets = Server.findAllForType("SRM:LocalNetwork");

gives me an array of SRM:LocalNetwork like you suggested. That way I can even pass the name as a second parameter and don't need to search for it like

create portgroup.........

myPortgroup

var mySrmLocalNetwork = Server.findAllForType("SRM:LocalNetwork", myPortgroup.config.name);

admin
Immortal
Immortal
Jump to solution

Great, glad I could point you in the right direction!

By the way I am on the Product Management team responsible for SRM, it sounds like you are working on something interesting with the product so if you ever want to chat about it or share product feedback please feel free to reach out.

Reply
0 Kudos