summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-01-24 13:14:48 +0100
committerChristian Poessinger <christian@poessinger.com>2021-01-24 14:43:53 +0100
commit42f91ee461589f1a407a2ceec8c63dd889f4a609 (patch)
tree00a70bacb97a86dd26b68a3296b5a4f503659caf /interface-definitions
parent5834355b6342b7f9ab43da8e97b519f112693d09 (diff)
downloadvyos-1x-42f91ee461589f1a407a2ceec8c63dd889f4a609.tar.gz
vyos-1x-42f91ee461589f1a407a2ceec8c63dd889f4a609.zip
ospfv3: T3244: provide full protocol support in XML and Python
This commit provides the implementation of the OSPFv3 (IPv6) CLI with a Jinja2 template that is loaded by FRR reload. It also contains some initial smoketests. There is yet no verify() implementation!
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/protocols-ospfv3.xml.in19
1 files changed, 13 insertions, 6 deletions
diff --git a/interface-definitions/protocols-ospfv3.xml.in b/interface-definitions/protocols-ospfv3.xml.in
index 8ade1433d..7f80f9f9d 100644
--- a/interface-definitions/protocols-ospfv3.xml.in
+++ b/interface-definitions/protocols-ospfv3.xml.in
@@ -1,11 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- Protocol OSPFv3 configuration -->
<interfaceDefinition>
<node name="protocols">
<children>
- <node name="nospfv3" owner="${vyos_conf_scripts_dir}/protocols_ospfv3.py">
+ <node name="ospfv3" owner="${vyos_conf_scripts_dir}/protocols_ospfv3.py">
<properties>
- <help>IPv6 Open Shortest Path First protocol (OSPFv3) parameters</help>
+ <help>Open Shortest Path First (OSPF) for IPv6</help>
<priority>620</priority>
</properties>
<children>
@@ -14,11 +13,11 @@
<help>OSPFv3 Area</help>
<valueHelp>
<format>u32</format>
- <description>OSPFv3 area in decimal notation</description>
+ <description>Area ID as a decimal value</description>
</valueHelp>
<valueHelp>
<format>ipv4</format>
- <description>OSPFv3 area in dotted decimal notation</description>
+ <description>Area ID in IP address forma</description>
</valueHelp>
<constraint>
<validator name="numeric" argument="--range 0-4294967295"/>
@@ -44,10 +43,18 @@
</leafNode>
<leafNode name="interface">
<properties>
- <help>OSPFv3 area interface</help>
+ <help>Enable routing on an IPv6 interface</help>
<completionHelp>
<script>${vyos_completion_dir}/list_interfaces.py</script>
</completionHelp>
+ <valueHelp>
+ <format>txt</format>
+ <description>Interface used for routing information exchange</description>
+ </valueHelp>
+ <constraint>
+ <regex>^(br|bond|dum|en|eth|gnv|peth|tun|vti|vxlan|wg|wlan)[0-9]+|lo$</regex>
+ </constraint>
+ <multi/>
</properties>
</leafNode>
<tagNode name="range">