pan-os-python 1.12.2__tar.gz → 1.12.4__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.2
3
+ Version: 1.12.4
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.2"
29
+ __version__ = "1.12.4"
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():
@@ -4900,7 +4901,7 @@ class PanDevice(PanObject):
4900
4901
  except AttributeError:
4901
4902
  if exception:
4902
4903
  raise err.PanCommitNotNeeded("Commit not needed", pan_device=self)
4903
- else:
4904
+ elif commit_response.find("./msg/line") is not None:
4904
4905
  # By getting here, there was no "./result/job" in the commit response,
4905
4906
  # and there was no exception raised either, so capture the response message
4906
4907
  commit_response_msg = commit_response.find("./msg/line").text
@@ -4921,6 +4922,7 @@ class PanDevice(PanObject):
4921
4922
  "messages": [commit_response_msg],
4922
4923
  }
4923
4924
  return log_collector_group_push_result
4925
+ else:
4924
4926
  return
4925
4927
  if not sync:
4926
4928
  # Don't synchronize, just return
@@ -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"
@@ -3017,10 +3017,9 @@ class BgpPeerGroup(VersionedPanObject):
3017
3017
  aggregated_confed_as_path (bool): the peers understand aggregated confederation AS path
3018
3018
  soft_reset_with_stored_info (bool): soft reset with stored info
3019
3019
  type (str): peer group type I('ebgp')/I('ibgp')/I('ebgp-confed')/I('ibgp-confed')
3020
- export_nexthop (str): export locally resolved nexthop I('resolve')/I('use-self')
3021
- import_nexthop (str): override nexthop with peer address I('original')/I('use-peer'), only with 'ebgp'
3022
3020
  remove_private_as (bool): remove private AS when exporting route, only with 'ebgp'
3023
-
3021
+ import_nexthop (str): override nexthop with peer address I('original')/I('use-peer'), only with 'ebgp'
3022
+ export_nexthop (str): export locally resolved nexthop I('resolve')/I('use-self')
3024
3023
  """
3025
3024
 
3026
3025
  SUFFIX = ENTRY
@@ -3046,9 +3045,10 @@ class BgpPeerGroup(VersionedPanObject):
3046
3045
  )
3047
3046
  params.append(
3048
3047
  VersionedParamPath(
3049
- "export_nexthop",
3050
- path="type/{type}/export-nexthop",
3051
- values=("resolve", "use-self"),
3048
+ "remove_private_as",
3049
+ condition={"type": "ebgp"},
3050
+ path="type/{type}/remove-private-as",
3051
+ vartype="yesno",
3052
3052
  )
3053
3053
  )
3054
3054
  params.append(
@@ -3061,10 +3061,9 @@ class BgpPeerGroup(VersionedPanObject):
3061
3061
  )
3062
3062
  params.append(
3063
3063
  VersionedParamPath(
3064
- "remove_private_as",
3065
- condition={"type": "ebgp"},
3066
- path="type/{type}/remove-private-as",
3067
- vartype="yesno",
3064
+ "export_nexthop",
3065
+ path="type/{type}/export-nexthop",
3066
+ values=("resolve", "use-self"),
3068
3067
  )
3069
3068
  )
3070
3069
 
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "pan-os-python"
3
- version = "1.12.2"
3
+ version = "1.12.4"
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