[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
more flexible write-option alternative
- To: xmlconf <xmlconf@ops.ietf.org>
- Subject: more flexible write-option alternative
- From: Larry Menten <lmenten@lucent.com>
- Date: Thu, 08 May 2003 13:05:13 -0400
- User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3) Gecko/20030312
In the Enns draft, a global write option is proposed that is expressed
as a direct child of the <edit-config> element. IMO, the write-option
tag should be an attribute of the target element that is to undergo the
operation. This makes the target of the operation explicit, simplifies
the processing of the command, and allows multiple operations on the
tree to be expressed in a single atomic transaction.
Rather than:
<edit-config>
<write-option>
merge
</write-option>
<ospf>
<id>135.104.52.1</id>
<area>
<id>0</id>
<interface>
<id>135.104.52.3</id>
<helloInterval>10</helloInterval>
</interface>
</area>
</ospf>
</edit-config>
... followed by three more <edit-config> statements of similar size, we
should have
the following single configuration transaction:
<edit-config>
<ospf id="135.104.52.1">
<area id="0">
<interface id="135.104.52.3" op="merge" helloInterval="10"/>
<interface id="135.104.54.2" op="overwrite"
helloInterval="10" deadInterval="40"/>
</area>
<area id="1" op="overwrite">
<interface id="135.104.50.2" helloInterval="10"
deadInterval="40"/>
</area>
</ospf>
<edit-config>
This is very clear to express and, in this example, less disruptive of
the operation
of the target protocol implementation. We have used this approach
extensively
in the context of routing protocols and related subsystems after having
explored a
representation similar to the one proposed in the Enns draft. We have
found that
placing the operation with the target element is a much more powerful
approach.
Larry
--
Larry Menten Lucent Technologies/Bell Laboratories
Phone: 908 582-4467 600 Mountain Avenue, Murray Hill, NJ 07974 USA
--
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/>