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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pan-os-python
3
- Version: 1.12.3
3
+ Version: 1.12.5
4
4
  Summary: Framework for interacting with Palo Alto Networks devices via API
5
5
  Home-page: https://github.com/PaloAltoNetworks/pan-os-python
6
6
  License: ISC
@@ -26,7 +26,7 @@ Documentation available at https://pan-os-python.readthedocs.io
26
26
 
27
27
  __author__ = "Palo Alto Networks"
28
28
  __email__ = "devrel@paloaltonetworks.com"
29
- __version__ = "1.12.3"
29
+ __version__ = "1.12.5"
30
30
 
31
31
 
32
32
  import logging
@@ -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
- if self.force:
627
- fe = ET.SubElement(root, "force")
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
- if self.force:
1036
- fe = ET.SubElement(root, "force")
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
 
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "pan-os-python"
3
- version = "1.12.3"
3
+ version = "1.12.5"
4
4
  description = "Framework for interacting with Palo Alto Networks devices via API"
5
5
  authors = ["Palo Alto Networks <devrel@paloaltonetworks.com>"]
6
6
  license = "ISC"
File without changes
File without changes