<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Python tool erron on R80.10 at NAT in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-erron-on-R80-10-at-NAT/m-p/83465#M4791</link>
    <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having an error at the NAT point when exporting my policy with Python tool:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Exporting NAT policy&lt;/P&gt;&lt;P&gt;Getting information from show-nat-rulebase&lt;/P&gt;&lt;P&gt;Retrieved 50 out of 108 rules (46%)&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;File "ExportImportPolicyPackage-master/ExportImportPolicyPackage-master/import_export_package.py", line 59, in &amp;lt;module&amp;gt;&lt;BR /&gt;export_package(client, args)&lt;BR /&gt;File "/opt/CPsuite-R80/fw1/Python/bin/ExportImportPolicyPackage-master/ExportImportPolicyPackage-master/exporting/export_package.py", line 59, in export_package&lt;BR /&gt;nat_data_dict, nat_unexportable_objects = export_nat_rulebase(show_package.data["name"], client)&lt;BR /&gt;File "/opt/CPsuite-R80/fw1/Python/bin/ExportImportPolicyPackage-master/ExportImportPolicyPackage-master/exporting/export_nat_rulebase.py", line 13, in export_nat_rulebase&lt;BR /&gt;rulebase_rules, general_objects = get_query_nat_rulebase_data(client, {"package": package})&lt;BR /&gt;File "/opt/CPsuite-R80/fw1/Python/bin/ExportImportPolicyPackage-master/ExportImportPolicyPackage-master/exporting/export_objects.py", line 174, in get_query_nat_rulebase_data&lt;BR /&gt;if "Automatic Generated Rules : " in rulebase_item["name"]:&lt;BR /&gt;KeyError: 'name'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Someone had this error or know what could be the issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Tue, 28 Apr 2020 10:28:35 GMT</pubDate>
    <dc:creator>DeltaG</dc:creator>
    <dc:date>2020-04-28T10:28:35Z</dc:date>
    <item>
      <title>Python tool erron on R80.10 at NAT</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-erron-on-R80-10-at-NAT/m-p/83465#M4791</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having an error at the NAT point when exporting my policy with Python tool:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Exporting NAT policy&lt;/P&gt;&lt;P&gt;Getting information from show-nat-rulebase&lt;/P&gt;&lt;P&gt;Retrieved 50 out of 108 rules (46%)&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;File "ExportImportPolicyPackage-master/ExportImportPolicyPackage-master/import_export_package.py", line 59, in &amp;lt;module&amp;gt;&lt;BR /&gt;export_package(client, args)&lt;BR /&gt;File "/opt/CPsuite-R80/fw1/Python/bin/ExportImportPolicyPackage-master/ExportImportPolicyPackage-master/exporting/export_package.py", line 59, in export_package&lt;BR /&gt;nat_data_dict, nat_unexportable_objects = export_nat_rulebase(show_package.data["name"], client)&lt;BR /&gt;File "/opt/CPsuite-R80/fw1/Python/bin/ExportImportPolicyPackage-master/ExportImportPolicyPackage-master/exporting/export_nat_rulebase.py", line 13, in export_nat_rulebase&lt;BR /&gt;rulebase_rules, general_objects = get_query_nat_rulebase_data(client, {"package": package})&lt;BR /&gt;File "/opt/CPsuite-R80/fw1/Python/bin/ExportImportPolicyPackage-master/ExportImportPolicyPackage-master/exporting/export_objects.py", line 174, in get_query_nat_rulebase_data&lt;BR /&gt;if "Automatic Generated Rules : " in rulebase_item["name"]:&lt;BR /&gt;KeyError: 'name'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Someone had this error or know what could be the issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 10:28:35 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-erron-on-R80-10-at-NAT/m-p/83465#M4791</guid>
      <dc:creator>DeltaG</dc:creator>
      <dc:date>2020-04-28T10:28:35Z</dc:date>
    </item>
  </channel>
</rss>

