summaryrefslogtreecommitdiff
path: root/src/conf_mode/policy-route.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-09-16 11:36:50 +0200
committerGitHub <noreply@github.com>2022-09-16 11:36:50 +0200
commit79a96ee241760479c7ddec690ed5b28dca89198c (patch)
tree434e9ab9bffce8147471bc307a7862afd788ab09 /src/conf_mode/policy-route.py
parent734a779523b85db53b07208dc089d609a9738bf2 (diff)
parent1b3ded9fb2846e20f3bec2a0e21dc4cec3a09139 (diff)
downloadvyos-1x-79a96ee241760479c7ddec690ed5b28dca89198c.tar.gz
vyos-1x-79a96ee241760479c7ddec690ed5b28dca89198c.zip
Merge pull request #1544 from sever-sever/T4697
policy-route: T4697: Add missing rule_id for verify_rule func
Diffstat (limited to 'src/conf_mode/policy-route.py')
-rwxr-xr-xsrc/conf_mode/policy-route.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf_mode/policy-route.py b/src/conf_mode/policy-route.py
index 9fddbd2c6..00539b9c7 100755
--- a/src/conf_mode/policy-route.py
+++ b/src/conf_mode/policy-route.py
@@ -92,7 +92,7 @@ def get_config(config=None):
return policy
-def verify_rule(policy, name, rule_conf, ipv6):
+def verify_rule(policy, name, rule_conf, ipv6, rule_id):
icmp = 'icmp' if not ipv6 else 'icmpv6'
if icmp in rule_conf:
icmp_defined = False
@@ -166,7 +166,7 @@ def verify(policy):
for name, pol_conf in policy[route].items():
if 'rule' in pol_conf:
for rule_id, rule_conf in pol_conf['rule'].items():
- verify_rule(policy, name, rule_conf, ipv6)
+ verify_rule(policy, name, rule_conf, ipv6, rule_id)
for ifname, if_policy in policy['interfaces'].items():
name = dict_search_args(if_policy, 'route')