From 4ed4d822cfd1d1aad19982783066a5e2431889b4 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Fri, 22 Jan 2021 17:38:22 +0100 Subject: ospf: T3236: provide full protocol support in XML and Python This commit provides the implementation of the OSPF CLI with a Jinja2 template that is loaded by FRR reload. It also contains some initial smoketests. There is yet no verify() implementation! --- .../include/ospf-metric-type.xml.i | 15 ++++++ interface-definitions/include/ospf-metric.xml.i | 21 -------- interface-definitions/include/ospf-route-map.xml.i | 10 ++++ interface-definitions/protocols-ospf.xml.in | 63 ++++++++++++++++------ 4 files changed, 72 insertions(+), 37 deletions(-) create mode 100644 interface-definitions/include/ospf-metric-type.xml.i create mode 100644 interface-definitions/include/ospf-route-map.xml.i (limited to 'interface-definitions') diff --git a/interface-definitions/include/ospf-metric-type.xml.i b/interface-definitions/include/ospf-metric-type.xml.i new file mode 100644 index 000000000..50f11960c --- /dev/null +++ b/interface-definitions/include/ospf-metric-type.xml.i @@ -0,0 +1,15 @@ + + + + OSPF metric type for default routes (default: 2) + + u32:1-2 + Metric type for default routes + + + + + + 2 + + diff --git a/interface-definitions/include/ospf-metric.xml.i b/interface-definitions/include/ospf-metric.xml.i index b2812ba36..3ce12e877 100644 --- a/interface-definitions/include/ospf-metric.xml.i +++ b/interface-definitions/include/ospf-metric.xml.i @@ -11,25 +11,4 @@ - - - OSPF metric type for default routes (default: 2) - - u32:1-2 - Metric type for default routes - - - - - - 2 - - - - Route map reference - - policy route-map - - - diff --git a/interface-definitions/include/ospf-route-map.xml.i b/interface-definitions/include/ospf-route-map.xml.i new file mode 100644 index 000000000..8dc5b37da --- /dev/null +++ b/interface-definitions/include/ospf-route-map.xml.i @@ -0,0 +1,10 @@ + + + + Route map reference + + policy route-map + + + + diff --git a/interface-definitions/protocols-ospf.xml.in b/interface-definitions/protocols-ospf.xml.in index 04ad39732..074d0db63 100644 --- a/interface-definitions/protocols-ospf.xml.in +++ b/interface-definitions/protocols-ospf.xml.in @@ -5,13 +5,16 @@ - Open Shortest Path First protocol (OSPF) parameters + Open Shortest Path First (OSPF) 620 Access list to filter networks in routing updates + + policy access-list + u32 Access-list number @@ -195,6 +198,13 @@ Summarize routes matching prefix (border routers only) + + ipv4net + Area range prefix + + + + @@ -255,6 +265,14 @@ Virtual link + + ipv4 + OSPF area in dotted decimal notation + + + + + @@ -302,7 +320,7 @@ - Interval after which a neighbor is declared dead + Interval after which a neighbor is declared dead (default: 40) u32:1-65535 Neighbor dead interval (seconds) @@ -311,10 +329,11 @@ + 40 - Interval between hello packets + Interval between hello packets (default: 10) u32:1-65535 Hello interval (seconds) @@ -323,10 +342,11 @@ + 10 - Interval between retransmitting lost link state advertisements + Interval between retransmitting lost link state advertisements (default: 5) u32:1-65535 Retransmit interval (seconds) @@ -335,10 +355,11 @@ + 5 - Link state transmit delay + Link state transmit delay (default: 1) u32:1-65535 Link state transmit delay (seconds) @@ -347,6 +368,7 @@ + 1 @@ -389,6 +411,8 @@ #include + #include + #include @@ -500,11 +524,11 @@ Advertise stub-router prior to full shutdown of OSPF - u32:5-86400 + u32:5-100 Time (seconds) to advertise self as stub-router - + @@ -546,16 +570,20 @@ + 0.0.0.0 - Neighbor IP address + Specify neighbor router ipv4 Neighbor IP address + + + @@ -693,6 +721,8 @@ #include + #include + #include @@ -701,6 +731,8 @@ #include + #include + #include @@ -709,6 +741,8 @@ #include + #include + #include @@ -717,6 +751,8 @@ #include + #include + #include @@ -725,6 +761,8 @@ #include + #include + #include @@ -748,14 +786,7 @@ - - - Filter routes installed in local route map - - policy route-map - - - + #include Adjust routing timers -- cgit v1.2.3