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

Python tool erron on R80.10 at NAT

Hello all,


I am having an error at the NAT point when exporting my policy with Python tool:


Exporting NAT policy

Getting information from show-nat-rulebase

Retrieved 50 out of 108 rules (46%)

Traceback (most recent call last):
File "ExportImportPolicyPackage-master/ExportImportPolicyPackage-master/", line 59, in <module>
export_package(client, args)
File "/opt/CPsuite-R80/fw1/Python/bin/ExportImportPolicyPackage-master/ExportImportPolicyPackage-master/exporting/", line 59, in export_package
nat_data_dict, nat_unexportable_objects = export_nat_rulebase(["name"], client)
File "/opt/CPsuite-R80/fw1/Python/bin/ExportImportPolicyPackage-master/ExportImportPolicyPackage-master/exporting/", line 13, in export_nat_rulebase
rulebase_rules, general_objects = get_query_nat_rulebase_data(client, {"package": package})
File "/opt/CPsuite-R80/fw1/Python/bin/ExportImportPolicyPackage-master/ExportImportPolicyPackage-master/exporting/", line 174, in get_query_nat_rulebase_data
if "Automatic Generated Rules : " in rulebase_item["name"]:
KeyError: 'name'


Someone had this error or know what could be the issue?



0 Kudos
0 Replies