[quagga-dev 3078] Re: interface rename problems

Matt Brown matt at mattb.net.nz
Fri Apr 1 23:25:48 BST 2005

On Fri, 2005-04-01 at 09:06 -0500, Andrew J. Schorr wrote:

> Thanks for testing that.  It looks to me like the patch is working perfectly
> as intended.

> In my opinion, eth2 has to stay in the interface list.  At the moment,
> the quagga code will almost never entirely delete an interface structure.
> Instead, the paradigm is to mark it as being inactive but leave the structure
> in the interface list.  The reason for this is that the user may have
> entered configuration information for that interface.  If the interface
> comes back up later, we still want to have that configuration information.
> If we delete the interface structure entirely, then we will lose that
> configuration info.


> There are 3 possibilities that I can see to address the "ugly" display of
> eth2 that is bothering you: 1. Leave the code as is.  It works, but
> is not pretty in some cases.  2. Try to detect whether there is any
> configuration information associated with the interface.  If there is
> none, then it would be safe to delete the interface.  3. Add an option
> to hide inactive interfaces (do not show them when the user runs
> "show interface" or "show ip ospf interface").  I am not immediately
> certain whether option #2 is possible...

Given your comments above about not wanting to remove the interface I
think 3 is the best option, something similar to how ifconfig works.
When run with no options it only display interface that are UP, if you
run it with -a then it displays all interfaces.


Matt Brown
matt at mattb.net.nz
Mob +64 275 611 544 www.mattb.net.nz

More information about the Quagga-dev mailing list