Hi folks,
I am quite new with the Perl SDK, but I've tried several ways of appending exports with no success
I am using version 5.3.1
 
This is the method:
nfs_exportfs_append_rules
which requires one parameter named rules and expects an array of 'exports-rule-info'
 
it fails with error: Field 'exports-rule-info[]' for 'rules' not specified (13001)
 
Can anyone copy an snipet of code how to add an array of exports-rule-info or similar as an input parameter?
This is my code:
   my $rule=new NaElement('exports-rule-info');
   $rule->child_add_string('pathname','/vol/test1');
   my $rules = new NaElement('rules');
   $rules->child_add($rule);
   my @RuleS=();
   push @RuleS,$rule;
   $out = $s->nfs_exportfs_append_rules('rules'=>$rules);
I have tried passing also the @RuleS and the \@rules with no success
 
Thanks in advance and regards,