From dd68d2ae459c328bff664bfc74826c96fcd76413 Mon Sep 17 00:00:00 2001 From: Christian Svensson Date: Thu, 12 Aug 2021 23:16:03 +0200 Subject: [PATCH] Fix constant casing for prefix-list mode This change makes the template match PREFIX_SET and the documentation. Fixes #6943. Signed-off-by: Christian Svensson --- .../templates/bgpd/bgpd.conf.db.route_map.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sonic-frr-mgmt-framework/templates/bgpd/bgpd.conf.db.route_map.j2 b/src/sonic-frr-mgmt-framework/templates/bgpd/bgpd.conf.db.route_map.j2 index 29a4817dc281..5c9e44f1d9a0 100644 --- a/src/sonic-frr-mgmt-framework/templates/bgpd/bgpd.conf.db.route_map.j2 +++ b/src/sonic-frr-mgmt-framework/templates/bgpd/bgpd.conf.db.route_map.j2 @@ -25,7 +25,7 @@ route-map {{rm_key[0]}} {{rm_val['route_operation']}} {{rm_key[1]}} match source-vrf {{rm_val['match_src_vrf']}} {% endif %} {# ---------------match ip/ipv6-Start-------------------------- #} -{% set ip_str = {'ipv4':'ip', 'ipv6':'ipv6' } %} +{% set ip_str = {'IPv4':'ip', 'IPv6':'ipv6' } %} {% if PREFIX_SET is defined and PREFIX_SET|length > 0 %} {% if 'match_prefix_set' in rm_val %} {% for pfx_key, pfx_val in PREFIX_SET.items() %}