summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorMiaosen Wang <secretandanon@gmail.com>2026-02-23 23:31:26 -0800
committerMiaosen Wang <secretandanon@gmail.com>2026-02-24 00:43:34 -0800
commit7f6545b188b7ad00a2ba4bf2dc7281bca93f05bf (patch)
treede3cd4ad1498eb95d26c9d8a017fff6819aec7e0 /data
parent662b45c159393aa9451c93b168da415021949857 (diff)
downloadvyos-1x-7f6545b188b7ad00a2ba4bf2dc7281bca93f05bf.tar.gz
vyos-1x-7f6545b188b7ad00a2ba4bf2dc7281bca93f05bf.zip
T8302: This PR adds Router Advertisement (RA) base-interface support for IPv6 wildcard prefix derivation and includes validation and smoketests.
Included changes: - Add `base-interface` under: - `service router-advert interface <lan-if> prefix ::/64 base-interface <wan-if>` - Render `Base6Interface <wan-if>;` in `radvd.conf` when configured. - Add validation guard: - `base-interface` is only allowed with wildcard prefix `::/64`. - Extend smoketests: - Positive case: `::/64` + `base-interface` commits and renders correctly. - Negative case: non-`::/64` prefix with `base-interface` fails commit.
Diffstat (limited to 'data')
-rw-r--r--data/templates/router-advert/radvd.conf.j23
1 files changed, 3 insertions, 0 deletions
diff --git a/data/templates/router-advert/radvd.conf.j2 b/data/templates/router-advert/radvd.conf.j2
index 15febd0dd..3da405688 100644
--- a/data/templates/router-advert/radvd.conf.j2
+++ b/data/templates/router-advert/radvd.conf.j2
@@ -84,6 +84,9 @@ interface {{ iface }} {
AdvPreferredLifetime {{ prefix_options.preferred_lifetime }};
DeprecatePrefix {{ 'on' if prefix_options.deprecate_prefix is vyos_defined else 'off' }};
DecrementLifetimes {{ 'on' if prefix_options.decrement_lifetime is vyos_defined else 'off' }};
+{% if prefix_options.base_interface is vyos_defined %}
+ Base6Interface {{ prefix_options.base_interface }};
+{% endif %}
};
{% endfor %}
{% endif %}