From 952c52ef012504f17f09234ab1f7608ceb4002b1 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Thu, 11 Mar 2021 19:28:06 +0100 Subject: vrf: ospf: T2271: re-arrange xml include building blocks In order to fully re-use the XML based OSPF CLI definition for per-VRF routing, the file structure needs to be reorganized and the common OSPF definition is moved to its dedicated ospf-common-config.xml.i file, which can then be fully re-included at the VRF level. As the amount of include files now has reached a certain amount, this also introduces "per topic" subdirectories on the filesystem to keep a clean structure. --- interface-definitions/protocols-ospfv3.xml.in | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'interface-definitions/protocols-ospfv3.xml.in') diff --git a/interface-definitions/protocols-ospfv3.xml.in b/interface-definitions/protocols-ospfv3.xml.in index 2559e2b03..1868ff34d 100644 --- a/interface-definitions/protocols-ospfv3.xml.in +++ b/interface-definitions/protocols-ospfv3.xml.in @@ -162,8 +162,8 @@ - #include - #include + #include + #include Interface MTU @@ -246,7 +246,7 @@ Redistribute BGP routes - #include + #include @@ -254,7 +254,7 @@ Redistribute connected routes - #include + #include @@ -262,7 +262,7 @@ Redistribute kernel routes - #include + #include @@ -270,7 +270,7 @@ Redistribute RIPNG routes - #include + #include @@ -278,12 +278,12 @@ Redistribute static routes - #include + #include - #include + #include -- cgit v1.2.3 From 0d9658f3dcaf1a9f376a6768c54a0ceb80ece7d0 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Thu, 11 Mar 2021 20:41:51 +0100 Subject: xml: include: move route-map from ospf to generic section --- .../include/ospf/ospf-common-config.xml.i | 16 ++++++++-------- interface-definitions/include/ospf/ospf-route-map.xml.i | 14 -------------- interface-definitions/include/rip-redistribute.xml.i | 2 +- interface-definitions/include/route-map.xml.i | 14 ++++++++++++++ interface-definitions/protocols-ospfv3.xml.in | 12 ++++++------ interface-definitions/protocols-ripng.xml.in | 2 +- 6 files changed, 30 insertions(+), 30 deletions(-) delete mode 100644 interface-definitions/include/ospf/ospf-route-map.xml.i create mode 100644 interface-definitions/include/route-map.xml.i (limited to 'interface-definitions/protocols-ospfv3.xml.in') diff --git a/interface-definitions/include/ospf/ospf-common-config.xml.i b/interface-definitions/include/ospf/ospf-common-config.xml.i index 590da36b2..96793913b 100644 --- a/interface-definitions/include/ospf/ospf-common-config.xml.i +++ b/interface-definitions/include/ospf/ospf-common-config.xml.i @@ -313,7 +313,7 @@ #include #include - #include + #include @@ -680,7 +680,7 @@ #include #include - #include + #include @@ -690,7 +690,7 @@ #include #include - #include + #include @@ -700,7 +700,7 @@ #include #include - #include + #include @@ -710,7 +710,7 @@ #include #include - #include + #include @@ -720,7 +720,7 @@ #include #include - #include + #include @@ -730,7 +730,7 @@ #include #include - #include + #include @@ -754,7 +754,7 @@ -#include +#include Adjust routing timers diff --git a/interface-definitions/include/ospf/ospf-route-map.xml.i b/interface-definitions/include/ospf/ospf-route-map.xml.i deleted file mode 100644 index 943a477c0..000000000 --- a/interface-definitions/include/ospf/ospf-route-map.xml.i +++ /dev/null @@ -1,14 +0,0 @@ - - - - Route map reference - - txt - Route map reference - - - policy route-map - - - - diff --git a/interface-definitions/include/rip-redistribute.xml.i b/interface-definitions/include/rip-redistribute.xml.i index 123d78fb3..c31be6fe5 100644 --- a/interface-definitions/include/rip-redistribute.xml.i +++ b/interface-definitions/include/rip-redistribute.xml.i @@ -11,5 +11,5 @@ -#include +#include diff --git a/interface-definitions/include/route-map.xml.i b/interface-definitions/include/route-map.xml.i new file mode 100644 index 000000000..943a477c0 --- /dev/null +++ b/interface-definitions/include/route-map.xml.i @@ -0,0 +1,14 @@ + + + + Route map reference + + txt + Route map reference + + + policy route-map + + + + diff --git a/interface-definitions/protocols-ospfv3.xml.in b/interface-definitions/protocols-ospfv3.xml.in index 1868ff34d..8c21ba3cd 100644 --- a/interface-definitions/protocols-ospfv3.xml.in +++ b/interface-definitions/protocols-ospfv3.xml.in @@ -246,7 +246,7 @@ Redistribute BGP routes - #include + #include @@ -254,7 +254,7 @@ Redistribute connected routes - #include + #include @@ -262,7 +262,7 @@ Redistribute kernel routes - #include + #include @@ -270,7 +270,7 @@ Redistribute RIPNG routes - #include + #include @@ -278,12 +278,12 @@ Redistribute static routes - #include + #include - #include + #include diff --git a/interface-definitions/protocols-ripng.xml.in b/interface-definitions/protocols-ripng.xml.in index 1b77b40c8..3eac27788 100644 --- a/interface-definitions/protocols-ripng.xml.in +++ b/interface-definitions/protocols-ripng.xml.in @@ -137,7 +137,7 @@ - #include + #include #include -- cgit v1.2.3 From 6325d1576b923f0abce19de49f940f5981411cf9 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Fri, 12 Mar 2021 20:41:46 +0100 Subject: xml: ospf: consolidate router-id and distance settings in common include files --- .../include/ospf/ospf-common-config.xml.i | 63 ++-------------------- .../include/ospf/ospf-distance-global.xml.i | 14 +++++ .../include/ospf/ospf-distance-per-protocol.xml.i | 38 +++++++++++++ .../include/ospf/ospf-router-id.xml.i | 14 +++++ interface-definitions/protocols-ospfv3.xml.in | 63 ++-------------------- 5 files changed, 72 insertions(+), 120 deletions(-) create mode 100644 interface-definitions/include/ospf/ospf-distance-global.xml.i create mode 100644 interface-definitions/include/ospf/ospf-distance-per-protocol.xml.i create mode 100644 interface-definitions/include/ospf/ospf-router-id.xml.i (limited to 'interface-definitions/protocols-ospfv3.xml.in') diff --git a/interface-definitions/include/ospf/ospf-common-config.xml.i b/interface-definitions/include/ospf/ospf-common-config.xml.i index 96793913b..a9b2f0a2b 100644 --- a/interface-definitions/include/ospf/ospf-common-config.xml.i +++ b/interface-definitions/include/ospf/ospf-common-config.xml.i @@ -335,59 +335,13 @@ Administrative distance - - - OSPF administrative distance - - u32:1-255 - Administrative distance - - - - - - + #include OSPF administrative distance - - - Distance for external routes - - u32:1-255 - Distance for external routes - - - - - - - - - Distance for inter-area routes - - u32:1-255 - Distance for inter-area routes - - - - - - - - - Distance for intra-area routes - - u32:1-255 - Distance for intra-area routes - - - - - - + #include @@ -632,18 +586,7 @@ - - - Override the default router identifier - - ipv4 - Override the default router identifier - - - - - - + #include #include diff --git a/interface-definitions/include/ospf/ospf-distance-global.xml.i b/interface-definitions/include/ospf/ospf-distance-global.xml.i new file mode 100644 index 000000000..930bd9640 --- /dev/null +++ b/interface-definitions/include/ospf/ospf-distance-global.xml.i @@ -0,0 +1,14 @@ + + + + Administrative distance + + u32:1-255 + Administrative distance + + + + + + + diff --git a/interface-definitions/include/ospf/ospf-distance-per-protocol.xml.i b/interface-definitions/include/ospf/ospf-distance-per-protocol.xml.i new file mode 100644 index 000000000..19debdea2 --- /dev/null +++ b/interface-definitions/include/ospf/ospf-distance-per-protocol.xml.i @@ -0,0 +1,38 @@ + + + + Distance for external routes + + u32:1-255 + Distance for external routes + + + + + + + + + Distance for inter-area routes + + u32:1-255 + Distance for inter-area routes + + + + + + + + + Distance for intra-area routes + + u32:1-255 + Distance for intra-area routes + + + + + + + diff --git a/interface-definitions/include/ospf/ospf-router-id.xml.i b/interface-definitions/include/ospf/ospf-router-id.xml.i new file mode 100644 index 000000000..a719f40dc --- /dev/null +++ b/interface-definitions/include/ospf/ospf-router-id.xml.i @@ -0,0 +1,14 @@ + + + + Override the default router identifier + + ipv4 + Override the default router identifier + + + + + + + diff --git a/interface-definitions/protocols-ospfv3.xml.in b/interface-definitions/protocols-ospfv3.xml.in index 8c21ba3cd..06787b604 100644 --- a/interface-definitions/protocols-ospfv3.xml.in +++ b/interface-definitions/protocols-ospfv3.xml.in @@ -90,59 +90,13 @@ Administrative distance - - - OSPFv3 administrative distance - - u32:1-255 - Administrative distance - - - - - - + #include OSPFv3 administrative distance - - - Distance for external routes - - u32:1-255 - Distance for external routes - - - - - - - - - Distance for inter-area routes - - u32:1-255 - Distance for inter-area routes - - - - - - - - - Distance for intra-area routes - - u32:1-255 - Distance for intra-area routes - - - - - - + #include @@ -222,18 +176,7 @@ OSPFv3 specific parameters - - - Override the default router identifier - - ipv4 - Override the default router identifier - - - - - - + #include -- cgit v1.2.3