From 583e9d907236a4a98fe40e97a378c1fb655f8a95 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Thu, 26 Mar 2020 07:31:46 +0100 Subject: router-advert: T2162: bugfix migrating link-mtu nodes with 0 value ... those nodes mean link-mtu advertisement is disabled in radvd and thus we delete the node completely as it's useless. --- src/conf_mode/service-router-advert.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/conf_mode') diff --git a/src/conf_mode/service-router-advert.py b/src/conf_mode/service-router-advert.py index 5ae719c29..1e0d28397 100755 --- a/src/conf_mode/service-router-advert.py +++ b/src/conf_mode/service-router-advert.py @@ -42,7 +42,9 @@ interface {{ i.name }} { {% if i.default_lifetime %} AdvDefaultLifetime {{ i.default_lifetime }}; {% endif %} +{% if i.link_mtu %} AdvLinkMTU {{ i.link_mtu }}; +{% endif %} AdvOtherConfigFlag {{ i.other_config_flag }}; AdvRetransTimer {{ i.retrans_timer }}; AdvCurHopLimit {{ i.hop_limit }}; @@ -81,7 +83,7 @@ def get_config(): 'default_lifetime': '', 'default_preference': 'medium', 'dnssl': [], - 'link_mtu': '0', + 'link_mtu': '', 'managed_flag': 'off', 'interval_max': '600', 'interval_min': '', -- cgit v1.2.3