[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Separation of configuration and control - good or bad?



Title: RE: Separation of configuration and control - good or bad?


> -----Original Message-----
> From: Phil Shafer [mailto:phil@juniper.net]
> Sent: Friday, May 16, 2003 7:26 AM
> To: Juergen Schoenwaelder
> Cc: netconf@ops.ietf.org
> Subject: Re: Separation of configuration and control - good or bad?
>
> Juergen Schoenwaelder writes:
> >It seems to work in other places, so why not here?
>
> Not that it can't work, just a matter of ease. If I want to pull
> down a configuration, do some changes to it and hand it back to the
> device, it's nice to have the format I hand back to the device be
> the same as what the device gave me.  This allows simple transformations
> (ala xslt) in the pattern of:
>
>    $config = $jnx->get_configuration();
>    $new = transform($config, $stylesheet);
>    $jnx->load_configuration($new);
>


Phil's approach also lends itself well to tools which provide deltas on xml documents.
<configuration>
        <rip somenamespace:delta="add">
                <version>2</version>
                <redistribute>
                        <connected/>
                </redistribute>
                <network>172.22.0.0</network>
        </rip>
</configuration>

> Thanks,
>  Phil
>
> --
> to unsubscribe send a message to netconf-request@ops.ietf.org with
> the word 'unsubscribe' in a single line as the message text body.
> archive: <http://ops.ietf.org/lists/netconf/>