Update modules/parse.py
This commit is contained in:
parent
9e65fbf94e
commit
ea2d94c987
1 changed files with 7 additions and 0 deletions
|
|
@ -108,4 +108,11 @@ def run_ipv4_route_summary_curl_command():
|
||||||
|
|
||||||
def run_ipv6_route_summary_curl_command():
|
def run_ipv6_route_summary_curl_command():
|
||||||
path = get_route_summary_path("ipv6")
|
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})
|
return _run_curl("/show", {"op": "show", "path": path})
|
||||||
Loading…
Add table
Add a link
Reference in a new issue