[quagga-dev 5038] [PATCH] [ospfd] Change "show ip ospf interface" behaviour

Hasso Tepper hasso at estpak.ee
Wed Aug 22 08:25:29 BST 2007


# HG changeset patch
# User Hasso Tepper <hasso at quagga.net>
# Date 1187765375 -10800
# Branch HEAD
# Node ID 8127b9843f101065da1d03c0899b8ce7d82ee1ac
# Parent  8c20904fc9dea70f044ba38b05faa67ba6e51ab2
[ospfd] Change "show ip ospf interface" behaviour

With many (hundreds) interfaces "show ip ospf interface" output becomes
just useless. Better show only interfaces in OSPF domain if command is
given without arguments. This also matches IOS behaviour.

If noone objects, I'll commit in Friday.

diff -r 8c20904fc9de -r 8127b9843f10 ospfd/ospf_vty.c
--- a/ospfd/ospf_vty.c	Wed Aug 22 09:49:16 2007 +0300
+++ b/ospfd/ospf_vty.c	Wed Aug 22 09:49:35 2007 +0300
@@ -2995,8 +2995,11 @@ DEFUN (show_ip_ospf_interface,
 
   /* Show All Interfaces. */
   if (argc == 0)
-    for (ALL_LIST_ELEMENTS_RO (iflist, node, ifp))
-      show_ip_ospf_interface_sub (vty, ospf, ifp);
+    {
+      for (ALL_LIST_ELEMENTS_RO (iflist, node, ifp))
+	if (ospf_oi_count (node->data) != 0)
+	  show_ip_ospf_interface_sub (vty, ospf, ifp);
+    }
   /* Interface name is specified. */
   else
     {



More information about the Quagga-dev mailing list