From 30edcba594ebc07412c903a8e7896235cbc3d11f Mon Sep 17 00:00:00 2001
From: sarthurdev <965089+sarthurdev@users.noreply.github.com>
Date: Tue, 11 Jan 2022 19:12:00 +0100
Subject: policy: T2199: Update op-mode syntax to `route6`
---
op-mode-definitions/policy-route.xml.in | 8 ++++----
src/op_mode/policy_route.py | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/op-mode-definitions/policy-route.xml.in b/op-mode-definitions/policy-route.xml.in
index c998e5487..bd4a61dc9 100644
--- a/op-mode-definitions/policy-route.xml.in
+++ b/op-mode-definitions/policy-route.xml.in
@@ -84,17 +84,17 @@
Show policy information
-
+
Show IPv6 policy chain
sudo ${vyos_op_scripts_dir}/policy_route.py --action show_all --ipv6
-
+
Show IPv6 policy chains
- policy ipv6-route
+ policy route6
@@ -102,7 +102,7 @@
Show summary of IPv6 policy rules
- policy ipv6-route ${COMP_WORDS[4]} rule
+ policy route6 ${COMP_WORDS[4]} rule
sudo ${vyos_op_scripts_dir}/policy_route.py --action show --name $4 --rule $6 --ipv6
diff --git a/src/op_mode/policy_route.py b/src/op_mode/policy_route.py
index 95a7eadac..5be40082f 100755
--- a/src/op_mode/policy_route.py
+++ b/src/op_mode/policy_route.py
@@ -65,7 +65,7 @@ def get_config_policy(conf, name=None, ipv6=False, interfaces=True):
route_conf['interface'] = []
if 'route6' in policy:
- for route_name, route_conf in policy['ipv6_route'].items():
+ for route_name, route_conf in policy['route6'].items():
route_conf['interface'] = []
get_policy_interfaces(conf, policy, name, ipv6)
--
cgit v1.2.3