[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: On box implementation
On Tue, Jul 02, 2002 at 01:51:39PM -0700, David T. Perkins wrote:
> To me, the following little configuration fragment is an easy translation
> to XML, not C code.
>
> protocols {
> ospf {
> area 0.0.0.0 {
> interface so-0/0/0 {
> hello-interval 5;
> }
> interface so-0/0/1 {
> hello-interval 5;
> }
> }
> }
> }
That's the JUNOS configuration file syntax, yes it's a hierarchy.
Some other boxes don't store configuration files, just sequences of
configuration commands. However that doesn't mean the configuration
objects are not hierarchical. It seems reasonable that an OSPF area lives
within the OSPF protocol, and an OSPF interface lives within an area, etc.
Every vendor I've worked for (or with) maintains a hierarchy of objects
with explicitly (as metadata or OO code) or implicitly.
So just because a CLI is not hierarchical doesn't (and shouldn't) imply
anything about the underlying objects, or anything about whether XML or
anything else is an appropriate way to configure the box.
thanks,
Rob
--
to unsubscribe send a message to xmlconf-request@ops.ietf.org with
the word 'unsubscribe' in a single line as the message text body.
archive: <http://ops.ietf.org/lists/xmlconf/>