pan-os-python 1.12.3__tar.gz → 1.12.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pan_os_python-1.12.3 → pan_os_python-1.12.5}/PKG-INFO +1 -1
- {pan_os_python-1.12.3 → pan_os_python-1.12.5}/panos/__init__.py +1 -1
- {pan_os_python-1.12.3 → pan_os_python-1.12.5}/panos/base.py +1 -0
- {pan_os_python-1.12.3 → pan_os_python-1.12.5}/panos/device.py +5 -0
- {pan_os_python-1.12.3 → pan_os_python-1.12.5}/panos/firewall.py +3 -6
- {pan_os_python-1.12.3 → pan_os_python-1.12.5}/panos/panorama.py +3 -6
- {pan_os_python-1.12.3 → pan_os_python-1.12.5}/pyproject.toml +1 -1
- {pan_os_python-1.12.3 → pan_os_python-1.12.5}/LICENSE +0 -0
- {pan_os_python-1.12.3 → pan_os_python-1.12.5}/README.md +0 -0
- {pan_os_python-1.12.3 → pan_os_python-1.12.5}/panos/errors.py +0 -0
- {pan_os_python-1.12.3 → pan_os_python-1.12.5}/panos/ha.py +0 -0
- {pan_os_python-1.12.3 → pan_os_python-1.12.5}/panos/network.py +0 -0
- {pan_os_python-1.12.3 → pan_os_python-1.12.5}/panos/objects.py +0 -0
- {pan_os_python-1.12.3 → pan_os_python-1.12.5}/panos/plugins.py +0 -0
- {pan_os_python-1.12.3 → pan_os_python-1.12.5}/panos/policies.py +0 -0
- {pan_os_python-1.12.3 → pan_os_python-1.12.5}/panos/predefined.py +0 -0
- {pan_os_python-1.12.3 → pan_os_python-1.12.5}/panos/updater.py +0 -0
- {pan_os_python-1.12.3 → pan_os_python-1.12.5}/panos/userid.py +0 -0
|
@@ -3479,6 +3479,7 @@ class VsysOperations(VersionedPanObject):
|
|
|
3479
3479
|
"vlan": "vlans",
|
|
3480
3480
|
"virtual-wire": "virtual_wires",
|
|
3481
3481
|
"virtual-router": "virtual_routers",
|
|
3482
|
+
"logical-router": "logical_routers",
|
|
3482
3483
|
"interface": "interface",
|
|
3483
3484
|
}
|
|
3484
3485
|
for key, param_name in import_to_vsys_param.items():
|
|
@@ -99,6 +99,7 @@ class Vsys(VersionedPanObject):
|
|
|
99
99
|
vlans (list): A list of strings of VLANs
|
|
100
100
|
virtual_wires (list): A list of strings of virtual wires
|
|
101
101
|
virtual_routers (list): A list of strings of virtual routers
|
|
102
|
+
logical_routers (list): (10.2+) A list of strings of logical routers
|
|
102
103
|
visible_vsys (list): A list of strings of the vsys visible
|
|
103
104
|
dns_proxy (str): DNS Proxy server
|
|
104
105
|
decrypt_forwarding (bool): Allow forwarding of decrypted content
|
|
@@ -188,6 +189,10 @@ class Vsys(VersionedPanObject):
|
|
|
188
189
|
path="import/network/virtual-router",
|
|
189
190
|
)
|
|
190
191
|
)
|
|
192
|
+
params.append(VersionedParamPath("logical_routers", exclude=True))
|
|
193
|
+
params[-1].add_profile(
|
|
194
|
+
"10.2.0", path="import/network/logical-router", vartype="member"
|
|
195
|
+
)
|
|
191
196
|
params.append(
|
|
192
197
|
VersionedParamPath(
|
|
193
198
|
"visible_vsys", vartype="member", path="import/visible-vsys"
|
|
@@ -591,7 +591,6 @@ class FirewallCommit(object):
|
|
|
591
591
|
self.exclude_device_and_network,
|
|
592
592
|
self.exclude_shared_objects,
|
|
593
593
|
self.exclude_policy_and_objects,
|
|
594
|
-
self.force,
|
|
595
594
|
]
|
|
596
595
|
|
|
597
596
|
return any(x for x in pp_list)
|
|
@@ -622,11 +621,9 @@ class FirewallCommit(object):
|
|
|
622
621
|
ET.SubElement(partial, "shared-object").text = "excluded"
|
|
623
622
|
if self.exclude_policy_and_objects:
|
|
624
623
|
ET.SubElement(partial, "policy-and-objects").text = "excluded"
|
|
624
|
+
fe.append(partial)
|
|
625
625
|
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
fe.append(partial)
|
|
629
|
-
else:
|
|
630
|
-
root.append(partial)
|
|
626
|
+
if self.force:
|
|
627
|
+
fe = ET.SubElement(root, "force")
|
|
631
628
|
|
|
632
629
|
return root
|
|
@@ -990,7 +990,6 @@ class PanoramaCommit(object):
|
|
|
990
990
|
self.log_collector_groups,
|
|
991
991
|
self.exclude_device_and_network,
|
|
992
992
|
self.exclude_shared_objects,
|
|
993
|
-
self.force,
|
|
994
993
|
]
|
|
995
994
|
|
|
996
995
|
return any(x for x in pp_list)
|
|
@@ -1031,12 +1030,10 @@ class PanoramaCommit(object):
|
|
|
1031
1030
|
ET.SubElement(partial, "device-and-network").text = "excluded"
|
|
1032
1031
|
if self.exclude_shared_objects:
|
|
1033
1032
|
ET.SubElement(partial, "shared-object").text = "excluded"
|
|
1033
|
+
root.append(partial)
|
|
1034
1034
|
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
fe.append(partial)
|
|
1038
|
-
else:
|
|
1039
|
-
root.append(partial)
|
|
1035
|
+
if self.force:
|
|
1036
|
+
fe = ET.SubElement(root, "force")
|
|
1040
1037
|
|
|
1041
1038
|
return root
|
|
1042
1039
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|