Update modules/parse.py

This commit is contained in:
Blackwhitebear8 2025-09-17 20:29:28 +02:00
parent 9e65fbf94e
commit ea2d94c987

View file

@ -109,3 +109,10 @@ def run_ipv4_route_summary_curl_command():
def run_ipv6_route_summary_curl_command():
path = get_route_summary_path("ipv6")
return _run_curl("/show", {"op": "show", "path": path})
def run_firewall_log_curl_command(ip_version, ruleset_name, rule_number):
name_parts = ruleset_name.lower().replace('_', ' ').split()
path = ["log", "firewall", ip_version]
path.extend(name_parts)
path.extend(["rule", rule_number])
return _run_curl("/show", {"op": "show", "path": path})