pan-os-python 1.12.2__tar.gz → 1.12.3__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.3
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.3"
30
30
 
31
31
 
32
32
  import logging
@@ -4900,7 +4900,7 @@ class PanDevice(PanObject):
4900
4900
  except AttributeError:
4901
4901
  if exception:
4902
4902
  raise err.PanCommitNotNeeded("Commit not needed", pan_device=self)
4903
- else:
4903
+ elif commit_response.find("./msg/line") is not None:
4904
4904
  # By getting here, there was no "./result/job" in the commit response,
4905
4905
  # and there was no exception raised either, so capture the response message
4906
4906
  commit_response_msg = commit_response.find("./msg/line").text
@@ -4921,6 +4921,7 @@ class PanDevice(PanObject):
4921
4921
  "messages": [commit_response_msg],
4922
4922
  }
4923
4923
  return log_collector_group_push_result
4924
+ else:
4924
4925
  return
4925
4926
  if not sync:
4926
4927
  # Don't synchronize, just return
@@ -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.3"
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