<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Setting Aggr and vserver using custom function? in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Setting-Aggr-and-vserver-using-custom-function/m-p/111937#M19806</link>
    <description>&lt;P&gt;How do I convert it?&lt;/P&gt;</description>
    <pubDate>Thu, 29 Oct 2015 09:12:57 GMT</pubDate>
    <dc:creator>KevHaynes</dc:creator>
    <dc:date>2015-10-29T09:12:57Z</dc:date>
    <item>
      <title>Setting Aggr and vserver using custom function?</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Setting-Aggr-and-vserver-using-custom-function/m-p/111806#M19781</link>
      <description>&lt;P&gt;I am attempting to build a workflow that creates a volume, its mirror and it snapvaut destination, using the values users enter for the source, to then calculate values for the rest via custom expressions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have a naming convension which is to be adhered too and also pre defined relationships between different CDOT clusters. Im controlling text input fieds with RegEx.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to do the following...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I define the source volumes aggregate as "aggr_dc1_0001", then the mirror volume should be placed in "aggr_dc2_0001". We have a similar pattern with vservers, and volumes. I've got my source volume fields populating via SQL queries, and that side of things is working lovely.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have written a function that does a replace and returns the correct value for the mirrors aggregate, I know the function works I've tested it, and I get what I expect out of it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While other fields can clearly call a function since the autocomplete box pops up, the Aggr field doesnt, and only allows me to do a search with the keys. When&amp;nbsp; I pass the function to the to the key fields, in the form like AggrTranslate($SourceVol),&amp;nbsp; I get invalid expression errors.&amp;nbsp; I dont want it to "search" for an aggregate, I know the one I want it to go to, and have a way to return that value, just cant seem to pass it in a way WFA is happy with...what am I missing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;def AggrTranslate(aggr){

  if (aggr[6] == "1") {
  return aggr.replace("dc1","dc2")
  }

  else if (aggr[6] == "2") {
  return aggr.replace("dc2","dc1")
  }

}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Kev&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 22:56:54 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Setting-Aggr-and-vserver-using-custom-function/m-p/111806#M19781</guid>
      <dc:creator>KevHaynes</dc:creator>
      <dc:date>2025-06-04T22:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Aggr and vserver using custom function?</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Setting-Aggr-and-vserver-using-custom-function/m-p/111880#M19794</link>
      <description>&lt;P&gt;Kindly post your workflow. WFA designer issues are very difficult to debug unless a workflow is provided.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll point you the issue, and explain the reason as well. Will also give the corrected workflow dar if possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sinhaa&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2015 11:19:03 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Setting-Aggr-and-vserver-using-custom-function/m-p/111880#M19794</guid>
      <dc:creator>sinhaa</dc:creator>
      <dc:date>2015-10-28T11:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Aggr and vserver using custom function?</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Setting-Aggr-and-vserver-using-custom-function/m-p/111924#M19801</link>
      <description>&lt;P&gt;The aggr field is expecting a reference.&lt;/P&gt;&lt;P&gt;However you are trying to pass an absolute value to the field.&lt;/P&gt;&lt;P&gt;So there is a mismatch, hence is the error.&lt;/P&gt;&lt;P&gt;You need to convert the field to accept an absolute value rather than expect a reference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Abhi&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2015 06:27:38 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Setting-Aggr-and-vserver-using-custom-function/m-p/111924#M19801</guid>
      <dc:creator>abhit</dc:creator>
      <dc:date>2015-10-29T06:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Aggr and vserver using custom function?</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Setting-Aggr-and-vserver-using-custom-function/m-p/111937#M19806</link>
      <description>&lt;P&gt;How do I convert it?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2015 09:12:57 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Setting-Aggr-and-vserver-using-custom-function/m-p/111937#M19806</guid>
      <dc:creator>KevHaynes</dc:creator>
      <dc:date>2015-10-29T09:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Aggr and vserver using custom function?</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Setting-Aggr-and-vserver-using-custom-function/m-p/112060#M19822</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have written a workflow to demonstrate the same.&amp;nbsp;I have not been able to test it yet.&lt;/P&gt;&lt;P&gt;Please look into the "TestCommand" which takes the value in aggrname instead of&lt;/P&gt;&lt;P&gt;reference.&amp;nbsp;Will work with 3.1Rc1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Abhi&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2015 05:11:23 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Setting-Aggr-and-vserver-using-custom-function/m-p/112060#M19822</guid>
      <dc:creator>abhit</dc:creator>
      <dc:date>2015-11-02T05:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Aggr and vserver using custom function?</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Setting-Aggr-and-vserver-using-custom-function/m-p/112070#M19824</link>
      <description>&lt;P&gt;Thank you very much, this is very much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My knowledge of WFA is only what I've been able to work out off my own back, so this will really help.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2015 09:41:09 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Setting-Aggr-and-vserver-using-custom-function/m-p/112070#M19824</guid>
      <dc:creator>KevHaynes</dc:creator>
      <dc:date>2015-11-02T09:41:09Z</dc:date>
    </item>
  </channel>
</rss>

