I do not know the exact rules for how your backup controller is chosen based on source controller. Lets say its purely based on names (source controller suffixed by '2') going by the example provided above.
Assumption: User inputs for the controllers are named as "SourceController" and "BackupController"
You can write the query for the "Backup Controller" something in the lines of:
Thanks Shailaja. While that solution would work for the example it won't accomplish what I'm trying to do overall. I just made up those NAS names for the example. I'll see if I can explain a bit better.
Each source controller is snapmirrored to a backup controller for disaster recovery purposes. The backup controller name is typically different from the source controller name so CONCAT will not do it.
If source controller is n1base01 then backup controller should be mtbase02
If source controller is ttbase01 then backup controller should be qtbase02
Thus I need to somehow do a "If source controller is this, backup controller equals this" kind of statement.
Another option would be to create a new dictionary/datasource (https://communities.netapp.com/videos/3351) and linking the arrays that way. This would allow you to ultimately grow or have multiple 'potential' targets. This would be a fairly simple data source to add and could be extended to have more 'resource pool' type of information.