diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-04-19 20:48:37 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-04-19 20:48:37 +0200 |
commit | 08f3e4353561962a5d76a7db901de9d215e466e2 (patch) | |
tree | 9e5eb71798b6964828a12b21c3338eeb3977fe39 | |
parent | 2da4f6933afe0c95deee0480a468fcfb154d588a (diff) | |
download | vyatta-cfg-quagga-08f3e4353561962a5d76a7db901de9d215e466e2.tar.gz vyatta-cfg-quagga-08f3e4353561962a5d76a7db901de9d215e466e2.zip |
vrf: ipv6: T2338: convert IPv6 address to lower case only letters
-rw-r--r-- | templates/protocols/vrf/node.tag/static/route6/node.tag/next-hop/node.def | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/protocols/vrf/node.tag/static/route6/node.tag/next-hop/node.def b/templates/protocols/vrf/node.tag/static/route6/node.tag/next-hop/node.def index 61ee4854..3fb5b798 100644 --- a/templates/protocols/vrf/node.tag/static/route6/node.tag/next-hop/node.def +++ b/templates/protocols/vrf/node.tag/static/route6/node.tag/next-hop/node.def @@ -13,9 +13,13 @@ end: if ${vyatta_sbindir}/vyatta-gateway-static_route-check.pl \ "$VAR(../@)" "$VAR(@)" then + # https://phabricator.vyos.net/T2338#60690 + # FRR does not support deleting a route with upper case hex letters for IPv6 addresses + network=$(echo $VAR(../@) | tr [A-F] [a-f]) + nexthop=$(echo $VAR(@) | tr [A-F] [a-f]) quagga_conf=$(vtysh -c "show running-config" | \ sed -n "/vrf ${VRF_NAME}/,/!/p" | \ - grep "^ ipv6 route $VAR(../@) $VAR(@)") + grep "^ ipv6 route $network $nexthop") vtysh -c "configure terminal" \ -c "vrf ${VRF_NAME}" \ |