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

A question about <edit-config> operation



Hi,

I think the changed object is ambiguous in <edit-config> operation. For example:

<rpc message-id="101"

      xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">

  <edit-config>

    <target>

      <running/>

    </target>

    <config>

      <top xmlns="http://example.com/schema/1.2/config">

        <interface>

          <name>Ethernet0/0</name>

          <mtu>1500</mtu>

        </interface>

      </top>

    </config>

  </edit-config>

</rpc>

We usually think it set the MTU to 1500 on an interface named "Ethernet0/0", but why don’t think it set the name to “Ethernet0/0” on interfaces whose MTU equal to 1500?

If I want to set the MTU to 1500 on the interfaces whose MTU equal to 1300, How shall I depict the <edit-config> operation using XML?