summaryrefslogtreecommitdiff
path: root/interface-definitions/include/ospf
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-08-15 12:53:03 +0200
committerChristian Poessinger <christian@poessinger.com>2021-08-15 12:53:03 +0200
commit6f87d8c910964fd0ebe9724183baa12861caa419 (patch)
treebb5ed11798a267b5a143892418db30533a6cf38a /interface-definitions/include/ospf
parent2faceb16bc56f969eda2d1678a98f61fb1f4c23d (diff)
downloadvyos-1x-6f87d8c910964fd0ebe9724183baa12861caa419.tar.gz
vyos-1x-6f87d8c910964fd0ebe9724183baa12861caa419.zip
ospf: T3757: support to configure area at an interface level
FRR supports configuring either network prefixes per area, or assign an interface to an area to participate in the routing process. This is already well known from other venders and supported by FRR. A valid VyOS OSPF configuration would then look like: vyos@vyos# show protocols ospf { interface dum0 { area 0 } interface eth0.201 { area 0 authentication { md5 { key-id 10 { md5-key vyos } } } dead-interval 40 hello-interval 10 priority 1 retransmit-interval 5 transmit-delay 1 } log-adjacency-changes { detail } parameters { abr-type cisco router-id 172.18.254.201 } passive-interface default passive-interface-exclude eth0.201 }
Diffstat (limited to 'interface-definitions/include/ospf')
-rw-r--r--interface-definitions/include/ospf/protocol-common-config.xml.i17
1 files changed, 17 insertions, 0 deletions
diff --git a/interface-definitions/include/ospf/protocol-common-config.xml.i b/interface-definitions/include/ospf/protocol-common-config.xml.i
index db39b1a86..c4ca613a4 100644
--- a/interface-definitions/include/ospf/protocol-common-config.xml.i
+++ b/interface-definitions/include/ospf/protocol-common-config.xml.i
@@ -361,6 +361,23 @@
</constraint>
</properties>
<children>
+ <leafNode name="area">
+ <properties>
+ <help>Enable OSPF on this interface</help>
+ <valueHelp>
+ <format>u32</format>
+ <description>OSPF area ID as decimal notation</description>
+ </valueHelp>
+ <valueHelp>
+ <format>ipv4</format>
+ <description>OSPF area ID in IP address notation</description>
+ </valueHelp>
+ <constraint>
+ <validator name="numeric" argument="--range 0-4294967295"/>
+ <validator name="ip-address"/>
+ </constraint>
+ </properties>
+ </leafNode>
#include <include/ospf/authentication.xml.i>
#include <include/ospf/intervals.xml.i>
#include <include/ospf/interface-common.xml.i>