Skip to content

Commit 5e53c85

Browse files
Merge pull request #115 from chkp-tomerassa/master
Add support for v2.0.1, v2.1
2 parents d244836 + 1ebd9e2 commit 5e53c85

File tree

2 files changed

+119
-1
lines changed

2 files changed

+119
-1
lines changed

import_export_package.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def get_version(client):
2626
if sys.version_info < (3, 7):
2727
raise Exception("Min Python version required is 3.7")
2828

29-
arg_parser = argparse.ArgumentParser(description="R80.X Policy Package Export/Import Tool, V6.2.2")
29+
arg_parser = argparse.ArgumentParser(description="R80.X and above Policy Package Export/Import Tool, V6.3")
3030
args = process_arguments(arg_parser)
3131
if args.force:
3232
args.unsafe_auto_accept = True

lists_and_dictionaries.py

Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -820,6 +820,124 @@
820820
"central-license": "central-licenses",
821821
"limit": "limits"
822822
},
823+
"2.0.1": {
824+
"access-role": "access-roles",
825+
"threat-profile": "threat-profiles",
826+
"host": "hosts",
827+
"network": "networks",
828+
"address-range": "address_ranges",
829+
"multicast-address-range": "multicast-address-ranges",
830+
"security-zone": "security-zones",
831+
"time": "times",
832+
"simple-gateway": "simple-gateways",
833+
"simple-cluster": "simple-clusters",
834+
"dynamic-object": "dynamic-objects",
835+
"trusted-client": "trusted-clients",
836+
"tags": "tags",
837+
"dns-domain": "dns-domains",
838+
"opsec-application": "opsec-applications",
839+
"data-center": "data-centers",
840+
"data-center-object": "data-center-objects",
841+
"service-tcp": "services-tcp",
842+
"service-udp": "services-udp",
843+
"service-icmp": "services-icmp",
844+
"service-icmp6": "services-icmp6",
845+
"service-sctp": "services-sctp",
846+
"service-rpc": "services-rpc",
847+
"service-other": "services-other",
848+
"service-dce-rpc": "services-dce-rpc",
849+
"application-site": "applications-sites",
850+
"application-site-category": "application-site-categories",
851+
"application-site-group": "application-site-groups",
852+
"vpn-community-meshed": "vpn-communities-meshed",
853+
"vpn-community-star": "vpn-communities-star",
854+
"placeholder": "placeholders",
855+
"administrator": "administrators",
856+
"group": "groups",
857+
"group-with-exclusion": "groups-with-exclusion",
858+
"service-group": "service-groups",
859+
"time-group": "time-groups",
860+
"application-group": "application-groups",
861+
"threat-protection": "threat-protections",
862+
"exception-group": "exception-groups",
863+
"generic-object": "",
864+
"access-layer": "access-layers",
865+
"access-section": "access-sections",
866+
"access-rule": "access-rules",
867+
"nat-layer": "nat-layers",
868+
"nat-section": "nat-sections",
869+
"nat-rule": "nat-rules",
870+
"threat-layer": "threat-layers",
871+
"threat-rule": "threat-rules",
872+
"threat-exception-section": "threat-exception-sections",
873+
"threat-exception": "threat-exceptions",
874+
"wildcard": "wildcards",
875+
"updatable-object": "updatable-objects",
876+
"https-layer": "https-layers",
877+
"https-section": "https-sections",
878+
"https-rule": "https-rules",
879+
"central-license": "central-licenses",
880+
"limit": "limits"
881+
},
882+
"2.1" : {
883+
"access-role": "access-roles",
884+
"threat-profile": "threat-profiles",
885+
"host": "hosts",
886+
"network": "networks",
887+
"address-range": "address_ranges",
888+
"multicast-address-range": "multicast-address-ranges",
889+
"security-zone": "security-zones",
890+
"time": "times",
891+
"simple-gateway": "simple-gateways",
892+
"simple-cluster": "simple-clusters",
893+
"dynamic-object": "dynamic-objects",
894+
"trusted-client": "trusted-clients",
895+
"tags": "tags",
896+
"dns-domain": "dns-domains",
897+
"opsec-application": "opsec-applications",
898+
"data-center": "data-centers",
899+
"data-center-object": "data-center-objects",
900+
"service-tcp": "services-tcp",
901+
"service-udp": "services-udp",
902+
"service-icmp": "services-icmp",
903+
"service-icmp6": "services-icmp6",
904+
"service-sctp": "services-sctp",
905+
"service-rpc": "services-rpc",
906+
"service-other": "services-other",
907+
"service-dce-rpc": "services-dce-rpc",
908+
"application-site": "applications-sites",
909+
"application-site-category": "application-site-categories",
910+
"application-site-group": "application-site-groups",
911+
"vpn-community-meshed": "vpn-communities-meshed",
912+
"vpn-community-star": "vpn-communities-star",
913+
"placeholder": "placeholders",
914+
"administrator": "administrators",
915+
"group": "groups",
916+
"group-with-exclusion": "groups-with-exclusion",
917+
"service-group": "service-groups",
918+
"time-group": "time-groups",
919+
"application-group": "application-groups",
920+
"threat-protection": "threat-protections",
921+
"exception-group": "exception-groups",
922+
"generic-object": "",
923+
"access-layer": "access-layers",
924+
"access-section": "access-sections",
925+
"access-rule": "access-rules",
926+
"nat-layer": "nat-layers",
927+
"nat-section": "nat-sections",
928+
"nat-rule": "nat-rules",
929+
"threat-layer": "threat-layers",
930+
"threat-rule": "threat-rules",
931+
"threat-exception-section": "threat-exception-sections",
932+
"threat-exception": "threat-exceptions",
933+
"wildcard": "wildcards",
934+
"updatable-object": "updatable-objects",
935+
"https-layer": "https-layers",
936+
"https-section": "https-sections",
937+
"https-rule": "https-rules",
938+
"central-license": "central-licenses",
939+
"limit": "limits"
940+
}
823941
}
824942

825943
unexportable_objects_map = {}

0 commit comments

Comments
 (0)