While trying to import a policy package using the Import/Export python script, it gets as far as adding the access sections and then the script just dies.
Imported 275 out of 275 access-rules (100%)
Adding access-sections
Imported 20 out of 55 access-sections (36%)
Imported 40 out of 55 access-sections (72%)
Traceback (most recent call last):
File "import_export_package.py", line 71, in <module>
import_package(client, args)
File "/root/ExportImportPolicyPackage/importing/import_package.py", line 56, in import_package
layers_to_attach = import_objects(args.file, client, {}, package, None, args)
File "/root/ExportImportPolicyPackage/importing/import_objects.py", line 208, in import_objects
import_objects(rulebase_object_file.name, client, changed_layer_names, package, layer_name, args)
File "/root/ExportImportPolicyPackage/importing/import_objects.py", line 196, in import_objects
counter, position_decrement_due_to_rules = add_object(line, counter, position_decrement_due_to_rules,
File "/root/ExportImportPolicyPackage/importing/import_objects.py", line 617, in add_object
return add_object(line, counter, position_decrement_due_to_rule, position_decrement_due_to_section, fields,
File "/root/ExportImportPolicyPackage/importing/import_objects.py", line 617, in add_object
return add_object(line, counter, position_decrement_due_to_rule, position_decrement_due_to_section, fields,
File "/root/ExportImportPolicyPackage/importing/import_objects.py", line 617, in add_object
return add_object(line, counter, position_decrement_due_to_rule, position_decrement_due_to_section, fields,
[Previous line repeated 976 more times]
File "/root/ExportImportPolicyPackage/importing/import_objects.py", line 511, in add_object
if not api_reply.success and "name" in payload and "More than one object" in reply_err_msg:
TypeError: argument of type 'RecursionError' is not iterable
I'm also seeing a lot of the following errors:
Failed to import access-rule with name [SSH/SFTP/RDP Tectrade - TSM]. Error: code: generic_err_object_not_found
message: Requested object [import_error_due_to_missing_fields_import_error_due_to_missing_fields_import_error_due_to_missing_fields_import_error_due_to_missing_fields_MS-TeamServices] not found
Also failed to generate placeholder object: code: err_validation_failed
message: Validation failed with 1 warning and 1 blocking-error
warnings:
- message: The port is already used by another service.
blocking-errors:
- message: Object name can not exceed 100 characters
Any ideas on how to overcome this?