]> git.puffer.fish Git - mirror/frr.git/commitdiff
[ripd] update to use auto-generated redistribute route-type defs
authorPaul Jakma <paul.jakma@sun.com>
Fri, 30 Jun 2006 16:58:53 +0000 (16:58 +0000)
committerPaul Jakma <paul.jakma@sun.com>
Fri, 30 Jun 2006 16:58:53 +0000 (16:58 +0000)
2006-06-29 Paul Jakma <paul.jakma@sun.com>

* rip_zebra: (general) convert redistribute commands to use
  the auto-generated defines.

ripd/ChangeLog
ripd/rip_zebra.c

index 52fb6d69f57d6c4f615ba6c6a7b65a5d78906609..50f8dfd7a3eddad7b839024e5dccf41713eb8481 100644 (file)
@@ -1,3 +1,8 @@
+2006-06-29 Paul Jakma <paul.jakma@sun.com>
+
+       * rip_zebra: (general) convert redistribute commands to use
+         the auto-generated defines.
+
 2006-05-04 Paul Jakma <paul.jakma@sun.com>
 
        * (general) Fixes for bugs #261 and 262. Thanks to
index 44f407dde5f1adb85529fa67e096565866b53213..b924199f79a55bd1468e95d3685274d478577b01 100644 (file)
@@ -314,13 +314,9 @@ DEFUN (no_rip_redistribute_rip,
 
 DEFUN (rip_redistribute_type,
        rip_redistribute_type_cmd,
-       "redistribute (kernel|connected|static|ospf|bgp)",
-       "Redistribute information from another routing protocol\n"
-       "Kernel routes\n"
-       "Connected\n"
-       "Static routes\n"
-       "Open Shortest Path First (OSPF)\n"
-       "Border Gateway Protocol (BGP)\n")
+       "redistribute " QUAGGA_REDIST_STR_RIPD,
+       REDIST_STR
+       QUAGGA_REDIST_HELP_STR_RIPD)
 {
   int i;
 
@@ -343,14 +339,10 @@ DEFUN (rip_redistribute_type,
 
 DEFUN (no_rip_redistribute_type,
        no_rip_redistribute_type_cmd,
-       "no redistribute (kernel|connected|static|ospf|bgp)",
+       "no redistribute " QUAGGA_REDIST_STR_RIPD,
        NO_STR
-       "Redistribute information from another routing protocol\n"
-       "Kernel routes\n"
-       "Connected\n"
-       "Static routes\n"
-       "Open Shortest Path First (OSPF)\n"
-       "Border Gateway Protocol (BGP)\n")
+       REDIST_STR
+       QUAGGA_REDIST_HELP_STR_RIPD)
 {
   int i;
 
@@ -374,13 +366,9 @@ DEFUN (no_rip_redistribute_type,
 
 DEFUN (rip_redistribute_type_routemap,
        rip_redistribute_type_routemap_cmd,
-       "redistribute (kernel|connected|static|ospf|bgp) route-map WORD",
-       "Redistribute information from another routing protocol\n"
-       "Kernel routes\n"
-       "Connected\n"
-       "Static routes\n"
-       "Open Shortest Path First (OSPF)\n"
-       "Border Gateway Protocol (BGP)\n"
+       "redistribute " QUAGGA_REDIST_STR_RIPD " route-map WORD",
+       REDIST_STR
+       QUAGGA_REDIST_HELP_STR_RIPD
        "Route map reference\n"
        "Pointer to route-map entries\n")
 {
@@ -404,14 +392,10 @@ DEFUN (rip_redistribute_type_routemap,
 
 DEFUN (no_rip_redistribute_type_routemap,
        no_rip_redistribute_type_routemap_cmd,
-       "no redistribute (kernel|connected|static|ospf|bgp) route-map WORD",
+       "no redistribute " QUAGGA_REDIST_STR_RIPD " route-map WORD",
        NO_STR
-       "Redistribute information from another routing protocol\n"
-       "Kernel routes\n"
-       "Connected\n"
-       "Static routes\n"
-       "Open Shortest Path First (OSPF)\n"
-       "Border Gateway Protocol (BGP)\n"
+       REDIST_STR
+       QUAGGA_REDIST_HELP_STR_RIPD
        "Route map reference\n"
        "Pointer to route-map entries\n")
 {
@@ -437,13 +421,9 @@ DEFUN (no_rip_redistribute_type_routemap,
 
 DEFUN (rip_redistribute_type_metric,
        rip_redistribute_type_metric_cmd,
-       "redistribute (kernel|connected|static|ospf|bgp) metric <0-16>",
-       "Redistribute information from another routing protocol\n"
-       "Kernel routes\n"
-       "Connected\n"
-       "Static routes\n"
-       "Open Shortest Path First (OSPF)\n"
-       "Border Gateway Protocol (BGP)\n"
+       "redistribute " QUAGGA_REDIST_STR_RIPD " metric <0-16>",
+       REDIST_STR
+       QUAGGA_REDIST_HELP_STR_RIPD
        "Metric\n"
        "Metric value\n")
 {
@@ -470,14 +450,10 @@ DEFUN (rip_redistribute_type_metric,
 
 DEFUN (no_rip_redistribute_type_metric,
        no_rip_redistribute_type_metric_cmd,
-       "no redistribute (kernel|connected|static|ospf|bgp) metric <0-16>",
+       "no redistribute " QUAGGA_REDIST_STR_RIPD " metric <0-16>",
        NO_STR
-       "Redistribute information from another routing protocol\n"
-       "Kernel routes\n"
-       "Connected\n"
-       "Static routes\n"
-       "Open Shortest Path First (OSPF)\n"
-       "Border Gateway Protocol (BGP)\n"
+       REDIST_STR
+       QUAGGA_REDIST_HELP_STR_RIPD
        "Metric\n"
        "Metric value\n")
 {
@@ -503,13 +479,9 @@ DEFUN (no_rip_redistribute_type_metric,
 
 DEFUN (rip_redistribute_type_metric_routemap,
        rip_redistribute_type_metric_routemap_cmd,
-       "redistribute (kernel|connected|static|ospf|bgp) metric <0-16> route-map WORD",
-       "Redistribute information from another routing protocol\n"
-       "Kernel routes\n"
-       "Connected\n"
-       "Static routes\n"
-       "Open Shortest Path First (OSPF)\n"
-       "Border Gateway Protocol (BGP)\n"
+       "redistribute " QUAGGA_REDIST_STR_RIPD " metric <0-16> route-map WORD",
+       REDIST_STR
+       QUAGGA_REDIST_HELP_STR_RIPD
        "Metric\n"
        "Metric value\n"
        "Route map reference\n"
@@ -540,14 +512,11 @@ DEFUN (rip_redistribute_type_metric_routemap,
 
 DEFUN (no_rip_redistribute_type_metric_routemap,
        no_rip_redistribute_type_metric_routemap_cmd,
-       "no redistribute (kernel|connected|static|ospf|bgp) metric <0-16> route-map WORD",
+       "no redistribute " QUAGGA_REDIST_STR_RIPD
+       " metric <0-16> route-map WORD",
        NO_STR
-       "Redistribute information from another routing protocol\n"
-       "Kernel routes\n"
-       "Connected\n"
-       "Static routes\n"
-       "Open Shortest Path First (OSPF)\n"
-       "Border Gateway Protocol (BGP)\n"
+       REDIST_STR
+       QUAGGA_REDIST_HELP_STR_RIPD
        "Metric\n"
        "Metric value\n"
        "Route map reference\n"