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

indexing



I have a question about indexing. I'm looking at the
examples in sections 5.1 through 5.7 of the latest
draft.

Some of the examples, such as 5.2, use the sub element
<name> to specify the index. However, the get-all
example in 5.7 shows an attribute "name".
(See examples below). When should the index be an
attribute and when should it be a sub element?

Also, how are multiple indexes handled?

5.2 <edit-config>

   Example: Set the MTU to 1500 on an interface named
      "Ethernet0/0" in the running configuration:

       <rpc message-id="107" ...>
         <edit-config>
           <target>
             <running/>
           </target>
           <config>
             <interface>
               <name>Ethernet0/0</name>
               <mtu>1500</mtu>
             </interface>
           </config>
         </edit-config>
       </rpc>

       <rpc-reply message-id="107" >
         <ok/>
       </rpc-reply>

5.7 <get-all>

   Example:

       <rpc message-id="109" ...>
         <get-all>
           <state 
             <interface name="ethernet0/1">
                <intstats></intstats>
             </interface>
           </state>
           <format>xml</format>
         </get-all>
       </rpc>

       <rpc-reply message-id="109" ...>
          <state >
            <interface name="ethernet0/1">
               <intstats>
                  <inPkts>9456823</inPkts>
                  <inOctets>1228484566</inOctets>
                  <inErrors>4326</inErrors>
                  <outPkts>4821050</outPkts>
                  <outOctets>634712154</outOctets>
                  <outErrors>2096</outErrors>
               </intstats>
            </interface>
          </state>
       </rpc-reply>


Thanks,
  Andrew Davis


__________________________________
Do you Yahoo!?
Yahoo! Search - Find what you?re looking for faster
http://search.yahoo.com

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