[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
should operation attribute be a part of <config> tag
Title: Message
Hi
All,
In the section 5.2 (edit-config operation) of
ID:draft-ietf-netconf-prot-03, it is specified that:
(a) The operation
attribute appearing within the config subtree should have the same value.
(b) If it is not specified, the default the operation is merge.
In such case, shouldn't the operation attribute
be a part of the config tag instead of the data payload?
Existing way:
<config xmlns="http://example.com/schema/1.2/config"
xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
<interface
xc:operation="replace">
<name>Ethernet0/0</name>
<mtu>1500</mtu>
<address>
<name>1.2.3.4</name>
<mask>255.0.0.0</mask>
</address>
</interface>
</config>
Proposed way:
<config xmlns="http://example.com/schema/1.2/config"
xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"
xc:operation="replace">
<interface>
<name>Ethernet0/0</name>
<mtu>1500</mtu>
<address>
<name>1.2.3.4</name>
<mask>255.0.0.0</mask>
</address>
</interface>
</config>
Thanks &
Regards,
V.Sarma