From 1ebd9e269ee799879b869b11296922895ba609f4 Mon Sep 17 00:00:00 2001 From: tomerassa Date: Mon, 3 Nov 2025 09:20:06 +0200 Subject: [PATCH] Add support for v2.0.1, v2.1 --- import_export_package.py | 2 +- lists_and_dictionaries.py | 118 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 119 insertions(+), 1 deletion(-) diff --git a/import_export_package.py b/import_export_package.py index 713f493..80266c2 100644 --- a/import_export_package.py +++ b/import_export_package.py @@ -26,7 +26,7 @@ def get_version(client): if sys.version_info < (3, 7): raise Exception("Min Python version required is 3.7") - arg_parser = argparse.ArgumentParser(description="R80.X Policy Package Export/Import Tool, V6.2.2") + arg_parser = argparse.ArgumentParser(description="R80.X and above Policy Package Export/Import Tool, V6.3") args = process_arguments(arg_parser) if args.force: args.unsafe_auto_accept = True diff --git a/lists_and_dictionaries.py b/lists_and_dictionaries.py index 08eb923..1f1382e 100644 --- a/lists_and_dictionaries.py +++ b/lists_and_dictionaries.py @@ -820,6 +820,124 @@ "central-license": "central-licenses", "limit": "limits" }, + "2.0.1": { + "access-role": "access-roles", + "threat-profile": "threat-profiles", + "host": "hosts", + "network": "networks", + "address-range": "address_ranges", + "multicast-address-range": "multicast-address-ranges", + "security-zone": "security-zones", + "time": "times", + "simple-gateway": "simple-gateways", + "simple-cluster": "simple-clusters", + "dynamic-object": "dynamic-objects", + "trusted-client": "trusted-clients", + "tags": "tags", + "dns-domain": "dns-domains", + "opsec-application": "opsec-applications", + "data-center": "data-centers", + "data-center-object": "data-center-objects", + "service-tcp": "services-tcp", + "service-udp": "services-udp", + "service-icmp": "services-icmp", + "service-icmp6": "services-icmp6", + "service-sctp": "services-sctp", + "service-rpc": "services-rpc", + "service-other": "services-other", + "service-dce-rpc": "services-dce-rpc", + "application-site": "applications-sites", + "application-site-category": "application-site-categories", + "application-site-group": "application-site-groups", + "vpn-community-meshed": "vpn-communities-meshed", + "vpn-community-star": "vpn-communities-star", + "placeholder": "placeholders", + "administrator": "administrators", + "group": "groups", + "group-with-exclusion": "groups-with-exclusion", + "service-group": "service-groups", + "time-group": "time-groups", + "application-group": "application-groups", + "threat-protection": "threat-protections", + "exception-group": "exception-groups", + "generic-object": "", + "access-layer": "access-layers", + "access-section": "access-sections", + "access-rule": "access-rules", + "nat-layer": "nat-layers", + "nat-section": "nat-sections", + "nat-rule": "nat-rules", + "threat-layer": "threat-layers", + "threat-rule": "threat-rules", + "threat-exception-section": "threat-exception-sections", + "threat-exception": "threat-exceptions", + "wildcard": "wildcards", + "updatable-object": "updatable-objects", + "https-layer": "https-layers", + "https-section": "https-sections", + "https-rule": "https-rules", + "central-license": "central-licenses", + "limit": "limits" + }, + "2.1" : { + "access-role": "access-roles", + "threat-profile": "threat-profiles", + "host": "hosts", + "network": "networks", + "address-range": "address_ranges", + "multicast-address-range": "multicast-address-ranges", + "security-zone": "security-zones", + "time": "times", + "simple-gateway": "simple-gateways", + "simple-cluster": "simple-clusters", + "dynamic-object": "dynamic-objects", + "trusted-client": "trusted-clients", + "tags": "tags", + "dns-domain": "dns-domains", + "opsec-application": "opsec-applications", + "data-center": "data-centers", + "data-center-object": "data-center-objects", + "service-tcp": "services-tcp", + "service-udp": "services-udp", + "service-icmp": "services-icmp", + "service-icmp6": "services-icmp6", + "service-sctp": "services-sctp", + "service-rpc": "services-rpc", + "service-other": "services-other", + "service-dce-rpc": "services-dce-rpc", + "application-site": "applications-sites", + "application-site-category": "application-site-categories", + "application-site-group": "application-site-groups", + "vpn-community-meshed": "vpn-communities-meshed", + "vpn-community-star": "vpn-communities-star", + "placeholder": "placeholders", + "administrator": "administrators", + "group": "groups", + "group-with-exclusion": "groups-with-exclusion", + "service-group": "service-groups", + "time-group": "time-groups", + "application-group": "application-groups", + "threat-protection": "threat-protections", + "exception-group": "exception-groups", + "generic-object": "", + "access-layer": "access-layers", + "access-section": "access-sections", + "access-rule": "access-rules", + "nat-layer": "nat-layers", + "nat-section": "nat-sections", + "nat-rule": "nat-rules", + "threat-layer": "threat-layers", + "threat-rule": "threat-rules", + "threat-exception-section": "threat-exception-sections", + "threat-exception": "threat-exceptions", + "wildcard": "wildcards", + "updatable-object": "updatable-objects", + "https-layer": "https-layers", + "https-section": "https-sections", + "https-rule": "https-rules", + "central-license": "central-licenses", + "limit": "limits" + } } unexportable_objects_map = {}