Mailing List Archive

Contrib: minor change in ospf_vty.c
Hello,
we are using zebra/quagga in free MAN network based on WiFi in Czech
Republic. In all our router's ospfd we use the same password (read only
access) known to other administrators. They can telnet to other ospfd-s and
go see "show ip ospf ..." there.

We felt that the "show ip ospf interface" command should print out the
interface's description, too. Otherwise, it's presence in ospfd.conf seems to
be useless. I've done this in file ospf_vty.c from release 0.96.2 of quagga.

In function show_ip_ospf_interface_sub(), after line 2564, insert:
----------
/* Show OSPF interface information. */
if (ifp->desc)
vty_out (vty, " description %s%s", ifp->desc,
VTY_NEWLINE);
----------
I will be very happy to see this feature in next release of quagga.

Vojtech Pithart
Hradec Kralove
Czech Republic
Re: Contrib: minor change in ospf_vty.c [ In reply to ]
Hi,

On Sun, 9 Nov 2003, VojtÄ^[ch Pithart wrote:

> Hello,

> interface's description, too. Otherwise, it's presence in
> ospfd.conf seems to be useless.

well, its printed out in the config file - ie its purpose is to
document the config file.

> ----------
> /* Show OSPF interface information. */
> if (ifp->desc)
> vty_out (vty, " description %s%s", ifp->desc,
> VTY_NEWLINE);
> ----------
> I will be very happy to see this feature in next release of quagga.

I've no objections, other than people might be parsing output of show
interface and not like it to change too much. can anyone comment?

> Vojtech Pithart

regards,
--
Paul Jakma paul@clubi.ie paul@jakma.org Key ID: 64A2FF6A
warning: do not ever send email to spam@dishone.st
Fortune:
Alexander Hamilton started the U.S. Treasury with nothing - and that was
the closest our country has ever been to being even.
-- The Best of Will Rogers