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

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




Phil Shafer wrote:

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);

If this is to be robust, I think it has to be:

$locked= $jnx->lock_configuration();
$config = $jnx->get_configuration();
$new = transform($config, $stylesheet);
$jnx->load_configuration($new);
$jnx->release_configuration();

. . . which is one of the reasons that I don't like that model of interaction.

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/>

--
Larry Menten Lucent Technologies/Bell Laboratories
Phone: 908 582-4467 600 Mountain Avenue, Murray Hill, NJ 07974 USA


--
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/>