diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-05-26 21:49:35 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-05-26 21:49:35 +0200 |
commit | f26c44b4cbeb1b69a5256f5b36f6fa44968234c4 (patch) | |
tree | d78c3060050e3f5a21be67ae6937a5f900f12819 | |
parent | 8cf62f494c9b743b95892c03fb3ec180aa4c7026 (diff) | |
download | vyos-1x-f26c44b4cbeb1b69a5256f5b36f6fa44968234c4.tar.gz vyos-1x-f26c44b4cbeb1b69a5256f5b36f6fa44968234c4.zip |
pppoe: T2502: always delete default route once interface goes down
-rw-r--r-- | data/templates/pppoe/ip-down.script.tmpl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/data/templates/pppoe/ip-down.script.tmpl b/data/templates/pppoe/ip-down.script.tmpl index c4e11b6b4..9e6bd2a8e 100644 --- a/data/templates/pppoe/ip-down.script.tmpl +++ b/data/templates/pppoe/ip-down.script.tmpl @@ -25,6 +25,9 @@ fi # Always delete default route when interface goes down vtysh -c "conf t" ${VRF_NAME} -c "no ip route 0.0.0.0/0 {{ intf }} ${VRF_NAME}" +{% if ipv6_enable %} +vtysh -c "conf t" ${VRF_NAME} -c "no ipv6 route ::/0 {{ intf }} ${VRF_NAME}" +{% endif %} {% endif %} {% if dhcpv6_pd_interfaces %} |