+ def _sfa_allocate(self, file, options):
+ command = self.sfi_user("allocate {} {}".format(self.hrn(), file))
+ return self.test_plc.run_in_guest(command) == 0
+
+ def sfa_allocate(self, options):
+ "invoke run sfi allocate (on SM)"
+ return self._sfa_allocate(self.reqfile(), options)
+ def sfa_allocate_empty(self, options):
+ "invoke run sfi allocate (on SM) with an empty rspec"
+ return self._sfa_allocate(self.empty_reqfile(), options)
+
+ def sfa_provision(self, options):
+ "invoke run sfi provision (on SM)"
+ command = self.sfi_user("provision {}".format(self.hrn()))
+ return self.test_plc.run_in_guest(command) == 0
+ # just a synonym
+ sfa_provision_empty = sfa_provision
+