diff options
| author | Miaosen Wang <secretandanon@gmail.com> | 2026-02-23 23:31:26 -0800 |
|---|---|---|
| committer | Miaosen Wang <secretandanon@gmail.com> | 2026-02-24 00:43:34 -0800 |
| commit | 7f6545b188b7ad00a2ba4bf2dc7281bca93f05bf (patch) | |
| tree | de3cd4ad1498eb95d26c9d8a017fff6819aec7e0 /interface-definitions | |
| parent | 662b45c159393aa9451c93b168da415021949857 (diff) | |
| download | vyos-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 'interface-definitions')
| -rw-r--r-- | interface-definitions/service_router-advert.xml.in | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/interface-definitions/service_router-advert.xml.in b/interface-definitions/service_router-advert.xml.in index dc7164abc..878b53e78 100644 --- a/interface-definitions/service_router-advert.xml.in +++ b/interface-definitions/service_router-advert.xml.in @@ -305,6 +305,21 @@ <valueless/> </properties> </leafNode> + <leafNode name="base-interface"> + <properties> + <help>Prefix will be combined with IPv6 address of specified interface</help> + <completionHelp> + <script>${vyos_completion_dir}/list_interfaces</script> + </completionHelp> + <valueHelp> + <format>txt</format> + <description>Interface name</description> + </valueHelp> + <constraint> + #include <include/constraint/interface-name.xml.i> + </constraint> + </properties> + </leafNode> <leafNode name="preferred-lifetime"> <properties> <help>Time in seconds that the prefix will remain preferred</help> |
