[quagga-dev 5838] Re: Parsing "show ip ospf interface"

Denis Ovsienko pilot at etcnet.org
Mon Sep 1 15:37:33 BST 2008


> Trying to parse  "show ip ospf interface" within C and it is no fun:(
> The command has very unfriendly syntax for such parsing.
>
> Would a new option to "show ip ospf interface"(or a new command)
> which lists the interfaces in a machine friendly way be welcome in
> Quagga?

Hello.

The syntax is mimicing those of IOS (tm), so if you manage to parse it,
you can hit two targets at once. As for the best way to do it, this
task is worth about a screen of lex (flex) code. Lex produces C
code, which can be embedded into your custom program.

I hope it helps.

-- 
    DO4-UANIC



More information about the Quagga-dev mailing list