Skip to content
Snippets Groups Projects
Commit 57bfda9d authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Tools - Load Scenario:

- updated according to new common load scenario tools
parent d7961f75
No related branches found
No related tags found
2 merge requests!142Release TeraFlowSDN 2.1,!62Add relese/2.0.1 fixes
......@@ -13,7 +13,7 @@
# limitations under the License.
import logging, sys
from common.tests.LoadScenario import load_scenario_from_descriptor
from common.tools.descriptor.Loader import DescriptorLoader, check_descriptor_load_results
from context.client.ContextClient import ContextClient
from device.client.DeviceClient import DeviceClient
from service.client.ServiceClient import ServiceClient
......@@ -29,7 +29,12 @@ def main():
slice_client = SliceClient()
LOGGER.info('Loading scenario...')
load_scenario_from_descriptor(sys.argv[1], context_client, device_client, service_client, slice_client)
descriptor_loader = DescriptorLoader(
descriptors_file=sys.argv[1], context_client=context_client, device_client=device_client,
service_client=service_client, slice_client=slice_client)
results = descriptor_loader.process()
check_descriptor_load_results(results, descriptor_loader)
descriptor_loader.validate()
LOGGER.info('Done!')
return 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment