From ba6be403072459e42a66e1a818580ae3518ebf44 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 7 Feb 2021 13:49:47 +0100 Subject: rip: T2547: xml cleanup so parts can be reused by RIPng --- interface-definitions/include/ospf-route-map.xml.i | 4 + .../include/rip-access-list6.xml.i | 39 ++++ .../include/rip-default-information.xml.i | 15 ++ .../include/rip-default-metric.xml.i | 14 ++ interface-definitions/include/rip-interface.xml.i | 18 ++ .../include/rip-prefix-list6.xml.i | 33 +++ .../include/rip-redistribute.xml.i | 13 +- interface-definitions/include/rip-timers.xml.i | 48 +++++ interface-definitions/protocols-ospf.xml.in | 7 + interface-definitions/protocols-rip.xml.in | 91 +------- interface-definitions/protocols-ripng.xml.in | 228 ++------------------- 11 files changed, 198 insertions(+), 312 deletions(-) create mode 100644 interface-definitions/include/rip-access-list6.xml.i create mode 100644 interface-definitions/include/rip-default-information.xml.i create mode 100644 interface-definitions/include/rip-default-metric.xml.i create mode 100644 interface-definitions/include/rip-interface.xml.i create mode 100644 interface-definitions/include/rip-prefix-list6.xml.i create mode 100644 interface-definitions/include/rip-timers.xml.i (limited to 'interface-definitions') diff --git a/interface-definitions/include/ospf-route-map.xml.i b/interface-definitions/include/ospf-route-map.xml.i index 8dc5b37da..943a477c0 100644 --- a/interface-definitions/include/ospf-route-map.xml.i +++ b/interface-definitions/include/ospf-route-map.xml.i @@ -2,6 +2,10 @@ Route map reference + + txt + Route map reference + policy route-map diff --git a/interface-definitions/include/rip-access-list6.xml.i b/interface-definitions/include/rip-access-list6.xml.i new file mode 100644 index 000000000..6a8a37607 --- /dev/null +++ b/interface-definitions/include/rip-access-list6.xml.i @@ -0,0 +1,39 @@ + + + + Access-list + + + + + Access list to apply to input packets + + u32 + Access list to apply to input packets + + + policy access-list6 + + + + + + + + + Access list to apply to output packets + + u32 + Access list to apply to output packets + + + policy access-list6 + + + + + + + + + diff --git a/interface-definitions/include/rip-default-information.xml.i b/interface-definitions/include/rip-default-information.xml.i new file mode 100644 index 000000000..22a2f6ac7 --- /dev/null +++ b/interface-definitions/include/rip-default-information.xml.i @@ -0,0 +1,15 @@ + + + + Control distribution of default route + + + + + Distribute a default route + + + + + + diff --git a/interface-definitions/include/rip-default-metric.xml.i b/interface-definitions/include/rip-default-metric.xml.i new file mode 100644 index 000000000..a5e6016d6 --- /dev/null +++ b/interface-definitions/include/rip-default-metric.xml.i @@ -0,0 +1,14 @@ + + + + Metric of redistributed routes + + u32:1-16 + Default metric + + + + + + + diff --git a/interface-definitions/include/rip-interface.xml.i b/interface-definitions/include/rip-interface.xml.i new file mode 100644 index 000000000..f3f473a90 --- /dev/null +++ b/interface-definitions/include/rip-interface.xml.i @@ -0,0 +1,18 @@ + + + + Interface name + + + + + txt + Interface name + + + + + + + + diff --git a/interface-definitions/include/rip-prefix-list6.xml.i b/interface-definitions/include/rip-prefix-list6.xml.i new file mode 100644 index 000000000..f73f77d05 --- /dev/null +++ b/interface-definitions/include/rip-prefix-list6.xml.i @@ -0,0 +1,33 @@ + + + + Prefix-list + + + + + Prefix-list to apply to input packets + + txt + Prefix-list to apply to input packets + + + policy prefix-list6 + + + + + + Prefix-list to apply to output packets + + txt + Prefix-list to apply to output packets + + + policy prefix-list6 + + + + + + diff --git a/interface-definitions/include/rip-redistribute.xml.i b/interface-definitions/include/rip-redistribute.xml.i index f9dba3ffe..c7b9d2c09 100644 --- a/interface-definitions/include/rip-redistribute.xml.i +++ b/interface-definitions/include/rip-redistribute.xml.i @@ -11,16 +11,5 @@ - - - Route map reference - - txt - Route map reference - - - policy route-map - - - +#include diff --git a/interface-definitions/include/rip-timers.xml.i b/interface-definitions/include/rip-timers.xml.i new file mode 100644 index 000000000..5ba19bb06 --- /dev/null +++ b/interface-definitions/include/rip-timers.xml.i @@ -0,0 +1,48 @@ + + + + RIPng timer values + + + + + Garbage collection timer + + u32:5-2147483647 + Garbage colletion time (default 120) + + + + + + 120 + + + + Routing information timeout timer + + u32:5-2147483647 + Routing information timeout timer (default 180) + + + + + + 180 + + + + Routing table update timer + + u32:5-2147483647 + Routing table update timer in seconds (default 30) + + + + + + 30 + + + + diff --git a/interface-definitions/protocols-ospf.xml.in b/interface-definitions/protocols-ospf.xml.in index ee350fb17..a616c0e60 100644 --- a/interface-definitions/protocols-ospf.xml.in +++ b/interface-definitions/protocols-ospf.xml.in @@ -404,6 +404,13 @@ + + txt + Interface name + + + + #include diff --git a/interface-definitions/protocols-rip.xml.in b/interface-definitions/protocols-rip.xml.in index 2587e94c3..4ced26d8a 100644 --- a/interface-definitions/protocols-rip.xml.in +++ b/interface-definitions/protocols-rip.xml.in @@ -19,31 +19,8 @@ - - - Control distribution of default route - - - - - Distribute a default route - - - - - - - - Metric of redistributed routes - - u32:1-16 - Redistributed routes metric - - - - - - + #include + #include Filter networks in routing updates @@ -60,6 +37,9 @@ + + + #include @@ -69,19 +49,7 @@ #include - - - Interface name - - txt - Apply filtering to an interface - - - - - - - + #include Neighbor router @@ -196,52 +164,7 @@ - - - RIP timer values - - - - - Garbage collection timer (default: 120) - - u32:5-2147483647 - Garbage colletion time - - - - - - 120 - - - - Routing information timeout timer (default: 180) - - u32:5-2147483647 - Routing information timeout timer - - - - - - 180 - - - - Routing table update timer (default: 30) - - u32:5-2147483647 - Routing table update timer in seconds - - - - - - 30 - - - + #include diff --git a/interface-definitions/protocols-ripng.xml.in b/interface-definitions/protocols-ripng.xml.in index 2fca0f5dd..74f720e89 100644 --- a/interface-definitions/protocols-ripng.xml.in +++ b/interface-definitions/protocols-ripng.xml.in @@ -20,67 +20,14 @@ - - - Control distribution of default route - - - - - Distribute a default route - - - - - - - - Metric of redistributed routes - - u32:1-16 - Default metric - - - - - - + #include + #include Filter networks in routing updates - - - Access-list - - - - - Access list to apply to input packets - - u32:1-4294967295 - Access list to apply to input packets - - - - - - - - - Access list to apply to output packets - - u32:1-4294967295 - Access list to apply to output packets - - - - - - - - + #include Apply filtering to an interface @@ -91,118 +38,19 @@ + + + - - - Access list - - - - - Access list to apply to input packets - - u32:1-4294967295 - Access list to apply to input packets - - - policy access-list6 - - - - - - Access list to apply to output packets - - u32:1-4294967295 - Access list to apply to output packets - - - policy access-list - - - - - - - - Prefix-list - - - - - Prefix-list to apply to input packets - - txt - Prefix-list to apply to input packets - - - policy prefix-list6 - - - - - - Prefix-list to apply to output packets - - txt - Prefix-list to apply to output packets - - - policy prefix-list6 - - - - - + #include + #include - - - Prefix-list - - - - - Prefix-list to apply to input packets - - txt - Prefix-list to apply to input packets - - - policy prefix-list - - - - - - Prefix-list to apply to output packets - - txt - Prefix-list to apply to output packets - - - policy prefix-list - - - - - + #include - - - Interface name - - txt - Apply filtering to an interface - - - - - - - + #include RIPng network @@ -289,60 +137,8 @@ - - - Filter routes installed in local route map - - policy route-map - - - - - - RIPng timer values - - - - - Garbage collection timer - - u32:5-2147483647 - Garbage colletion time (default 120) - - - - - - 120 - - - - Routing information timeout timer - - u32:5-2147483647 - Routing information timeout timer (default 180) - - - - - - 180 - - - - Routing table update timer - - u32:5-2147483647 - Routing table update timer in seconds (default 30) - - - - - - 30 - - - + #include + #include -- cgit v1.2.3