Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Add new community argument for bgp_policy_rule #543

Draft
wants to merge 4 commits into
base: develop
Choose a base branch
from
Draft
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: 3 additions & 0 deletions extensions/eda/plugins/event_source/logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
port: 5000
type: decryption


"""

# Copyright 2023 Palo Alto Networks, Inc
Expand Down Expand Up @@ -59,6 +60,7 @@ async def status() -> web.Response:
Returns
-------
A web.Response object with status 200 and the text "up" returned by the function.

"""
return web.Response(status=200, text="up")

Expand All @@ -78,6 +80,7 @@ async def webhook(request: web.Request) -> web.Response:
Returns
-------
A web.Response object with status 200 and the status.

"""
try:
payload = await request.json()
Expand Down
6 changes: 6 additions & 0 deletions plugins/modules/panos_bgp_policy_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,10 @@
- remove-regex
- append
- overwrite
action_community_modifier:
description:
- Modifier for the community action. Required if 'action_community_type' is set to 'append' or 'overwrite'.
type: str
action_community_argument:
description:
- Argument to the action community value if needed.
Expand Down Expand Up @@ -298,6 +302,7 @@ def setup_args():
type="str",
choices=["none", "remove-all", "remove-regex", "append", "overwrite"],
),
action_community_modifier=dict(type="str"),
action_community_argument=dict(type="str"),
action_extended_community_type=dict(type="str"),
action_extended_community_argument=dict(type="str"),
Expand Down Expand Up @@ -359,6 +364,7 @@ def main():
"action_as_path_type": module.params["action_as_path_type"],
"action_as_path_prepend_times": module.params["action_as_path_prepend_times"],
"action_community_type": module.params["action_community_type"],
"action_community_modifier": module.params["action_community_modifier "],
"action_community_argument": module.params["action_community_argument"],
"action_extended_community_type": module.params[
"action_extended_community_type"
Expand Down
Loading