Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 176483

How to remove a DRS rule?

$
0
0

Hi,

 

   I tried to use the following code to remove a DRS rule but it did not work.

 

      my $ruleinfo = ClusterRuleInfo->new(name => "testrule");
      my $rules_spec = ClusterRuleSpec->new(info => $ruleinfo,
                                            operation => ArrayUpdateOperation->new('remove'));
      my @my_rules_spec = ($rules_spec);
      my $spec = ClusterConfigSpecEx->new(rulesSpec => \@my_rules_spec);
      eval {
         $cluster_view->ReconfigureComputeResource_Task(spec => $spec,
                                                        modify => 'false');

 

   Anyone knows what is wrong? Also, there is a "removeKey" property in ClusterRuleSpec, what is it for?

 

   Thanks.

 

- Sean


Viewing all articles
Browse latest Browse all 176483

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>