<?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: perl - SDK - append export in Software Development Kit (SDK) and API Discussions</title>
    <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/perl-SDK-append-export/m-p/106125#M1518</link>
    <description>&lt;P&gt;Yes, it does help. It worked.&lt;/P&gt;&lt;P&gt;Thanks you very much!&lt;/P&gt;&lt;P&gt;Felipe&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jun 2015 11:32:47 GMT</pubDate>
    <dc:creator>kfelipe</dc:creator>
    <dc:date>2015-06-11T11:32:47Z</dc:date>
    <item>
      <title>perl - SDK - append export</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/perl-SDK-append-export/m-p/106021#M1515</link>
      <description>&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;I am quite new with the Perl SDK, but I've tried several ways of appending exports with no success&lt;/P&gt;&lt;P&gt;I am using version 5.3.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the method:&lt;/P&gt;&lt;P&gt;nfs_exportfs_append_rules&lt;/P&gt;&lt;P&gt;which requires one parameter named rules and expects an array of 'exports-rule-info'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it fails with error: Field 'exports-rule-info[]' for 'rules' not specified (13001)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone copy an snipet of code how to add an array of exports-rule-info or similar as an input parameter?&lt;/P&gt;&lt;P&gt;This is my code:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;my $rule=new NaElement('exports-rule-info');&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;$rule-&amp;gt;child_add_string('pathname','/vol/test1');&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;my $rules = new NaElement('rules');&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;$rules-&amp;gt;child_add($rule);&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;my &lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/107071"&gt;@RuleS&lt;/a&gt;=();&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;push &lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/107071"&gt;@RuleS&lt;/a&gt;,$rule;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;$out = $s-&amp;gt;nfs_exportfs_append_rules('rules'=&amp;gt;$rules);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have tried passing also the&amp;nbsp;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/107071"&gt;@RuleS&lt;/a&gt; and the \@rules with no success&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance and regards,&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 04:09:59 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/perl-SDK-append-export/m-p/106021#M1515</guid>
      <dc:creator>kfelipe</dc:creator>
      <dc:date>2025-06-05T04:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: perl - SDK - append export</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/perl-SDK-append-export/m-p/106091#M1517</link>
      <description>&lt;P&gt;I haven't had time to actually add hosts/subnets/netgroups to the export...but this at least passes, hopefully it helps&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my $cmd = new NaElement ('nfs-exportfs-append-rules');&lt;BR /&gt;my $rules= new NaElement ('rules');&lt;BR /&gt;my $expRuleInfo = new NaElement('exports-rule-info');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$expRuleInfo-&amp;gt;child_add_string('pathname','/vol/test1');&lt;/P&gt;&lt;P&gt;$cmd-&amp;gt;child_add_string('verbose','1');&lt;BR /&gt;$rules-&amp;gt;child_add($expRuleInfo);&lt;/P&gt;&lt;P&gt;$cmd-&amp;gt;child_add($rules);&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;my $result = $s-&amp;gt;invoke_elem($cmd);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$s is of course the NaServer insance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--rdp&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2015 21:07:20 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/perl-SDK-append-export/m-p/106091#M1517</guid>
      <dc:creator>richard_payne</dc:creator>
      <dc:date>2015-06-10T21:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: perl - SDK - append export</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/perl-SDK-append-export/m-p/106125#M1518</link>
      <description>&lt;P&gt;Yes, it does help. It worked.&lt;/P&gt;&lt;P&gt;Thanks you very much!&lt;/P&gt;&lt;P&gt;Felipe&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jun 2015 11:32:47 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/perl-SDK-append-export/m-p/106125#M1518</guid>
      <dc:creator>kfelipe</dc:creator>
      <dc:date>2015-06-11T11:32:47Z</dc:date>
    </item>
  </channel>
</rss>

