cancel
Showing results for 
Search instead for 
Did you mean: 
Create a Post
Highlighted

Python library for using R80 management server APIsExportImportPolicyPackage

Hi All,

Can someone please help me? I am trying to merge two separate R80.10 SMC into a single R80.10 using  ExportImportPolicyPackage-master, while using script i am getting below errors, 

File "import_export_package.py", line 5, in <module>
from cp_mgmt_api_python_sdk.lib import APIClientArgs
ImportError: cannot import name 'APIClientArgs'

I tried to fix but no luck, would really appreciate if someone can help

4 Replies

Re: Python library for using R80 management server APIsExportImportPolicyPackage

Make sure that cp_mgmt_api_python_sdk is in same folder as your script, otherwise it will fail to load those modules.

Re: Python library for using R80 management server APIsExportImportPolicyPackage

Thank you Martin, Its working for me now. one doubt about something VPN and NAT as completely not merged even it did not copied any gateways as well, finally i had manual work to complete these items, so is it a normal behavior with this script ?

0 Kudos
Admin
Admin

Re: Python library for using R80 management server APIsExportImportPolicyPackage

I'm assuming you're referring to this script: Python tool for exporting/importing a policy package or parts of it

The script does have some limitations, namely because the API does not expose everything you need to export and import.

Read the discussion attached to the script for details.

This means some items will have to be done manually.

0 Kudos

Re: Python library for using R80 management server APIsExportImportPolicyPackage

@Dameon Welch-Abernathy  thank you so much for your response.