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

Export and Import Policy Package to New Management Server

Im trying to export our policy packages that are currently in the prod and place it in a lab environment. Im following the instruction here Python tool for exporting/importing a policy package . 

However when exporting i see an error below

Traceback (most recent call last):
  File "import_export_package.py", line 61, in <module>
    export_package(client, args)
  File "/home/zxc/ImportExport/exporting/export_package.py", line 55, in export_package
    timestamp, ["access-rule", "access-section"], client.api_version)
  File "/home/zxc/ImportExport/utils.py", line 230, in create_tar_file
    export_to_tar(data_dict, timestamp, tar, lst, api_version)
  File "/home/zxc/ImportExport/utils.py", line 247, in export_to_tar
    write_data(data_dict[api_type], tar_file_csv, ".csv")
  File "/home/zxc/ImportExport/utils.py", line 279, in write_data
    writer.writerows(res)

 

I tried the same with steps with my lab and was able to export and import the packages that were in the lab management. 

0 Kudos
0 Replies

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events