- if 'sfa' in version:
- # just send the whole rspec to SFA AM/SM
- server.CreateSliver(xrn, credential, rspec, users, call_id)
- elif 'geni_api' in version:
- pass
- # convert to pg rspec
+ if 'sfa' not in version and 'geni_api' in version:
+ # sfa aggregtes support both sfa and pg rspecs, no need to convert
+ # if aggregate supports sfa rspecs. othewise convert to pg rspec
+ rspec = RSpecConverter.to_pg_rspec(rspec)
+
+ return server.CreateSliver(xrn, credential, rspec, users, call_id)