Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion panos/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -4900,7 +4900,7 @@ def _commit(
except AttributeError:
if exception:
raise err.PanCommitNotNeeded("Commit not needed", pan_device=self)
else:
elif commit_response.find("./msg/line") is not None:
# By getting here, there was no "./result/job" in the commit response,
# and there was no exception raised either, so capture the response message
commit_response_msg = commit_response.find("./msg/line").text
Expand All @@ -4921,6 +4921,7 @@ def _commit(
"messages": [commit_response_msg],
}
return log_collector_group_push_result
else:
return
if not sync:
# Don't synchronize, just return
Expand Down
19 changes: 9 additions & 10 deletions panos/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -3017,10 +3017,9 @@ class BgpPeerGroup(VersionedPanObject):
aggregated_confed_as_path (bool): the peers understand aggregated confederation AS path
soft_reset_with_stored_info (bool): soft reset with stored info
type (str): peer group type I('ebgp')/I('ibgp')/I('ebgp-confed')/I('ibgp-confed')
export_nexthop (str): export locally resolved nexthop I('resolve')/I('use-self')
import_nexthop (str): override nexthop with peer address I('original')/I('use-peer'), only with 'ebgp'
remove_private_as (bool): remove private AS when exporting route, only with 'ebgp'

import_nexthop (str): override nexthop with peer address I('original')/I('use-peer'), only with 'ebgp'
export_nexthop (str): export locally resolved nexthop I('resolve')/I('use-self')
"""

SUFFIX = ENTRY
Expand All @@ -3046,9 +3045,10 @@ def _setup(self):
)
params.append(
VersionedParamPath(
"export_nexthop",
path="type/{type}/export-nexthop",
values=("resolve", "use-self"),
"remove_private_as",
condition={"type": "ebgp"},
path="type/{type}/remove-private-as",
vartype="yesno",
)
)
params.append(
Expand All @@ -3061,10 +3061,9 @@ def _setup(self):
)
params.append(
VersionedParamPath(
"remove_private_as",
condition={"type": "ebgp"},
path="type/{type}/remove-private-as",
vartype="yesno",
"export_nexthop",
path="type/{type}/export-nexthop",
values=("resolve", "use-self"),
)
)

Expand Down
Loading