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

Re: Python tool for exporting/importing a policy package or parts of it

Hello Inbar.

I am using python 2.7.13 for windows and R80 without jumbotake.

When I trie to use your scripts... I get somethink like:

C:\Users\administrador\Desktop\import_export_package>export_package.py -m 192.168.80.254 Standard

Trying to get login credentials...

Got the following login credentials:

    Username: admin

    Password: **********

    Session ID: None

Traceback (most recent call last):

  File "C:\Users\administrador\Desktop\import_export_package\export_package.py", line 30, in <module>

    _, _, user_created, client, args = process_args_and_login(client=client, parser=parser, showparameter="package")

  File "C:\Users\administrador\Desktop\import_export_package\import_export_objects\get_objects.py", line 66, in process_args_and_login

    login(client, management, domain, username, password, session_id)

  File "C:\Users\administrador\Desktop\import_export_package\import_export_objects\get_objects.py", line 698, in login

    login_res = client.login(management, username, password, domain=domain)

  File "C:\Users\administrador\Desktop\import_export_package\mgmt_api_lib\cp_mgmt_api.py", line 140, in login

    self.api_version = login_res.data["api-server-version"]

KeyError: 'api-server-version'

Which can be te problem?

Thanks in advance.

0 Replies